How shauryasri07/crimenet-ai works
CrimeNet AI is an investigator-facing criminal-network intelligence application. Investigators sign in, manage investigations, submit intelligence text for AI extraction, and explore validated entities and relationships through search, graph analytics, pattern detection, dashboards, and reports. The README documents Convex-backed storage and Gemini-powered extraction/insights; sampled frontend code confirms routing, auth, and graph rendering. Backend implementation details were not sampled, so backend links below rely on documented API and pipeline behavior.
Main entry points: schema.ts Convex data store · ai.ts AI extraction and insights · InvestigationDetail.tsx Investigation detail · main.tsx Application routes
Components 33
Access and shell
- Application routes
src/main.tsx - Sign-in
src/pages/Auth.tsx - App shell
src/components/AppLayout.tsx
Investigation workflow
- Investigation management
src/pages/Investigations.tsx - Investigation detail
src/pages/InvestigationDetail.tsx - Intelligence upload
src/pages/IntelligenceUpload.tsx - Entity explorer
src/pages/Entities.tsx - Relationship explorer
src/pages/RelationshipExplorer.tsx - Dashboard
src/pages/Dashboard.tsx - Reports
src/pages/Reports.tsx - Audit logs
src/pages/AuditLogs.tsx
Network analysis
- Criminal network
src/pages/CriminalNetwork.tsx - Interactive graph
src/components/NetworkGraph.tsx - Pattern detection
src/pages/PatternDetection.tsx - AI insights
src/pages/AIInsights.tsx - Dashboard charts
src/components/DashboardCharts.tsx
Convex backend
- Authentication
src/convex/auth.ts - Document handling
src/convex/documents.ts - AI extraction and insights
src/convex/ai.ts - Investigation records
src/convex/investigations.ts - Entity records and search
src/convex/entities.ts - Relationship records
src/convex/relationships.ts - Convex data store
src/convex/schema.ts - Graph and metrics
src/convex/network.ts - Pattern engine
src/convex/patterns.ts - Insight records
src/convex/insights.ts - Dashboard statistics
src/convex/dashboard.ts - Report generation
src/convex/reports.ts - Audit trail
src/convex/audit.ts - Global search
src/convex/search.ts - Synthetic demo data
src/convex/demo.ts
Other components
- Investigator
- Google Gemini
Connections 37
- Investigator → Application routes: opens
src/main.tsx - Application routes → Sign-in: routes to
src/main.tsx - Sign-in → Authentication: signs in
- Application routes → App shell: loads protected pages
src/main.tsx - App shell → Investigation management: navigates to
src/pages/Investigations.tsx - Investigator → Intelligence upload: submits text
README.md - Intelligence upload → Document handling: submits document
- Intelligence upload → AI extraction and insights: requests extraction
- AI extraction and insights → Google Gemini: extracts entities and relationships
README.md - AI extraction and insights → Entity records and search: normalizes entities
- AI extraction and insights → Relationship records: normalizes relationships
- Investigation management → Investigation records: manages records
README.md - Investigation detail → Investigation records: loads investigation
- Entity explorer → Entity records and search: searches entities
README.md - Relationship explorer → Relationship records: lists relationships
README.md - Dashboard → Dashboard statistics: loads statistics
README.md - Dashboard → Dashboard charts: renders charts
- Investigation detail → Graph and metrics: loads graph data
- Investigation detail → Dashboard charts: renders charts
src/pages/InvestigationDetail.tsx - Investigation detail → Interactive graph: renders graph
src/pages/InvestigationDetail.tsx - Criminal network → Graph and metrics: requests graph
- Criminal network → Interactive graph: renders graph
src/pages/CriminalNetwork.tsx - Graph and metrics → Convex data store: reads graph records
README.md - Pattern detection → Pattern engine: runs detection
README.md - Pattern engine → Convex data store: detects from records
- AI insights → AI extraction and insights: requests insights
- AI extraction and insights → Insight records: stores insights
- Reports → Report generation: requests report data
README.md - Audit logs → Audit trail: lists audit logs
README.md - App shell → Global search: queries global search
- Investigator → Synthetic demo data: loads demo dataset
README.md - Investigation records → Convex data store: reads and writes records
- Entity records and search → Convex data store: reads and writes records
- Relationship records → Convex data store: reads and writes records
- Dashboard statistics → Convex data store: reads statistics
- Report generation → Convex data store: reads report data
- Audit trail → Convex data store: reads audit data