Live project management · updated 2026-05-25 01:27 UTC

Phase 1 starts with a Cloudflare-first webapp. Mobile comes after validation.

This page is now the living project tracker for the Xổ Số AI Webapp: roadmap, tasks, analytics scope, responsible language, and implementation status. Alex and subagents will update this file as work progresses.

Current decisionWebapp first → PWA → Mobile
Live URLxoso-ai-pitch.pages.dev
PhasePhase 1 MVP
StatusScaffold created · Tests passing
Product decision

Không build mobile app trước. Build SEO webapp để validate thị trường trước.

Webapp cho phép launch nhanh, gần như no-cost trên Cloudflare, tạo SEO traffic, kiểm chứng analytics/data pipeline, rồi mới đóng gói PWA/mobile khi retention rõ.

Phase 1 product scope

  • Public result pages: XSMB, XSMN, XSMT, tỉnh, ngày, lịch quay.
  • Rich analytics: frequency, recency, head/tail, special prize, hot/cold, data quality.
  • Manual ticket checker: nhập tỉnh/ngày/số để dò.
  • Number Radar: lưu số yêu thích và theo dõi lịch sử xuất hiện.
  • SEO foundation: metadata, sitemap, robots, internal linking, cache.

Cloudflare-first architecture

Keep cost near zero by precomputing analytics, caching aggressively, and avoiding LLM calls per request.

Cloudflare PagesPages Functions / WorkersD1 SQLKV cacheCron TriggersAstro recommended
  • D1 stores normalized draws and prizes.
  • Cron jobs ingest and precompute snapshots.
  • KV/D1 snapshots serve hot analytics routes.
  • AI summary can be batch/cached later if budget allows.
Live task board

Project tasks we will update directly in this HTML.

Statuses: Done, In progress, Next, Planned. This page is the visible tracker; `project-state.json` is the machine-readable companion.

00 · Plan

Done
Pitch conceptAI ticket wallet + responsible lottery intelligence.
Phase decisionWebapp first, mobile app after validation.
Live trackerThis HTML page converted into project management tool.

01 · Foundation

In progress
Create repo scaffoldDone: /opt/data/xoso-ai-webapp with package scripts and docs.
Deploy hello worldVerify Cloudflare Pages build/deploy loop.
D1 schemaDone: migrations for provinces, draws, prizes, snapshots, ingestion_runs.
Analytics testsDone: 6 node:test checks passing for frequency/recency/head-tail/daily notes.

02 · Data

Next
Choose first sourceIdentify reliable result source and scraping/import path.
Normalize resultsregion, province, date, prize, number, last2, last3.
Ingestion logTrack status, fetched_at, source_url, errors.
Data qualityMissing dates, invalid numbers, duplicate checks.

03 · Analytics

Next
FrequencyCore function done + tested for province/date window.
RecencyCore last-seen/missing-days function done + tested; gap percentile next.
Head/tailCore distribution function done + tested; even/odd next.
Daily notesCore deterministic summary done + tested.

04 · Launch

Planned
Ticket checkerManual checker with cautious result wording.
Radar sốLocal favorite numbers first, account later.
SEO polishMetadata, sitemap, robots, internal links.
Cache/performanceEdge cache + precomputed snapshots.
Rich analytics phase 1

Analytics engine: deterministic, explainable, cheap.

These insights come from historical result data only. They are useful for exploration and SEO, but never framed as guaranteed prediction.

A

Frequency

Top số xuất hiện nhiều/ít theo tỉnh, miền, giải, 7/30/90/365 ngày.

B

Recency

Lần xuất hiện gần nhất, số ngày/kỳ chưa xuất hiện, top lâu chưa về.

C

Hot / Cold

Score mô tả dữ liệu quá khứ: nổi bật gần đây hoặc vắng mặt lâu.

D

Head / Tail

Phân phối đầu/đuôi, heatmap 00–99, chẵn/lẻ, lớn/nhỏ.

E

Special prize

2 số cuối, 3 số cuối, tần suất và lần gần nhất của giải đặc biệt.

F

Gap / Cycle

Khoảng cách trung bình, trung vị, dài nhất, hiện tại, percentile.

G

Province compare

So sánh tỉnh/miền bằng tỷ lệ đã chuẩn hóa, không so raw count.

H

Daily notes

Ghi chú tự động: số lặp lại, quay lại sau vắng dài, lệch chẵn/lẻ.

I

Weekday

Tần suất theo thứ trong tuần, phù hợp lịch quay cố định từng tỉnh.

J

Co-occurrence

Cặp số cùng xuất hiện, support/confidence/lift; có ngưỡng mẫu.

K

Anomaly

Z-score đơn giản cho điểm lệch đáng chú ý, không gọi là tín hiệu chắc chắn.

L

Data quality

Độ phủ dữ liệu, nguồn, timestamp, missing/duplicate/invalid checks.

Roadmap

Build sequence from webapp to mobile.

Each phase should leave a deployable artifact. We avoid speculative native mobile work until web usage and retention are validated.

PHASE 1

Webapp MVP

  • Cloudflare Pages app
  • D1 result database
  • SEO result/stat pages
  • Manual ticket checker
  • Rich deterministic analytics
  • Radar số local-first
PHASE 2

PWA layer

  • Installable webapp
  • Push notifications
  • Offline saved tickets
  • Camera access prototype
  • Home screen shortcut
  • Mobile-first refinements
PHASE 3

Native mobile

  • Expo / React Native app
  • OCR scan optimized
  • Reliable push
  • Voice mode for older users
  • Family profiles
  • Widgets / sharing
Responsible language

Trust rule: analytics describes history, not guaranteed future results.

Every agent working on this project must preserve this framing in UI, SEO copy, insights, and AI output.

Use these phrases

  • “xuất hiện nhiều trong dữ liệu lịch sử”
  • “đáng chú ý theo thống kê”
  • “lâu chưa xuất hiện”
  • “cao hơn trung bình lịch sử”
  • “chỉ mang tính tham khảo”

Avoid these phrases

  • “chắc về”, “bao trúng”
  • “dự đoán chuẩn”, “cam kết”
  • “số nên đánh”
  • “tỷ lệ trúng cao”
  • “cầu đẹp chắc ăn”
Operating agreement

This page is now the project management surface.

Alex and subagents will update the HTML and JSON state as tasks move. Kacher can track progress at the Cloudflare URL without needing another PM tool.

Back to top
Disclaimer: Xổ số là trò chơi may rủi. Platform chỉ hỗ trợ tra cứu, lưu vé, phân tích dữ liệu quá khứ và quản lý thói quen; không đảm bảo hoặc cam kết trúng thưởng.