How jhaabhay7667-cyber/medibridge works
MediBridge is an emergency coordination and information platform, not an emergency-services dispatch system. The main workflow is a user signing in, recording an emergency, coordinating contacts and facilities, and reviewing its status and timeline. The graph includes documented frontend capabilities and the sampled backend ownership paths. Frontend-to-API links reflect README documentation; unsampled frontend internals are not inferred.
Main entry points: main.py FastAPI Application · database.py Database Sessions · emergencies.py Emergency Lifecycle · auth.py Token and Password Auth
Components 20
User Interface
- SOS Dashboard
frontend/dashboard.js - Emergency View
frontend/emergency.js - History Search
frontend/history.js - Contacts UI
frontend/contacts.js - Facility Search UI
frontend/facilities.js - Shared UI
frontend/app.js
API and Identity
- FastAPI Application
backend/app/main.py - Authentication Routes
backend/app/routers/auth.py - Token and Password Auth
backend/app/auth.py - Request and Response Types
backend/app/schemas.py
Emergency Coordination
- Contact Management
backend/app/routers/contacts.py - Emergency Lifecycle
backend/app/routers/emergencies.py - Facility Search
backend/app/routers/facilities.py
Persistent Data
- Domain Records
backend/app/models.py - Database Sessions
backend/app/database.py - SQL Database
- Demo Facility Seed
backend/app/seed_facilities.py
Notifications
- Email Delivery
backend/app/services/notify.py - Brevo or SMTP
Other components
- User
Connections 38
- User → SOS Dashboard: starts SOS
README.md - User → Emergency View: manages incident
README.md - User → History Search: filters history
README.md - User → Contacts UI: manages contacts
README.md - User → Facility Search UI: searches facilities
README.md - SOS Dashboard → FastAPI Application: calls API
README.md - Emergency View → FastAPI Application: calls API
README.md - History Search → FastAPI Application: calls API
README.md - Contacts UI → FastAPI Application: calls API
README.md - Facility Search UI → FastAPI Application: calls API
README.md - Shared UI → FastAPI Application: configures API base
README.md - FastAPI Application → Authentication Routes: registers router
backend/app/main.py - FastAPI Application → Contact Management: registers router
backend/app/main.py - FastAPI Application → Emergency Lifecycle: registers router
backend/app/main.py - FastAPI Application → Facility Search: registers router
backend/app/main.py - Authentication Routes → Token and Password Auth: uses auth functions
backend/app/routers/auth.py - Authentication Routes → Database Sessions: opens sessions
backend/app/routers/auth.py - Contact Management → Token and Password Auth: requires user
backend/app/routers/contacts.py - Contact Management → Database Sessions: opens sessions
backend/app/routers/contacts.py - Emergency Lifecycle → Token and Password Auth: requires user
backend/app/routers/emergencies.py - Emergency Lifecycle → Database Sessions: opens sessions
backend/app/routers/emergencies.py - Facility Search → Token and Password Auth: requires user
backend/app/routers/facilities.py - Facility Search → Database Sessions: opens sessions
backend/app/routers/facilities.py - Authentication Routes → Request and Response Types: validates and shapes
backend/app/routers/auth.py - Contact Management → Request and Response Types: validates and shapes
backend/app/routers/contacts.py - Emergency Lifecycle → Request and Response Types: validates and shapes
backend/app/routers/emergencies.py - Facility Search → Request and Response Types: shapes results
backend/app/routers/facilities.py - Token and Password Auth → Database Sessions: loads user
backend/app/auth.py - Token and Password Auth → Domain Records: checks user record
backend/app/auth.py - Authentication Routes → Domain Records: reads and writes users
backend/app/routers/auth.py - Contact Management → Domain Records: reads and writes contacts
backend/app/routers/contacts.py - Emergency Lifecycle → Domain Records: records incident state
backend/app/routers/emergencies.py - Facility Search → Domain Records: queries facilities
backend/app/routers/facilities.py - Database Sessions → SQL Database: connects
backend/app/database.py - FastAPI Application → Demo Facility Seed: runs seed
backend/app/main.py - Demo Facility Seed → Database Sessions: writes demo facilities
backend/app/seed_facilities.py - Emergency Lifecycle → Email Delivery: sends contact alerts
backend/app/routers/emergencies.py - Email Delivery → Brevo or SMTP: delivers email
backend/app/services/notify.py