How chary994/smart-tourist-safety works
This prototype supports tourist registration and location-based safety incidents: a user registers for a DID, sends an SOS or fall event, and sees incidents in a map and live-updating list. The backend persists tourists and incidents, then broadcasts new incidents. The tree also contains a Python fall-event client and a Solidity ID registry; their relationship to the running backend is not established by the available excerpts. Edges reflect only shown calls, rendering, and data flow.
Main entry points: App.js Safety app · index.js HTTP API · map.js Incident map · fall_simulator.py Fall simulator
Components 12
Tourist client
- Safety app
sih25002-proto/frontend/src/App.js - Incident map
sih25002-proto/frontend/src/map.js
Backend services
- HTTP API
sih25002-proto/backend/index.js - DID generation
sih25002-proto/backend/index.js - Incident intake
sih25002-proto/backend/index.js - SQLite records
sih25002-proto/backend/index.js - Incident broadcast
sih25002-proto/backend/index.js
Other components
- Fall simulator
sih25002-proto/ai_demo/fall_simulator.py - ID registry contract
sih25002-proto/solidity/IDRegistry.sol
Other components
- Tourist
- Browser geolocation
- OpenStreetMap tiles
Connections 16
- Tourist → Safety app: uses
sih25002-proto/frontend/src/App.js - Safety app → HTTP API: registers via HTTP
sih25002-proto/frontend/src/App.js - HTTP API → DID generation: generates DID
sih25002-proto/backend/index.js - HTTP API → SQLite records: stores tourist
sih25002-proto/backend/index.js - Safety app → HTTP API: submits incident
sih25002-proto/frontend/src/App.js - HTTP API → Incident intake: routes incident
sih25002-proto/backend/index.js - Incident intake → SQLite records: writes incident
sih25002-proto/backend/index.js - Safety app → HTTP API: fetches incidents
sih25002-proto/frontend/src/App.js - HTTP API → SQLite records: reads incidents
sih25002-proto/backend/index.js - Incident intake → Incident broadcast: broadcasts new event
sih25002-proto/backend/index.js - Incident broadcast → Safety app: pushes incident
sih25002-proto/frontend/src/App.js - Safety app → Incident map: renders incidents
sih25002-proto/frontend/src/App.js - Tourist → Browser geolocation: requests location
- Browser geolocation → Safety app: returns coordinates
sih25002-proto/frontend/src/App.js - Incident map → OpenStreetMap tiles: loads map tiles
sih25002-proto/frontend/src/map.js - Fall simulator → Incident intake: posts fall event
sih25002-proto/ai_demo/fall_simulator.py