How shantanu700/khata_flow_frontend works
KhataFlow is a voice-first shop ledger for kirana merchants. A merchant signs in, opens one of six persistent tabs, and views or updates shop data fetched through the app’s server-side API proxy; Speak records commands and can show live transcription and command progress. The product spans dashboard summaries, customer credit, stock, staff, entries, and voice interaction, with language catalogs supporting the screens. The README and selected source establish the main routing, API, and voice relationships; unsampled screen internals and backend processing are represented only at the documented level.
Main entry points: khata-app.tsx App shell · bolo.tsx Speak · api.ts API client · route.ts API proxy
Components 18
Merchant experience
- Screen route
app/[[...screen]]/page.tsx - App shell
components/app/khata-app.tsx
Shop workflows
- Dashboard
components/app/dashboard.tsx - Customer ledger
components/app/khata.tsx - Stock
components/app/stock.tsx - Staff
components/app/staff.tsx - Entries
components/app/entries.tsx
Voice and language
- Speak
components/app/bolo.tsx - Live microphone
components/app/live-mic.ts - Language catalogs
components/app/i18n.tsx
API connectivity
- Shop data
components/app/data.ts - Session endpoint
app/api/session/route.ts - API proxy
app/api/v1/[...path]/route.ts - Session settings
lib/session.ts - API client
lib/api.ts - Generated API SDK
lib/client/sdk.gen.ts
Other components
- Merchant
- KhataFlow API
Connections 21
- Merchant → Screen route: opens screens
README.md - Screen route → App shell: serves app
app/[[...screen]]/page.tsx - App shell → Dashboard: shows tab
README.md - App shell → Customer ledger: shows tab
README.md - App shell → Stock: shows tab
README.md - App shell → Staff: shows tab
README.md - App shell → Entries: shows tab
README.md - App shell → Speak: shows tab
README.md - App shell → Shop data: loads data
README.md - Shop data → API client: calls API
components/app/data.ts - API client → Generated API SDK: uses SDK
lib/api.ts - API client → API proxy: sends requests
README.md - API proxy → KhataFlow API: forwards requests
app/api/v1/[...path]/route.ts - Session endpoint → Session settings: uses settings
app/api/session/route.ts - API proxy → Session settings: uses token
app/api/v1/[...path]/route.ts - Session endpoint → KhataFlow API: authenticates
README.md - Speak → Live microphone: streams audio
README.md - Speak → KhataFlow API: sends command
README.md - Speak → KhataFlow API: requests transcript
README.md - Language catalogs → API client: loads catalogs
components/app/i18n.tsx - KhataFlow API → Language catalogs: provides strings
components/app/i18n.tsx