AI-Native Crime Intelligence Platform for Karnataka State Police
Document ID: BERUNDA-README | Version: 2.0 | Status: ACTIVE Classification: PUBLIC | Owner: Berunda Team | Last Verified: 2026-07-18
Berunda transforms fragmented FIR records into a connected, queryable intelligence layer β geospatial hotspots, criminal link networks, and a grounded natural-language investigation assistant, built entirely on the mandatory Zoho Catalyst stack.
Karnataka's SCRB manages crime data in station-level Excel silos with no systematic link analysis, no proactive tooling, and fragmented visibility across districts. Investigators cannot:
- Cross-reference persons across multiple FIRs
- Detect emerging geographic crime patterns
- Query case data in natural language
- Receive explainable risk assessments
A single platform where raw FIR data is ingested and normalized; analysts see spatiotemporal hotspots with temporal patterns; investigators see relationship graphs linking persons, locations, and vehicles across cases; and anyone can ask questions in plain English for grounded, cited answers.
| # | Capability | Status |
|---|---|---|
| 1 | Synthetic FIR import and entity extraction (English) | BUILDABLE |
| 2 | Cross-case person entity resolution with confidence scoring | BUILDABLE |
| 3 | Case/person relationship graph and hidden-link discovery | BUILDABLE |
| 4 | Geospatial hotspot map with district-to-station drill-down | BUILDABLE |
| 5 | Explainable risk scoring with feature-importance breakdown | BUILDABLE |
| 6 | Anomaly and spike detection against historical baselines | BUILDABLE |
| 7 | "Ask Berunda" grounded RAG over curated case corpus | BUILDABLE |
| 8 | Role-based authentication and authorization | BUILDABLE |
| 9 | Audit logging for sensitive reads and AI-assisted outputs | BUILDABLE |
| 10 | Live sensitive-feature exclusion and fairness verification | BUILDABLE |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Frontend (React SPA) β
β MapLibre GL β Cytoscape.js β Recharts β RAG Chat β
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
β HTTPS
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββ
β Catalyst API Gateway (Auth + Routing) β
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββ
β Catalyst Serverless Functions β
β FIR Ingestion β NER β Entity Resolution β Link Analysis β
β Anomaly Detection β Fairness Check β Audit Logging β
ββββββββ¬ββββββββββββββββββββββββ¬βββββββββββββββββββ¬ββββββββββββ
β β β
ββββββββΌβββββββββββ ββββββββββΌββββββββ βββββββββΌβββββββββββ
β Catalyst Data β β Catalyst β β Catalyst QuickML β
β Store (Rel) β β NoSQL (Unstr.) β β LLM + AutoML β
β Catalyst Stratusβ β β β AppSail (Python) β
βββββββββββββββββββ ββββββββββββββββββ ββββββββββββββββββββ
| Layer | Technology |
|---|---|
| Frontend | React 18 + TypeScript + Tailwind CSS |
| Maps | MapLibre GL (open-source Mapbox GL fork) |
| Graphs | Cytoscape.js |
| Charts | Recharts |
| API & Logic | Catalyst Serverless Functions (Node.js) |
| ML Serving | Catalyst AppSail (Python: NetworkX, scikit-learn) |
| AI/LLM | Catalyst QuickML (LLM Serving, RAG, AutoML) |
| Relational Data | Catalyst Data Store |
| Unstructured Data | Catalyst NoSQL |
| File Storage | Catalyst Stratus |
| Auth | Catalyst Authentication |
| Automation | Catalyst Cron |
| Containerization | Docker + Docker Compose |
| CI/CD | GitHub Actions |
berunda/
βββ apps/ # Deployable applications
β βββ web/ # React frontend SPA
β βββ api/ # Catalyst Functions (backend)
β βββ worker/ # Background job worker
βββ src/ # Source code (Python)
β βββ ai/ # AI module (RAG, agents, LLM)
β βββ ml/ # ML module (features, training)
β βββ pipelines/ # Data pipelines
β βββ shared/ # Shared utilities
βββ docs/ # Documentation
β βββ architecture/ # Architecture documentation + ADRs
β βββ discovery/ # Source inventory, gap analysis
β βββ strategy-and-product/ # PRD, charter, personas
β βββ requirements/ # SRS, NFRs, traceability
β βββ data/ # Data model, dictionary, governance
β βββ ai-and-analytics/ # AI/ML specs, RAG spec, model cards
β βββ api-and-contracts/ # API design, event contracts
β βββ security/ # Threat model, PIA, security arch
β βββ quality/ # Test strategy, test cases
β βββ devsecops/ # CI/CD, observability, runbook
β βββ delivery/ # Implementation plan, backlog
β βββ open-source/ # Contributing guide, CoC drafts
β βββ blueprints/ # Original acquisition blueprints
βββ reports/ # QA reports and traceability
βββ tests/ # Layered test suites
βββ config/ # Environment-aware configuration
βββ infrastructure/ # Docker, Catalyst, env templates
βββ security/ # Policies, scanning, compliance
βββ monitoring/ # Dashboards, alerts, logging
βββ data/ # Data governance and storage
βββ scripts/ # Build, setup, acquisition scripts
βββ manifests/ # Resource manifests and provenance
βββ .github/ # CI/CD workflows, templates
βββ blueprints/h2s/ # Original source blueprints
βββ archive/ # Archived/migrated files
Full navigation: docs/start-here.md
- Node.js >= 20.0.0
- Python >= 3.11
- PowerShell 5.1+ (Windows) or bash (Linux/Mac)
- Docker and Docker Compose (optional, for containerized dev)
- Catalyst CLI (for Catalyst deployment)
# 1. Install dependencies
.\berunda.ps1 setup
# 2. Configure environment
cp .env.example .env
# Edit .env with your settings
# 3. Run tests
.\berunda.ps1 test
# 4. Start development server
cd apps/web && npm run dev# Build and start all services
.\berunda.ps1 docker-build
.\berunda.ps1 docker-upSee .env.example for the complete list. Key variables:
| Variable | Description | Required |
|---|---|---|
APP_ENV |
Runtime environment | Yes |
DATABASE_URL |
Catalyst Data Store connection | Yes |
AUTH_SECRET |
JWT signing secret | Yes |
AI_API_KEY |
LLM provider API key | Yes |
CATALYST_ORG_ID |
Zoho Catalyst organization ID | Yes |
CATALYST_PROJECT_ID |
Zoho Catalyst project ID | Yes |
.\berunda.ps1 setup # Install all dependencies
.\berunda.ps1 build # Build all applications
.\berunda.ps1 test # Run all tests
.\berunda.ps1 lint # Run linters and type checkers
.\berunda.ps1 clean # Remove build artifacts
.\berunda.ps1 docker-build # Build Docker images# Run all tests
pytest
# Unit tests only
pytest -m unit
# Integration tests only
pytest -m integration
# Frontend tests
cd apps/web && npm run test
# With coverage
pytest --cov=src --cov-report=term-missingAPI documentation is maintained in docs/api-and-contracts/API_DESIGN_SPECIFICATION.md.
Key API endpoints:
POST /api/v1/firβ Import FIR dataPOST /api/v1/fir/validateβ Validate FIR schemaGET /api/v1/entities/personsβ List person entitiesGET /api/v1/graph/relationshipsβ Get relationship graphGET /api/v1/hotspot/mapβ Get hotspot geodataGET /api/v1/risk/score/:idβ Get risk scorePOST /api/v1/rag/queryβ Natural language queryGET /api/v1/anomaliesβ Get anomaly alerts
- Data governance:
data/README.md - Data dictionary:
docs/data/DATA_DICTIONARY.md - Canonical data model:
docs/data/CANONICAL_DATA_MODEL.md - Synthetic data spec:
docs/data/SYNTHETIC_DATA_SPECIFICATION.md - Entity resolution:
docs/data/ENTITY_RESOLUTION_SPECIFICATION.md
| Classification | Description |
|---|---|
| Public | Open government data, license-cleared |
| Synthetic | Faker-generated demo data (all person-level data) |
| Internal | Design documents, architecture, plans |
| Confidential | Security assessments, threat models |
| Restricted | Future integration contracts only |
- Security architecture:
docs/security/SECURITY_ARCHITECTURE.md - Threat model:
docs/security/THREAT_MODEL.md - Privacy impact assessment:
docs/security/PRIVACY_IMPACT_ASSESSMENT.md - AI impact assessment:
docs/security/AI_IMPACT_ASSESSMENT.md - Incident response:
docs/security/INCIDENT_RESPONSE_AND_BREACH_PLAYBOOK.md
- AI outputs are advisory only. No score or flag triggers automatic enforcement.
- Every AI-assisted decision is logged with officer justification.
- Caste and religion fields are hard-excluded from all predictive models.
- No individual criminality prediction. Risk scoring is based on offense history and recency, never on identity markers.
All person-level data in the demo is synthetically generated using Faker (en_IN locale) and indic-faker. No real victim, accused, or witness data is used. Every synthetic record is clearly labeled.
- Install Catalyst CLI
- Configure
catalyst.config.jsonwith your project credentials - Deploy functions:
catalyst deploy - Configure environment variables in Catalyst console
docker-compose build
docker-compose up -dSee .github/workflows/ for automated workflows:
ci.ymlβ Lint, test, build on push/PRtest.ymlβ Full test suite including integration and e2esecurity-scan.ymlβ Secret, dependency, and container scanningdeploy.ymlβ Manual deployment to staging/production
| Section | Contents |
|---|---|
docs/start-here.md |
Entry point and reading guide |
docs/glossary.md |
Project terminology and acronyms |
docs/document-control.md |
Document versioning and control |
docs/discovery/ |
Source inventory, contradictions, gaps |
docs/strategy-and-product/ |
Charter, PRD, personas, use cases |
docs/requirements/ |
SRS, NFRs, traceability matrix |
docs/architecture/ |
HLD, LLD, ADRs (8), Catalyst mapping |
docs/data/ |
ERD reconciliation, data model, dictionary |
docs/ai-and-analytics/ |
AI/ML spec, RAG spec, model cards |
docs/api-and-contracts/ |
API design, event/error contracts |
docs/security/ |
Threat model, PIA, access control, audit |
docs/quality/ |
Test strategy, test cases, perf plan |
docs/devsecops/ |
CI/CD, observability, runbook, DR |
docs/delivery/ |
Implementation plan, backlog, demo plan |
docs/open-source/ |
Contributing, CoC, license strategy |
docs/blueprints/ |
Original acquisition blueprints |
reports/ |
QA audit, documentation coverage |
See CONTRIBUTING.md for detailed guidelines.
Key points:
- All code changes require passing tests
- Follow existing code style (linting enforced)
- Document all public APIs
- Update CHANGELOG.md for significant changes
- Security issues: see SECURITY.md
| Label | Meaning |
|---|---|
| BUILDABLE | Implemented in the MVP demo |
| STRETCH | Buildable if time allows |
| VISION | Documented as roadmap, not built |
This project is licensed under the MIT License β see LICENSE for details.
- Hack2Skill Datathon 2026
- Zoho Catalyst Platform
- Karnataka State Police (SCRB)
- Open-source projects: MapLibre GL, Cytoscape.js, NetworkX, spaCy
For the full project baseline, start at docs/start-here.md.