Skip to content

ayushcmd/india-crime-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

India Crime Analytics

A crime intelligence platform built on NCRB data — turning government statistics into clear, interactive insights across all Indian states from 2018 to 2025.

Live Demo GitHub

React Node.js MongoDB Python Vercel Render

Backend is currently deployed on Render (may cold-start on first request). Planned migration to Railway/Fly.io for always-on performance.


Overview

755,580+ crimes tracked across 28 states + UTs over 7 years. Built for researchers, journalists, and policymakers who need more than raw numbers.


Features

Interactive Home Map

An SVG map of India where every state is color-coded by crime risk level — green for safe, cyan for moderate, orange for concerning, red for high risk. Hover over any state to see its crime count and risk label. Powered by real NCRB data with animated blinking indicators.

11 Analytics Modules

Module What it does
Home India crime risk map with state-level color coding
States State intensity rankings with severity labels
Trends Year-over-year crime trends across categories
Report Card Safety grades for every state
Compare Side-by-side state comparison
Calendar Monthly crime pattern analysis
Literacy Crime rate vs literacy rate correlation
Categories Filter and explore by crime type
News Curated crime news feed
Records Searchable raw data table

AI Chatbot

Natural language Q&A powered by GROQ. Ask anything — "Which state had the most kidnappings in 2023?" — and get a response in under a second.

Emergency Helplines

A persistent bottom-left popup with verified helpline numbers across 6 categories — Police, Women Safety, Child Safety, Cyber Crime, Anti-Corruption, and Drug Abuse. One-click copy for any number.

Literacy Correlation (Standout)

Most crime dashboards stop at counts. This one overlays literacy rate data with crime rate data per state — surfacing whether education correlates with safety. You won't find this on any other Indian crime platform.


Tech Stack

Layer Technology
Frontend React.js
Charts Recharts / Chart.js
Backend Node.js + Express
Database MongoDB Atlas
AI GROQ API
Data Pipeline Python
Deploy Vercel (frontend) + Render (backend, temporary)

Project Structure

india-crime-analytics/
├── frontend/
│   └── src/
│       └── components/     # All UI modules
├── backend/
│   ├── routes/             # API endpoints
│   └── models/             # MongoDB schemas
├── data-processing/        # Python NCRB data pipeline
└── README.md

Data Source

All data sourced from the National Crime Records Bureau (NCRB), Ministry of Home Affairs, Government of India.

  • Coverage: 2018–2025
  • Scope: All states and union territories
  • Categories: Theft, murder, assault, rape, kidnapping, cybercrime, and more
  • ncrb.gov.in

Built by Ayush

About

Data intelligence dashboard on Indian crime trends using NCRB data — built with React, Recharts, Chart.js & MongoDB Atlas.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors