How krishnakant09/jeevraksha-main works
JeevRaksha is a livestock disease surveillance and response platform. Farmers register animals and submit illness reports by text, voice/IVR, or photo; report handlers assess risk and persist reports that feed case follow-up, veterinary appointments, alerts, and district surveillance. The README documents lab workflows, vaccination tracking, and multilingual AI capabilities beyond the sampled implementation. Edges reflect excerpted calls or README-described flows; unsampled feature internals are represented by their existing route or page directories.
Main entry points: page.tsx Farmer portal · prisma.ts Application database · cases/route.ts Case lifecycle · simulate/route.ts Voice / IVR intake
Components 25
Farmer services
- Farmer portal
src/app/farmer/page.tsx - Animal registry
src/app/api/animals/route.ts - Livestock pages
src/app/farmer/animals/page.tsx - Farmer reporting page
src/app/farmer/report/page.tsx - Farmer IVR page
src/app/farmer/ivr/page.tsx - Appointment booking
src/app/appointments/page.tsx
Report intake
- Voice / IVR intake
src/app/api/ivr/simulate/route.ts - Photo assessment
src/app/api/photo-detect/route.ts - Health reports
src/app/api/health-reports/route.ts - AI assistant
src/app/api/chat/route.ts - AI report drafting
src/app/api/draft-report/route.ts - Speech responses
src/app/api/tts/route.ts
Clinical response
- Case lifecycle
src/app/api/cases/route.ts - Case updates
src/app/api/cases/[id]/route.ts - Vet appointments
src/app/api/appointments/route.ts - Lab workflows
src/app/dashboard/lab/page.tsx
Surveillance
- Outbreak alerts
src/app/api/alerts/route.ts - Jurisdiction overview
src/app/api/overview/route.ts - District dashboard
src/app/dashboard/page.tsx - GIS outbreak map
components/maps/MapComponent.tsx
Platform core
- Risk engine
src/lib/risk-engine.ts - Jurisdiction filters
src/lib/jurisdiction.ts - Application database
src/lib/prisma.ts
Other components
- Farmers
- Sarvam AI
Connections 37
- Farmers → Farmer portal: uses
- Farmer portal → Livestock pages: registers animals
- Livestock pages → Animal registry: manages livestock
- Farmer portal → Farmer reporting page: reports illness
- Farmer reporting page → Health reports: submits reports
- Farmer portal → Farmer IVR page: starts voice intake
- Farmer IVR page → Voice / IVR intake: submits call intake
src/app/farmer/ivr/page.tsx - Farmer portal → Photo assessment: submits photos
- Health reports → Risk engine: calculates risk
src/app/api/health-reports/route.ts - Voice / IVR intake → Risk engine: calculates risk
src/app/api/ivr/simulate/route.ts - Photo assessment → Risk engine: calculates risk
src/app/api/photo-detect/route.ts - Health reports → Application database: reads and writes
src/app/api/health-reports/route.ts - Voice / IVR intake → Application database: reads and writes
src/app/api/ivr/simulate/route.ts - Photo assessment → Application database: reads and writes
src/app/api/photo-detect/route.ts - Animal registry → Application database: reads and writes
src/app/api/animals/route.ts - Health reports → Case lifecycle: creates cases
src/app/api/health-reports/route.ts - Voice / IVR intake → Case lifecycle: creates cases
src/app/api/ivr/simulate/route.ts - Photo assessment → Case lifecycle: creates cases
src/app/api/photo-detect/route.ts - Case lifecycle → Application database: reads and writes
src/app/api/cases/route.ts - Case updates → Application database: updates cases
src/app/api/cases/[id]/route.ts - Farmer portal → AI assistant: asks guidance
- Farmer portal → AI report drafting: requests drafting
- AI assistant → Sarvam AI: uses AI
- AI report drafting → Sarvam AI: uses AI
- Farmer portal → Speech responses: requests speech
- Speech responses → Sarvam AI: uses speech service
- Case lifecycle → Vet appointments: supports inspections
- Vet appointments → Application database: persists appointments
src/app/api/appointments/route.ts - Appointment booking → Vet appointments: books visits
src/app/appointments/page.tsx - Case lifecycle → Lab workflows: tracks sample tests
- Case lifecycle → Outbreak alerts: triggers priority alerts
- Outbreak alerts → Application database: reads alerts
src/app/api/alerts/route.ts - District dashboard → Jurisdiction overview: loads surveillance
- Jurisdiction overview → Jurisdiction filters: builds filters
src/app/api/overview/route.ts - Jurisdiction overview → Application database: queries metrics
src/app/api/overview/route.ts - District dashboard → GIS outbreak map: visualizes outbreaks
- District dashboard → Outbreak alerts: monitors alerts