Vernacular-first AI business companion for Telugu-speaking farmers.
Chat-native farm management for India's 150M+ Telugu-speaking farmers. Voice to AI to Structured Records. Open source, offline-capable, designed with love.
"WhatsApp is for your life. This is for your livelihood."
Rythu Mitra (రైతు మిత్ర = "Farmer's Friend") is an AI-powered farm management app built specifically for Telugu-speaking farmers in Andhra Pradesh and Telangana. It understands Telugu voice input, tracks expenses and income, shows real-time mandi prices, and provides proactive farming intelligence — all on a Rs 10,000 phone over a 3G connection.
Our design persona is Lakshmi, 38, a groundnut and cotton farmer from Anantapur district. She manages 4 acres of dryland farming, pays laborers in cash, sells at the local mandi, and tracks everything in her head. Rythu Mitra gives her a digital memory that speaks her language.
| Layer | Technology |
|---|---|
| Frontend | Svelte 5, TypeScript, Vite |
| Database | SpacetimeDB (real-time sync, offline-capable) |
| AI | Sarvam AI (105B chat, STT, TTS, translation) |
| Design | Matti Design System (earth palette for farming context) |
| Intelligence | Ananta engine (digital root classifier, 4 validation gates, pattern detection) |
cd client
npm install
npm run dev
The app connects to the live SpacetimeDB instance on maincloud.spacetimedb.com. Enter your Sarvam API key in Settings to enable AI features.
cd module/spacetimedb
npm install
npm run build
npm run publish
npm run generate # regenerate TypeScript bindings
rythu_mitra/
├── client/ # Svelte 5 frontend
│ ├── src/
│ │ ├── components/ # UI components (ChatPanel, ConfirmCard, etc.)
│ │ ├── screens/ # App screens (Home, Dabbu, Market, Panta, Settings)
│ │ ├── lib/ # Core logic
│ │ │ ├── ananta.ts # Intelligence engine (digital root, validation gates)
│ │ │ ├── actions.ts # CRUD action routing + execution
│ │ │ ├── chat.ts # SSE streaming chat engine
│ │ │ ├── context.ts # Dynamic system prompt builder
│ │ │ ├── voice.ts # Telugu expense parsing (70+ keywords)
│ │ │ ├── search.ts # Multi-provider web search
│ │ │ ├── memory.ts # Persistent AI memory system
│ │ │ └── ...
│ │ └── module_bindings/ # Auto-generated SpacetimeDB bindings
│ └── ...
├── module/ # SpacetimeDB server module
│ └── spacetimedb/
│ └── src/index.ts # 13 tables, 18 reducers, views
├── features/ # Feature contracts & sprint logs
├── decisions/ # Architecture Decision Records
├── uiux-mockups/ # Design mockups
├── scripts/ # Dev utility scripts
└── docs/ # Documentation
money_events (Phase 18 invariant)cd client
npm run build # Production build (zero errors)
npx vitest run # 358 tests, all passing
npx svelte-check # Type check (0 errors, 0 warnings)
Contributions welcome! This project serves real farmers — please be thoughtful about:
Built by Asymmetrica with:
Om Lokah Samastah Sukhino Bhavantu May all farmers benefit from technology that speaks their language.