Skip to main content

tee. Coffee Management System

A multi-branch coffee shop platform on Cloudflare Workers: POS, Kitchen Display, HQ back office, a customer wallet, and a platform-operator Super Admin console.

Apps

AppPurpose
apps/posCashier POS — offline-capable, PIN login, KHQR/ABA PayWay/cash
apps/kdsKitchen Display — realtime ticket feed
apps/hqBranch back office — menu, staff, inventory, reports
apps/customerCustomer wallet — points, tier, order history
apps/superadminPlatform operator console — tenants, integrations, backups
apps/apiHono + D1 + KV + Durable Objects Worker — the REST API all five apps call

Where to start

Architecture

apps/pos, kds, hq, customer, superadmin → static, deployed to Cloudflare Pages
apps/api → Hono Worker, deployed to Cloudflare Workers
├─ D1 (SQLite) transactional data
├─ KV sessions, caches, rate limits, integration config
├─ R2 (tee-backups) nightly D1 snapshot
├─ R2 (tee-analytics) nightly raw order/item JSONL export
└─ Durable Objects realtime KDS ticket push

Every credential-backed integration (Bakong, ABA PayWay, GrabFood, Nham24, SMS, GA4, Meta Pixel, Sentry) is configured at runtime through the Super Admin console — no redeploy needed to go from sandbox to live once a real account exists. See the Integrations page.