How imatomic7407/fir-call-directory-log-and-bank-statement-log-monitor-crime-analysing-system... works
This is a synthetic-data criminal-network investigation prototype. Investigators submit FIRs and examine linked call and transfer evidence; the backend extracts and resolves identities, builds an evidence graph, computes network and risk measures, and detects alerts. The React dashboard presents people, alerts, stations, maps and live updates, with chat and PDF reports as additional investigation paths. The README documents the main analysis stages; the source excerpts and index support the named internal modules and selected call relationships. Some unsampled route wiring is therefore left unasserted.
Main entry points: main.py Backend API · App.jsx Dashboard app · analysis.py Analysis orchestration · graph.py Evidence graph
Components 29
Evidence analysis
- Data ingestion
backend/ingest.py - FIR extraction
backend/extract.py - Identity resolution
backend/resolve.py - Analysis orchestration
backend/analysis.py - Evidence graph
backend/graph.py - Alert detection
backend/patterns.py - Risk scoring
backend/risk.py
Investigation services
- Backend API
backend/main.py - Investigator chat
backend/chat.py - Optional language model
backend/llm.py - Map and station API
backend/geoapi.py - Geospatial services
backend/geo.py - Live case services
backend/live.py - PDF reports
backend/report.py
Investigator dashboard
- Dashboard app
frontend/src/App.jsx - API client
frontend/src/api.js - Live updates
frontend/src/useLive.js
Views and guidance
- Network view
frontend/src/GraphView.jsx - Map view
frontend/src/MapView.jsx - Case pages
frontend/src/Pages.jsx - Entity details
frontend/src/Slip.jsx - Guide and glossary
frontend/src/legacy/Help.jsx - Legacy UI components
frontend/src/legacy/components.jsx
Other components
- Investigator
- FIR records
backend/data/fir.json - Call records
backend/data/cdr.csv - Transfer records
backend/data/transactions.csv - LAN language model
- OpenFreeMap tiles
Connections 35
- Investigator → Dashboard app: investigates with
README.md - FIR records → FIR extraction: extracts mentions
README.md - Call records → Data ingestion: loads evidence
- Transfer records → Data ingestion: loads evidence
- Data ingestion → Analysis orchestration: supplies data
backend/analysis.py - FIR extraction → Identity resolution: matches mentions
README.md - Identity resolution → Evidence graph: links identities
README.md - Analysis orchestration → FIR extraction: uses extraction
backend/analysis.py - Analysis orchestration → Identity resolution: uses matching
backend/analysis.py - Analysis orchestration → Data ingestion: uses ingestion
backend/analysis.py - Evidence graph → Alert detection: provides graph
README.md - Evidence graph → Risk scoring: provides metrics
README.md - Backend API → Analysis orchestration: serves analysis
backend/main.py - Backend API → Evidence graph: builds graph
backend/main.py - Backend API → Alert detection: runs detectors
backend/main.py - Backend API → Risk scoring: serves risk
backend/main.py - Backend API → Investigator chat: routes questions
backend/main.py - Backend API → Map and station API: serves map routes
backend/main.py - Backend API → PDF reports: serves reports
backend/main.py - Investigator chat → Evidence graph: queries metrics
backend/chat.py - Investigator chat → Optional language model: requests wording
backend/chat.py - Optional language model → LAN language model: calls optionally
backend/llm.py - Map and station API → Geospatial services: uses geo services
backend/geoapi.py - Map and station API → Live case services: uses live services
backend/geoapi.py - Dashboard app → API client: loads data
frontend/src/App.jsx - Dashboard app → Network view: renders network
frontend/src/App.jsx - Dashboard app → Map view: renders map
frontend/src/App.jsx - Dashboard app → Case pages: renders pages
frontend/src/App.jsx - Dashboard app → Entity details: renders details
frontend/src/App.jsx - Dashboard app → Live updates: subscribes updates
frontend/src/App.jsx - API client → Backend API: requests endpoints
- Live updates → API client: opens stream URL
frontend/src/useLive.js - Map view → API client: loads map data
frontend/src/MapView.jsx - Map view → OpenFreeMap tiles: loads basemap
README.md - Legacy UI components → Guide and glossary: uses help
frontend/src/legacy/components.jsx