Review work terms together. Zubaan is a browser prototype for reviewing fictional daily-rate work terms in Hindi or English. It makes the daily rate, planned total, proposed advance and payment date easier to say back and inspect. It does not record acceptance, verify identity, establish a legal agreement, or confirm payment.
Quick start · Try the product · Technology · Development · Limitations
Release status: Working synthetic, local-first prototype; not an approved production release. Cloudflare Workers deployment configuration is in progress and there is no hosted URL yet. Real microphone/provider operation and manual accessibility review remain pending. See the Cloudflare deployment guide, implementation re-audit, and Round 2 verification record.
Start from the landing page, choose Start a work agreement or Try a fictional demo, then continue as a guest. The agreement screen accepts a browser-recognized phrase, typed proposal, or labelled sample. The same bounded parser and session controller handle those inputs; the user confirms unresolved terms in an explicit form before a revision is created.
The prototype supports these routes:
| Route | Purpose |
|---|---|
/ |
Product landing page and fictional example |
/app |
Guest workspace |
/app/new |
New fictional agreement and guided review |
/app/voice |
Temporary speech studio for transcription and spoken text |
/app/records |
Records explicitly saved in this browser |
/app/records/:id |
Record terms, revision history, verified export and confirmed local deletion |
/app/verify |
Cross-device QR handoff verification, SHA-256 digest check and teach-back |
/app/settings |
Local profile, language, motion preference and data reset |
/app/settings/voice |
Browser voice diagnostics |
/help |
Product explanation and limits |
For shared review, each role must review the exact current revision, pass a daily-rate/unit comprehension check, and explicitly accept it. Changing the payment date creates a new revision and requires new decisions. A worker can also save a personal record without inviting another role. Saving is a separate, explicit action. Export uses the saved snapshot and verifies its digest before download.
Requirements: Docker Desktop with Linux containers and Docker Compose v2. The typed and fictional sample flows need no API key. Live STT and TTS use optional server-side Deepgram and Sarvam credentials.
git clone https://github.com/Monolithic-Dev/Zubaan.git
cd Zubaan
docker compose up --buildCopy .env.example to .env and set DEEPGRAM_API_KEY and SARVAM_API_KEY to enable live voice. Compose reads these values for the private voice service; they are never passed to the browser or baked into the frontend image. Open http://localhost:8080. The first build downloads pinned base images and npm dependencies. Compose binds to loopback on port 8080. Set WEB_PORT=8081 in .env if port 8080 is occupied. Stop the foreground service with Ctrl+C; use docker compose down to remove its containers and network.
PowerShell health check:
docker compose ps
curl.exe -fsS http://localhost:8080/healthzBash or zsh:
docker compose ps
curl -fsS http://localhost:8080/healthzThe static health endpoint returns ok; it does not certify speech-provider or microphone availability. If the port is occupied, identify the process using it before restarting Compose.
For a hosted demo without Render's paid-service setup, see the Cloudflare Workers deployment guide. The free plan has request and CPU limits, and Deepgram/Sarvam usage can have separate provider charges. No hosted deployment is currently claimed.
- Agreement conversation: bounded term understanding and prompts support Hindi and Indian English only. Hindi speech recognition uses Sarvam Saaras v4 in code-mixed mode; Indian English uses Deepgram Nova-3.
- Voice studio transcription: Sarvam Saaras v4 supports the documented 22 Indian languages plus English. Each turn requires an explicitly selected language; Zubaan does not infer or switch the selected language.
- Voice studio read-aloud: Sarvam Bulbul v3 supports 11 languages: Hindi, Indian English, Bengali, Gujarati, Kannada, Malayalam, Marathi, Odia, Punjabi, Tamil and Telugu. The studio reads the exact transcript; it does not translate it.
- Typed and sample paths: keyless fallbacks that still pass through the bounded parser, term validation, revision creation, review and persistence workflow.
- QR proposal transfer: A pure-TypeScript QR generator transfers the proposal fields and a SHA-256 digest covering the terms and handoff metadata (
/app/verify). The receiver can detect payload changes and save a local copy; the digest does not authenticate the sender, record consent, or prove a legal agreement. The URL contains the displayed names and work terms, so share it only with the intended recipient. Opening the web route may require network access. - Optional UPI payment intent: After a user manually enters a recipient VPA, Zubaan can generate a
upi://paylink and QR for their payment app. Zubaan does not verify the recipient, charge terms, fees, eligibility, or whether a transfer completed. The proposal’s advance is not treated as paid. - Expanded Vernacular Terms Explainer: Directly tackles informal labor information asymmetry through bilingual Hindi/English explanations (Dihadi, Peshgi, Kharcha, Theka, Hisaab, Hafta) with one-tap Hindi audio pronunciation via browser SpeechSynthesis.
Microphone capture requires explicit consent and a secure context such as localhost or HTTPS. It is user initiated, limited to 15 seconds and 5 MB, held in memory for one provider request, and not persisted by Zubaan. The voice studio keeps transcripts only in the current page; users can replay, copy or clear them. Transcripts in languages other than Hindi or English are not interpreted as agreement fields. The selected provider processes speech remotely; use fictional phrases only. Provider terms and account settings govern provider-side retention and processing. Recognition and synthesis can fail; use the visible terms and typed path when they do. Deepgram/Sarvam credentials remain server-side. See the provider ADR.
The available transcription locales are Assamese (as-IN), Bengali (bn-IN), Bodo (brx-IN), Dogri (doi-IN), English (India) (en-IN), Gujarati (gu-IN), Hindi (hi-IN), Kannada (kn-IN), Konkani (kok-IN), Kashmiri (ks-IN), Maithili (mai-IN), Malayalam (ml-IN), Manipuri (mni-IN), Marathi (mr-IN), Nepali (ne-IN), Odia (od-IN), Punjabi (pa-IN), Sanskrit (sa-IN), Santali (sat-IN), Sindhi (sd-IN), Tamil (ta-IN), Telugu (te-IN) and Urdu (ur-IN). Read-aloud supports Bengali, English (India), Gujarati, Hindi, Kannada, Malayalam, Marathi, Odia, Punjabi, Tamil and Telugu.
| Layer | Technology |
|---|---|
| UI | React 19.3.1, TypeScript 6.0.3, Tailwind CSS 4.3.5 |
| Build and tooling | Vite 8.4.0, Node.js 24.13.0, npm 11.6.2, ESLint, Prettier |
| Voice | Sarvam Saaras v4 (23 transcription languages), Deepgram Nova-3 (Indian English agreement STT), Sarvam Bulbul v3 (11 read-aloud languages) |
| Domain | Bounded Hindi/English number and date parsing, term validation, revision and decision controller |
| Persistence and export | IndexedDB, Web Crypto SHA-256 snapshots, JSON export |
| Tests | Vitest 5.1.2, Playwright 1.65.1 |
| Runtime | Docker gateway and Nginx locally; optional Cloudflare Workers hosted runtime |
Icons in this section link to TechIcons. The application has no runtime dependency on the icon host or external fonts.
flowchart LR
Home[Landing page] --> Guest[Guest workspace]
Guest --> Input[Provider speech, typed phrase, or sample]
Input --> Gateway[Same-origin private speech gateway]
Gateway --> STT[Deepgram or Sarvam STT]
Gateway --> TTS[Sarvam Bulbul TTS]
Input --> Parser[Bounded parser and explicit term clarification]
Parser --> Session[Session controller and validated terms]
Session --> Revision[Hashed immutable revision]
Revision --> Readback[Visible and optional spoken read-back]
Readback --> Check[Daily-rate and unit teach-back]
Check --> Review[Personal path or separate role decisions]
Review --> Store[Explicit local IndexedDB save]
Store --> History[Records and revision history]
History --> Export[Digest-verified snapshot export]
src/nlp/ extracts only supported values and leaves ambiguity for the user. src/app/sessionController.ts fences input to the current session, role and revision, and coordinates domain transitions. src/domain/ owns term validation and revisions. src/persistence/ stores only on explicit save. src/export/ builds and verifies canonical snapshots. Nginx serves the app, proxies bounded voice requests to the private Node gateway, and exposes health checks. The gateway processes requests in memory and does not provide a server database.
Use the Node and npm versions pinned by .nvmrc and package.json.
npm ci
npm run devOpen http://127.0.0.1:5173 for development. The production preview runs on port 4173 after npm run build.
To use configured speech providers during Vite development, run npm run dev:voice in a second terminal. Copy .env.example to .env and set the provider keys; the Vite proxy sends /api/voice to the local gateway at 127.0.0.1:8081 by default. If that port is occupied, set ZUBAAN_VOICE_PORT for the gateway process and ZUBAAN_VOICE_GATEWAY_URL for Vite to the same alternate local port. The gateway URL is only used by the development server and is not exposed to the browser.
| Command | Check |
|---|---|
npm run format:check |
Prettier formatting |
npm run lint |
ESLint with zero warnings |
npm run typecheck |
TypeScript without emit |
npm test |
Unit and mocked gateway suites |
npm run test:coverage |
Unit suite with coverage report |
npm run eval:synthetic |
Synthetic scoring-helper tests; not a live speech benchmark |
npm run build |
Typecheck and production bundle |
npm run test:e2e |
Playwright against the built preview |
To run the browser tests against a running Compose image:
$env:E2E_BASE_URL = 'http://127.0.0.1:8080'
npm run test:e2e
Remove-Item Env:E2E_BASE_URLThe current Playwright coverage exercises guest routes, typed/sample entry, personal save, reload, export verification, two-role teach-back, date revision, stale approval replacement, mobile layout, the 100-record storage cap and confirmed local deletion. Automated tests do not establish real microphone accuracy or that a person heard TTS.
Up to 100 saved records remain in IndexedDB for this browser profile and origin. They do not sync or have a server backup. You can export a record, then remove it individually from its detail page after confirmation. The Settings reset action deletes all local records and preferences from this browser after confirmation. Exported files are separate copies and are not erased by either action.
All names and work terms in the demo should be fictional. Role selection and acceptance are self-declared actions on a shared device; they do not verify identity, free consent or legal enforceability. A proposed advance is not money received. The planned total assumes every planned day is worked. The app does not verify work, payment or wage recovery.
- The bounded parser recognizes selected number, rate and date patterns. Names, work descriptions and unresolved or ambiguous fields require user confirmation. It does not understand unrestricted conversation.
- The current teach-back checks the amount and daily unit. It is not a complete assessment of comprehension.
- The on-screen amendment path currently covers the payment due date.
- Declining shared review now offers a fresh worker-only draft. It reuses the displayed terms only; the new record ID, session, decisions, consents and shared revision history are separate. The worker must review and save it again.
- After two shared role decisions, control returns to the worker for the final shared-save choice. A hirer cannot save the shared record on the worker’s behalf.
- Agreement understanding remains Hindi/English only. The separate voice studio supports transcription in 23 configured provider locales and exact-text playback in the 11 documented Bulbul locales. It does not translate speech or interpret extended-language transcripts as agreement terms.
.envkeys are optional for local startup; live provider flows require valid keys and account access. - Physical microphone and speaker tests on branded desktop Chrome, provider degradation benchmarks, the 40-utterance protocol, and field validation remain pending. CI transcripts are not live-speech evidence.
- Login/signup, cross-device sync and the payment ledger are intentionally absent. No worker's real personal data should be entered.
This repository is a synthetic hackathon prototype, not a production workforce records service. See the recovery audit, phase specifications, threat review, implementation re-audit, Round 2 verification, manual speech protocol, and the separate finale evolution proposal for evidence and limits. The proposal is not implementation authorization; the approved plan stops at Phase 07.