How guru071/crimetrack works
C.A.S.E is a cross-platform law-enforcement records system. Officers sign in, manage case records through a configurable local, Google Sheets, or database source, and use spreadsheet, document/photo capture, analytics, and intelligence features. For shared-source changes, the app writes audit notifications that other clients poll and surface locally or natively. Firebase supports authentication and officer/station data; Operations Room messaging is ephemeral peer-to-peer. Source excerpts do not show every App route or backend API client, so uncertain links are omitted or marked unverified.
Main entry points: App.jsx CASE Workspace · dataSources.js Record Data Sources · OperationsRoom.jsx Operations Room · server.js Sheets API Server
Components 25
Officer App
- Web App Entry
src/main.jsx - CASE Workspace
src/App.jsx - Sign-In
src/LoginView.jsx - Operations Room
src/OperationsRoom.jsx
Records and Capture
- Case Records
src/App.jsx - Spreadsheet Editor
src/ExcelSpreadsheet.jsx - Document Scanner
src/DocumentScannerModal.jsx - Photo Capture
src/PhotoUploaderModal.jsx
Intelligence Tools
- Advanced Analytics
src/AdvancedAnalytics.jsx - Database AI
src/features/DatabaseAI.jsx - Police Intelligence
src/features/PoliceIntelligenceEngine.jsx - Investigator Bot
src/features/InvestigatorBot.jsx
Identity and Sync
- Record Data Sources
src/dataSources.js - Local Storage
- Google Sheets
- Custom REST API
- Firebase Auth and Profiles
src/firebase.js - Audit Notifications
src/App.jsx
Backend Services
- Sheets API Server
backend/server.js - Sheets OAuth Handler
backend/google-sheets-handler.js - Drive Upload Service
backend/google-drive-service.js
Other components
- Officer
- PeerJS Messaging
- Other Officers
- Local Notification API
Connections 28
- Officer → Web App Entry: opens
src/main.jsx - Web App Entry → CASE Workspace: renders
src/main.jsx - CASE Workspace → Sign-In: uses
src/App.jsx - Sign-In → Firebase Auth and Profiles: authenticates with
src/LoginView.jsx - CASE Workspace → Case Records: manages records
src/App.jsx - CASE Workspace → Record Data Sources: loads and saves
src/App.jsx - Spreadsheet Editor → Record Data Sources: uses source settings
src/ExcelSpreadsheet.jsx - Record Data Sources → Local Storage: reads and writes
- Record Data Sources → Google Sheets: reads and writes
src/dataSources.js - Record Data Sources → Custom REST API: calls REST API
src/dataSources.js - CASE Workspace → Spreadsheet Editor: opens editor
src/App.jsx - CASE Workspace → Document Scanner: opens scanner
src/App.jsx - CASE Workspace → Photo Capture: opens capture
src/App.jsx - CASE Workspace → Database AI: uses
src/App.jsx - Police Intelligence → Investigator Bot: renders
src/features/PoliceIntelligenceEngine.jsx - Police Intelligence → Case Records: analyzes records
src/features/PoliceIntelligenceEngine.jsx - Advanced Analytics → CASE Workspace: provides analytics
src/App.jsx - CASE Workspace → Audit Notifications: writes and polls
src/App.jsx - Audit Notifications → Record Data Sources: writes audit logs
src/App.jsx - Audit Notifications → Local Notification API: triggers local alert
- Other Officers → Audit Notifications: receives polled alerts
- Officer → Operations Room: joins room
- Operations Room → PeerJS Messaging: sends ephemeral messages
- Operations Room → Firebase Auth and Profiles: uses profiles
src/OperationsRoom.jsx - CASE Workspace → Sheets API Server: uses REST backend
- Sheets API Server → Sheets OAuth Handler: routes Sheets requests
backend/server.js - Sheets API Server → Drive Upload Service: uploads images
backend/server.js - Sheets OAuth Handler → Google Sheets: reads and writes
backend/google-sheets-handler.js