How prchkadam/sih26 works
CIRAS is an investigative intelligence workspace: investigators import crime data, which is structured into entities and relationships, then explore cases, networks, alerts, and an integrity audit trail. The React app routes users to these workflows and calls a FastAPI backend. The backend combines relational records with a graph store and analysis engines. The README documents OCR, similarity search, and several analysis capabilities, but sampled implementation excerpts do not establish every internal connection; those branches are represented only where documented or indexed.
Main entry points: main.py FastAPI application · client.js HTTP API client · App.jsx App routing · ingest_router.py Data ingestion routes
Components 26
Investigator workspace
- App routing
frontend/src/App.jsx - Case and dashboard pages
frontend/src/pages - Data import page
frontend/src/pages/DataImport.jsx - Network explorer
frontend/src/pages/NetworkExplorer.jsx - Entity profile
frontend/src/pages/EntityProfile.jsx - Active case context
frontend/src/CaseContext.jsx - HTTP API client
frontend/src/api/client.js
API and ingestion
- FastAPI application
backend/app/main.py - Authentication routes
backend/app/routers/auth_router.py - Token authentication
backend/app/auth.py - Data ingestion routes
backend/app/routers/ingest_router.py - Entity extraction
backend/app/entity_extraction.py - Entity resolution
backend/app/entity_resolution.py - Case management routes
backend/app/routers/cases_router.py
Intelligence analysis
- Analysis routes
backend/app/routers/analysis_router.py - Network analysis
backend/app/network_analysis.py - Temporal analysis
backend/app/temporal_analysis.py - Anomaly detection
backend/app/anomaly_detection.py - Alert routes
backend/app/routers/alerts_router.py - Similarity and search routes
backend/app/routers/search_router.py - Graph routes
backend/app/routers/graph_router.py
Records and integrity
- Knowledge graph store
backend/app/graph_store.py - Relational records
backend/app/database.py - Hash-chained audit trail
backend/app/trust_chain.py - Blockchain routes
backend/app/routers/blockchain_router.py
Other components
- Investigator
Connections 35
- Investigator → App routing: uses
frontend/src/App.jsx - App routing → Case and dashboard pages: routes to
frontend/src/App.jsx - App routing → Data import page: routes to
frontend/src/App.jsx - App routing → Network explorer: routes to
frontend/src/App.jsx - App routing → Entity profile: routes to
frontend/src/App.jsx - Case and dashboard pages → HTTP API client: requests data
frontend/src/pages/CaseDetail.jsx - Data import page → HTTP API client: submits imports
frontend/src/pages/DataImport.jsx - Network explorer → HTTP API client: requests graph
frontend/src/pages/NetworkExplorer.jsx - Entity profile → HTTP API client: requests entity
frontend/src/pages/EntityProfile.jsx - Active case context → HTTP API client: loads cases
frontend/src/CaseContext.jsx - HTTP API client → FastAPI application: calls API
frontend/src/api/client.js - FastAPI application → Authentication routes: registers
backend/app/main.py - FastAPI application → Data ingestion routes: registers
backend/app/main.py - FastAPI application → Case management routes: registers
backend/app/main.py - FastAPI application → Analysis routes: registers
backend/app/main.py - FastAPI application → Alert routes: registers
backend/app/main.py - FastAPI application → Similarity and search routes: registers
backend/app/main.py - FastAPI application → Graph routes: registers
backend/app/main.py - FastAPI application → Blockchain routes: registers
backend/app/main.py - Authentication routes → Token authentication: verifies credentials
backend/app/routers/auth_router.py - Data ingestion routes → Entity extraction: extracts entities
backend/app/routers/ingest_router.py - Data ingestion routes → Entity resolution: resolves entities
backend/app/routers/ingest_router.py - Data ingestion routes → Knowledge graph store: writes graph
backend/app/routers/ingest_router.py - Data ingestion routes → Relational records: stores datasets
backend/app/routers/ingest_router.py - Case management routes → Relational records: reads and writes
backend/app/routers/cases_router.py - Case management routes → Knowledge graph store: uses graph
backend/app/routers/cases_router.py - Case management routes → Hash-chained audit trail: records events
backend/app/routers/cases_router.py - Analysis routes → Network analysis: dispatches analysis
backend/app/routers/analysis_router.py - Analysis routes → Temporal analysis: dispatches analysis
backend/app/routers/analysis_router.py - Alert routes → Anomaly detection: uses detection
backend/app/routers/alerts_router.py - Alert routes → Knowledge graph store: reads graph
backend/app/routers/alerts_router.py - Alert routes → Hash-chained audit trail: records events
backend/app/routers/alerts_router.py - Graph routes → Knowledge graph store: queries graph
backend/app/routers/graph_router.py - Similarity and search routes → Knowledge graph store: searches graph
backend/app/routers/search_router.py - Blockchain routes → Hash-chained audit trail: verifies audit
backend/app/routers/blockchain_router.py