A standalone retail POS SaaS powered by Cloudflare Workers, D1 and R2, with optional WooCommerce integration.
Staging release: The live API supports authenticated merchants, local cash-attested transactions, inventory and ledger operations. Demo mode is separate and illustrative. Production merchant use remains NO-GO until the protected migration, backup, exact-release and operational acceptance gates pass.
- React 19, Vite, TypeScript, Tailwind CSS 4 and shadcn-compatible design tokens
- Hono API running on Cloudflare Workers
- D1 SQLite and Drizzle ORM, R2 reserved for media
- pnpm workspaces; shared domain and API contracts
- Local development with Vite proxy to Wrangler
- Install Node 24 and Corepack, then run `corepack enable`.
- Run `pnpm install`.
- In one terminal: `pnpm dev:api`.
- In another terminal: `pnpm db:local` once, then `pnpm dev:web`.
- Open http://localhost:5173. Health endpoint: http://localhost:5173/api/health.
Local D1 is provisioned automatically by Wrangler. For remote deployment, create a real D1 database, replace the placeholder database_id in `apps/api/wrangler.jsonc`, follow the protected schema change and deployment workflows in docs/operations/staging-l3-acceptance.md; never bypass the migration gate.
See `docs/architecture.md` for safety boundaries, `docs/parallel-delivery.md` for PR ownership, `docs/deployment.md` for deployment instructions, and `docs/operations/staging-readiness.md` for staging migration approval and monitored acceptance.
- `pnpm dev:api` — Wrangler local API on port 8787
- `pnpm dev:web` — Vite SPA on port 5173, proxy /api to Wrangler
- `pnpm db:local` — apply migrations to local D1
- `pnpm build` — production SPA build plus Worker TypeScript checks
- `pnpm typecheck` — typecheck the monorepo
- `pnpm test` — run domain unit tests
The deploy command intentionally requires human-managed Cloudflare account setup. No credentials or database IDs are stored in this repository.