How gokulraam-git/crimevault works
CrimeDNA/CrimeVault is a crime-intelligence dashboard backed by a FastAPI analytics service and SQLite data. A user opens the dashboard and selects operational or analytical views; the backend exposes crime, offender, hotspot, anomaly, network, risk, and evolution capabilities, plus dataset import and seed restoration. The frontend’s component-to-API request paths are only partly visible in the supplied excerpts, so those links are omitted; backend analytics dispatch is shown where the API excerpt names the calls.
Main entry points: App.jsx Dashboard App · main.py FastAPI Routes · models.py Crime Data Models · database.py Database Sessions
Components 25
Dashboard UI
- Dashboard App
frontend/src/App.jsx - Overview
frontend/src/components/Dashboard.jsx - Hotspot Map
frontend/src/components/HotspotsMap.jsx - District Detail
frontend/src/components/DistrictDrilldown.jsx - Anomaly Alerts
frontend/src/components/AlertsPanel.jsx - CCTV Panel
frontend/src/components/CCTVPanel.jsx - Offender Network
frontend/src/components/NetworkGraph.jsx - Offender Tracking
frontend/src/components/OffenderTracker.jsx - Socioeconomic View
frontend/src/components/SocioEconomic.jsx - Risk Scoring
frontend/src/components/RiskScoring.jsx - Crime Evolution
frontend/src/components/EvolutionEngine.jsx - AI Assistant
frontend/src/components/AIAssistant.jsx - Dataset Manager
frontend/src/components/DatasetManager.jsx - API Base URL
frontend/src/api.js
Crime API
- FastAPI Routes
backend/app/main.py
Intelligence Analytics
- Hotspot Detection
backend/app/analytics/hotspots.py - Anomaly Detection
backend/app/analytics/anomalies.py - Network Analysis
backend/app/analytics/network.py - Risk Prediction
backend/app/analytics/predictions.py - Evolution Analysis
backend/app/analytics/evolution.py
Crime Data
- Database Sessions
backend/app/database.py - Crime Data Models
backend/app/models.py - Seed Data
backend/app/seed.py - SQLite Database
backend/crimedna.db
Other components
- Analyst
Connections 31
- Analyst → Dashboard App: uses
frontend/src/App.jsx - Dashboard App → Overview: renders
frontend/src/App.jsx - Dashboard App → Hotspot Map: renders
frontend/src/App.jsx - Dashboard App → District Detail: renders
frontend/src/App.jsx - Dashboard App → Anomaly Alerts: renders
frontend/src/App.jsx - Dashboard App → CCTV Panel: renders
frontend/src/App.jsx - Dashboard App → Offender Network: renders
frontend/src/App.jsx - Dashboard App → Offender Tracking: renders
frontend/src/App.jsx - Dashboard App → Socioeconomic View: renders
frontend/src/App.jsx - Dashboard App → Risk Scoring: renders
frontend/src/App.jsx - Dashboard App → Crime Evolution: renders
frontend/src/App.jsx - Dashboard App → AI Assistant: renders
frontend/src/App.jsx - Dashboard App → Dataset Manager: renders
frontend/src/App.jsx - FastAPI Routes → Hotspot Detection: calls
backend/app/main.py - FastAPI Routes → Anomaly Detection: calls
backend/app/main.py - FastAPI Routes → Network Analysis: calls
backend/app/main.py - FastAPI Routes → Risk Prediction: calls
backend/app/main.py - FastAPI Routes → Evolution Analysis: calls
backend/app/main.py - FastAPI Routes → Database Sessions: imports
backend/app/main.py - FastAPI Routes → Crime Data Models: uses
backend/app/main.py - FastAPI Routes → Seed Data: calls
backend/app/main.py - Database Sessions → SQLite Database: connects
backend/app/database.py - Crime Data Models → Database Sessions: uses base
backend/app/models.py - Seed Data → Database Sessions: initializes
backend/app/seed.py - Seed Data → Crime Data Models: creates records
backend/app/seed.py - Hotspot Detection → Crime Data Models: imports
backend/app/analytics/hotspots.py - Anomaly Detection → Crime Data Models: imports
backend/app/analytics/anomalies.py - Network Analysis → Crime Data Models: imports
backend/app/analytics/network.py - Risk Prediction → Crime Data Models: queries
backend/app/analytics/predictions.py - Evolution Analysis → Crime Data Models: queries
backend/app/analytics/evolution.py - Dataset Manager → API Base URL: uses URL
frontend/src/components/DatasetManager.jsx