How skygod07/drashti works
DRASHTI is a hybrid camera-registry and surveillance-viewing platform. In the running user workflow, an officer opens the React app, which requests health and camera data through its API client; the FastAPI service returns sample registry data. The backend also exposes a spike HLS file-serving route, while feed adapters can publish real or demo video into an RTSP hub. The README describes broader planned GIS, ANPR, watchlist, alert, and investigation capabilities; those are distinguished below from the currently evidenced workflow. Unsampled planned subsystems use only supported enclosing paths.
Main entry points: main.py FastAPI App · api.ts API Client · cameras.py Camera Registry API · services GIS & Investigation
Components 18
Officer Client
- React App
frontend/src/App.tsx - API Client
frontend/src/services/api.ts
API Service
- FastAPI App
backend/app/main.py - Health Route
backend/app/api/health.py - Camera Registry API
backend/app/api/cameras.py - HLS File Route
backend/app/api/media.py - Domain APIs
backend/app/api
Video Ingestion
- Feed Adapters
backend/app/services/ingestion.py - MediaMTX RTSP Hub
- FFmpeg Transcode
- HLS Output
infra
Investigation Domain
- ANPR Harness
scripts/spike_anpr.py - GIS & Investigation
backend/app/services - Watchlist & Alerts
backend/app
Data Layer
- Registry Models
backend/app/models/orm.py - DB Session
backend/app/core/db.py - Configuration
backend/app/core/config.py
Other components
- Officer
Connections 18
- Officer → React App: uses
README.md - React App → API Client: queries
frontend/src/App.tsx - API Client → Health Route: requests health
frontend/src/services/api.ts - API Client → Camera Registry API: requests cameras
frontend/src/services/api.ts - FastAPI App → Health Route: registers
backend/app/main.py - FastAPI App → Camera Registry API: registers
backend/app/main.py - FastAPI App → HLS File Route: registers
backend/app/main.py - HLS File Route → HLS Output: reads files
backend/app/api/media.py - Feed Adapters → MediaMTX RTSP Hub: publishes feeds
backend/app/services/ingestion.py - Feed Adapters → FFmpeg Transcode: starts ffmpeg
backend/app/services/ingestion.py - MediaMTX RTSP Hub → FFmpeg Transcode: provides stream
- FFmpeg Transcode → HLS Output: writes HLS
- ANPR Harness → GIS & Investigation: supports analysis
- GIS & Investigation → Watchlist & Alerts: correlates detections
backend/app/services/ingestion.py - Camera Registry API → Registry Models: planned persistence
- DB Session → Configuration: reads database URL
backend/app/core/db.py - Registry Models → DB Session: planned database access
- Domain APIs → GIS & Investigation: planned routing