Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🇮🇳 JanVikas AI (जनविकास AI // Rashtriya Vikas Netram)

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.


📌 Problem Statement & Challenge

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.


🛠️ Technology Stack

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

🚀 Step-by-Step Instructions to Run the Project

Prerequisites

  • Node.js: v18.0+ (Tested on v24.11.0)
  • Python: v3.10+ (Tested on v3.11.15)
  • Git & Google Maps API Key

Step 1: Navigate to Project Directory

cd C:\Users\tejas\.gemini\antigravity-ide\scratch\janvikas-ai

Step 2: Configure Environment Variables

Copy the template .env.example to .env:

cp .env.example .env

Optionally 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).


Step 3: Launch the Frontend Web Application

# 1. Install Node.js dependencies
npm install

# 2. Start the Vite development server
npm run dev

🌐 Frontend URL: http://localhost:5173/


Step 4: Setup Python Virtual Environment & Launch Backend

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/


🌟 Core Modules & Demonstration Walkthrough

1. 🗺️ National Command Hub (Macro Planning View)

  • 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 AIzaSyAOVYRIgupAurZup5y1PRh8Ismb1A3lLao and 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 Mode to 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.

2. 📍 District Ground-Zero Hub (Micro Planning View)

  • 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.

3. 📑 AI DPR Synthesizer & Sanctioning Studio

  • 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.

4. ⚖️ Policy Budget What-If Simulator

  • 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).

5. 🎙️ Omnichannel Multilingual Ingestion Studio

  • 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.

6. 🤖 JanVikas AI Policy Copilot

  • Natural language query assistant for policymakers with prompt chips, dynamic tabular synthesis, and instant DPR linking.

🏆 Hackathon Alignment: "Build with AI: Code for Communities"

┌────────────────────────────────────────────────────────────────────────┐
│                        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.

📄 License & Attribution

Designed & Built for Google Cloud: Build with AI - Code for Communities (2nd Edition).

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages