How shivansh19200/asha-sethu works
Asha Sethu is an ASHA home-visit decision-support app. The main workflow is to describe and confirm a mother’s or newborn’s signs, assess danger with an AI-guided question flow bounded by a deterministic safety floor, prepare a visit record and referral, then save or send only after worker confirmation. The README also describes care-team history and follow-up. Several backend routes and screens are unsampled, so their connections are omitted or marked unverified rather than inferred from filenames.
Main entry points: api.js API client · App.jsx Screen router · core.py Agent workflow · Describe.jsx Describe signs
Components 27
Visit workflow
- Screen router
web/src/App.jsx - Describe signs
web/src/Describe.jsx - Confirm signs
web/src/Confirm.jsx - Referral note
api/note.py - Review and record
web/src/NoteRecord.jsx - Review and send
web/src/ReviewSend.jsx
Safety assessment
- Clarify signs
web/src/Question.jsx - Show result
web/src/Result.jsx - Browser safety floor
web/src/floor.js - Agent workflow
api/_agent/core.py - Agent graph
api/_agent/graph.py - Text understanding
api/understand.py - Server safety rules
api/rules.py
API services
- API client
web/src/api.js - Speech transcription
api/transcribe.py - Visit records
api/visits.py - Referral dispatch
api/referral.py
Care follow-up
- Care team view
web/src/Care.jsx - Care services
api/care.py - Home and follow-ups
web/src/Home.jsx - Local visit history
web/src/recent.js
App experience
- Product landing
web/src/Landing.jsx - Scenario demo
web/src/Demo.jsx - Guided tour
web/src/Tour.jsx
Other components
- ASHA worker
- Supabase Postgres
- Groq model
Connections 33
- ASHA worker → Screen router: enters visit
README.md - Screen router → Describe signs: routes to
web/src/App.jsx - Screen router → Confirm signs: routes to
web/src/App.jsx - Screen router → Clarify signs: routes to
web/src/App.jsx - Screen router → Show result: routes to
web/src/App.jsx - Describe signs → Confirm signs: confirms signs
- Confirm signs → Clarify signs: continues assessment
- Clarify signs → API client: requests agent
- Show result → Browser safety floor: gets level
web/src/Result.jsx - API client → Browser safety floor: fallback assessment
web/src/api.js - Agent workflow → Server safety rules: uses floor rules
api/_agent/core.py - Agent graph → Agent workflow: builds workflow
api/_agent/graph.py - API client → Agent workflow: calls agent route
- API client → Text understanding: requests interpretation
- Describe signs → Speech transcription: submits speech
- Show result → Review and record: continues to record
- Review and record → API client: saves visit
web/src/NoteRecord.jsx - Review and send → API client: requests note
web/src/ReviewSend.jsx - API client → Referral note: requests note service
- Review and send → API client: sends on tap
web/src/ReviewSend.jsx - API client → Referral dispatch: posts referral
- API client → Visit records: posts visit
- Visit records → Supabase Postgres: stores visits
- Referral dispatch → Supabase Postgres: records referral
- Care team view → API client: requests care data
web/src/Care.jsx - Home and follow-ups → API client: requests history
web/src/Home.jsx - Home and follow-ups → Local visit history: reads follow-ups
web/src/Home.jsx - Care services → Supabase Postgres: reads care records
- API client → Care services: posts care action
- Product landing → Scenario demo: renders demo
web/src/Landing.jsx - Guided tour → Scenario demo: starts scenario
web/src/Tour.jsx - Product landing → Screen router: embeds app
web/src/main.jsx - Agent workflow → Groq model: uses optional model
README.md