Build with AI: Code for Communities (2nd Edition)
A Multilingual Digital Public Good (DPG) for Civic Demand Aggregation, H3 Spatial Hotspot Detection, and National Infrastructure Planning across India.
Governments across India invest over ₹14 Lakh Crore annually across flagship infrastructure schemes (PM GatiShakti, Jal Jeevan Mission, PMGSY, Ayushman Bharat, PM-SHRI, PM-KUSUM). However, citizen development requests remain trapped in fragmented silos across 22+ scheduled languages and local dialects, leading to:
- Misaligned Public Spending: Infrastructure built where administrative petitions land rather than where true demand clusters exist.
- Unaddressed Infrastructure Dark Zones: Low digital-literacy tribal and rural habitations left without all-weather roads, safe drinking water, or maternal healthcare.
- Tender Duplication & Multi-Month Sanction Delays: DPR (Detailed Project Report) drafting traditionally taking 12 to 18 months per project.
JanVikas AI solves this by unifying voice, text, and messaging inputs across all Indian languages, correlating ground-truth demand with national demographic data (Census/SECC), NITI Aayog Aspirational District indices, and PM GatiShakti GIS layers, surfacing demand hotspots and automatically synthesizing ready-to-sanction Detailed Project Reports (DPRs) for national policymakers.
| Layer | Technologies Used |
|---|---|
| Frontend Framework | React 19 + TypeScript + Vite |
| Design System | Stitch MCP ("Sovereign Tactical Telemetry" tokens) + TailwindCSS |
| Geospatial & Mapping | Google Maps Platform (Satellite, Terrain, Geometry APIs) + Leaflet (Uber H3 Spatial Hexagons) |
| AI & Multilingual NLU | Google Cloud Vertex AI (Gemini 1.5 Pro) + Bhashini / Indic Speech-to-Text |
| Backend Microservices | Python 3.11 + FastAPI + Uvicorn + Pydantic + Scikit-Learn |
| Standard & Governance | Digital Public Good (DPG Standard 1.2) + DPDP Act 2023 Compliant |
- Node.js:
v18.0+(Tested onv24.11.0) - Python:
v3.10+(Tested onv3.11.15) - Git & Google Maps API Key
cd C:\Users\tejas\.gemini\antigravity-ide\scratch\janvikas-aiCopy the template .env.example to .env:
cp .env.example .envOptionally configure your Google Maps API key in .env:
VITE_GOOGLE_MAPS_API_KEY=your_google_maps_api_key_here(Note: If left empty, JanVikas AI automatically defaults to zero-watermark Esri Photorealistic Satellite & Sovereign Tactical Dark canvas).
# 1. Install Node.js dependencies
npm install
# 2. Start the Vite development server
npm run dev🌐 Frontend URL: http://localhost:5173/
Open a second terminal window in the project root:
# 1. Create Python Virtual Environment (.venv)
python -m venv .venv
# 2. Activate the Virtual Environment
# In Windows PowerShell:
.\.venv\Scripts\Activate.ps1
# In Windows Command Prompt (CMD):
.\.venv\Scripts\activate.bat
# 3. Upgrade Pip & Install Dependencies
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
# 4. Start the FastAPI Backend Server
uvicorn backend.main:app --reload --port 8000📡 Backend API Docs (Swagger UI): http://localhost:8000/docs
📡 Backend Health Endpoint: http://localhost:8000/
- Live KPI Telemetry: Real-time counters for Demands Logged (1,48,920+), H3 Hotspots Detected (1,420), AI DPRs Drafted (312), and Sanctioned Capex (₹4,850.4 Cr).
- Multi-Engine Geospatial Basemaps:
- Dark Base: Sovereign Tactical Dark Gray canvas (100% Free, Zero-Watermark, High-Contrast).
- Google Satellite: High-resolution hybrid satellite imagery with road/place overlays (powered by Google Maps Platform).
- Esri High-Res: Photorealistic World Imagery (100% Free global GIS satellite layer).
- Google Terrain: Elevation & topographic contours.
- Geospatial Tile & API Key Engine: Integrated key manager with pre-configured active key
AIzaSyAOVYRIgupAurZup5y1PRh8Ismb1A3lLaoand zero-configuration public DPG fallback. - Quick Focus Region Selector: 1-click smooth flight navigation to Kalahandi (OD), Bastar (CG), Bahraich (UP), Barmer (RJ), Ramanathapuram (TN), and Dhubri (AS).
- Interactive Pin-Drop Mode: Click
📍 Interactive Pin Modeto click anywhere on India and watch the AI ingest the dispatch, cluster it, and auto-route to a DPR. - Live Ingestion Feed Ticker: Real-time stream of incoming voice/text dispatches in Odia, Tamil, Hindi, Assamese, and Marathi with audio waveform player and AI translation.
- Block and Gram Panchayat level demand breakdown with infrastructure deficit matrix (All-Weather Roads, Piped Water JJM, PHC Maternal Care) cross-referenced against NITI Aayog Aspirational composite scores.
- Official Government of India styled DPR viewer with CPWD Schedule of Rates (SOR) itemized Bill of Quantities (BOQ).
- 60:40 / 75:25 Central-State scheme funding convergence (PMGSY-IV, Jal Jeevan Mission, PM-ABHIM).
- 1-Click Sanction & Disburse to PFMS workflow with digital signature authorization and celebratory confetti.
- Interactive linear programming knapsack optimizer allowing ministers and collectors to slide the budget (₹10 Cr to ₹100 Cr) and select objective functions (Balanced National Convergence, Maximum Beneficiary Density, Extreme Vulnerability / Tribal Priority, Fast Delivery <10 Mo).
- Bhashini Voice Intake: Regional audio presets with live speech-to-text, translation, and severity indexing.
- WhatsApp Chatbot: Mobile chat simulation with GPS pin drop and damage photo tagging.
- Citizen Track My Request: Real-time SLA resolution pipeline tracker.
- Natural language query assistant for policymakers with prompt chips, dynamic tabular synthesis, and instant DPR linking.
┌────────────────────────────────────────────────────────────────────────┐
│ JANVIKAS AI ARCHITECTURE │
├────────────────────────────────────────────────────────────────────────┤
│ 1. Ingestion: Voice (Bhashini/Chirp) • WhatsApp • SMS • Kiosks │
│ 2. AI Reasoning: Google Cloud Vertex AI (Gemini 1.5 Pro) │
│ 3. Spatial Engine: BigQuery GIS • Google Maps Platform • Uber H3 │
│ 4. Design System: Stitch MCP (Sovereign Tactical Telemetry) │
│ 5. Impact: 14-Day Sanction Turnaround (vs 18 Months Traditional) │
└────────────────────────────────────────────────────────────────────────┘
- Open Source & DPG Alliance Compliant: Standard schemas and open APIs.
- Privacy Preserving: 100% anonymized PII under the DPDP Act 2023.
- Social Impact: Direct voice empowerment for 900+ million non-English speaking citizens across India.
Designed & Built for Google Cloud: Build with AI - Code for Communities (2nd Edition).