Skip to content

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

JanSetu AI ๐Ÿ‡ฎ๐Ÿ‡ณ

AI-Powered Multilingual Citizen Development Intelligence Platform

JanSetu AI is a multilingual AI platform designed to transform citizen voices, text, and development requests into structured intelligence for policymakers.

It helps identify community problems, understand their context, classify development needs, assess urgency, and generate AI-assisted recommendations for better infrastructure and public-service planning.

AI recommends. Policymakers make the final decision.


๐Ÿš€ Key Features

  • ๐ŸŒ Multilingual Citizen Input โ€” Marathi, Hindi, and English
  • ๐ŸŽค Voice-Based Requests โ€” browser speech recognition for citizen voices
  • ๐Ÿค– AI-Powered Analysis โ€” converts natural-language requests into structured data
  • ๐Ÿ“Š Development Intelligence โ€” identifies category, urgency, affected groups, and problem details
  • ๐ŸŽฏ Priority Scoring โ€” combines citizen demand, urgency, infrastructure gap, population impact, and vulnerability
  • ๐Ÿ›๏ธ Policy Recommendations โ€” AI-assisted recommendations for development planning
  • ๐Ÿ“ Location-Aware Requests โ€” captures district and state information
  • ๐Ÿ“ฑ Fully Responsive UI โ€” designed for desktop, tablet, and mobile
  • ๐Ÿ” Privacy-Aware Design โ€” follows data minimisation and responsible AI principles

๐Ÿง  How JanSetu AI Works

Citizen
   โ”‚
   โ”œโ”€โ”€ Text
   โ”œโ”€โ”€ Voice
   โ””โ”€โ”€ Regional Language
          โ”‚
          โ–ผ
   Citizen Portal
          โ”‚
          โ–ผ
   AI Request Analysis
          โ”‚
          โ”œโ”€โ”€ Problem Identification
          โ”œโ”€โ”€ Category Classification
          โ”œโ”€โ”€ Urgency Detection
          โ””โ”€โ”€ Affected Groups
          โ”‚
          โ–ผ
   Development Intelligence
          โ”‚
          โ”œโ”€โ”€ Citizen Demand
          โ”œโ”€โ”€ Infrastructure Gap
          โ”œโ”€โ”€ Population Impact
          โ””โ”€โ”€ Vulnerability
          โ”‚
          โ–ผ
   Priority Scoring
          โ”‚
          โ–ผ
   AI Policy Recommendation
          โ”‚
          โ–ผ
   Policymaker Decision

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚        Citizen Portal         โ”‚
โ”‚       React + TypeScript      โ”‚
โ”‚                               โ”‚
โ”‚  Marathi โ€ข Hindi โ€ข English    โ”‚
โ”‚       Text + Voice Input      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                โ”‚
                โ”‚ REST API
                โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚          Backend API          โ”‚
โ”‚      Node.js + TypeScript     โ”‚
โ”‚                               โ”‚
โ”‚  Request Processing           โ”‚
โ”‚  AI Analysis                  โ”‚
โ”‚  Priority Intelligence        โ”‚
โ”‚  Policy Recommendation        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                โ”‚
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ–ผ                โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  PostgreSQL  โ”‚  โ”‚   Groq AI    โ”‚
โ”‚   + Prisma   โ”‚  โ”‚     LLM      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ› ๏ธ Technology Stack

Frontend

  • React
  • TypeScript
  • Vite
  • Tailwind CSS
  • React Icons
  • Browser Web Speech API

Backend

  • Node.js
  • TypeScript
  • REST API
  • Prisma ORM
  • PostgreSQL

AI

  • Groq API
  • AI-powered request analysis
  • AI-assisted policy recommendations
  • Multilingual citizen understanding

Development

  • Git
  • GitHub
  • ESLint
  • TypeScript

๐Ÿ“ Project Structure

JanSetu-AI/
โ”‚
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ hooks/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ useSpeechRecognition.ts
โ”‚   โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ api.ts
โ”‚   โ”‚   โ”œโ”€โ”€ types/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ speech.d.ts
โ”‚   โ”‚   โ”œโ”€โ”€ App.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ main.tsx
โ”‚   โ”‚   โ””โ”€โ”€ index.css
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ””โ”€โ”€ .env.example
โ”‚
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ controllers/
โ”‚   โ”‚   โ”œโ”€โ”€ routes/
โ”‚   โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”œโ”€โ”€ config/
โ”‚   โ”‚   โ”œโ”€โ”€ middleware/
โ”‚   โ”‚   โ”œโ”€โ”€ types/
โ”‚   โ”‚   โ””โ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ prisma/
โ”‚   โ”œโ”€โ”€ package.json
โ”‚   โ””โ”€โ”€ .env.example
โ”‚
โ”œโ”€โ”€ docs/
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ LICENSE

โš™๏ธ Getting Started

1. Clone the repository

git clone https://github.com/SRCarlo/JanSetu-AI.git
cd JanSetu-AI

2. Setup Backend

cd backend
npm install

Create a .env file:

DATABASE_URL=your_postgresql_connection_string
GROQ_API_KEY=your_groq_api_key
PORT=5000

Run Prisma:

npx prisma generate
npx prisma migrate dev

Start the backend:

npm run dev

Backend API:

http://localhost:5000

3. Setup Frontend

Open another terminal:

cd frontend
npm install

Create .env:

VITE_API_URL=http://localhost:5000/api

Start the frontend:

npm run dev

Open the URL shown by Vite, usually:

http://localhost:5173

๐ŸŽค Voice Input

JanSetu AI uses the browser's Speech Recognition API.

Supported languages:

Language Recognition Code
Marathi mr-IN
Hindi hi-IN
English en-IN

For the best experience, use a browser with Web Speech API support such as Google Chrome.

Microphone permission is required for voice input.


๐Ÿ“Š Priority Intelligence

JanSetu AI calculates development priority using multiple signals:

Citizen Demand
      +
Urgency
      +
Infrastructure Gap
      +
Population Impact
      +
Vulnerability
      โ†“
Priority Score

Priority levels:

80โ€“100  โ†’ CRITICAL
60โ€“79   โ†’ HIGH
40โ€“59   โ†’ MEDIUM
0โ€“39    โ†’ LOW

The scoring system is designed to help policymakers identify requests that may require greater attention.


๐Ÿค– AI Analysis

A citizen request can be transformed into structured information such as:

{
  "category": "WATER",
  "urgency": "HIGH",
  "problem": "Lack of reliable drinking water",
  "affectedGroups": [
    "Residents",
    "Children",
    "Elderly"
  ],
  "summary": "The community lacks reliable access to drinking water.",
  "confidence": 0.91
}

The structured output can then be used by the intelligence layer for priority assessment and recommendations.


๐ŸŒ Designed for India

JanSetu AI is designed around India's linguistic and geographic diversity.

The platform can support expansion toward:

  • Regional Indian languages
  • Voice-first citizen interaction
  • WhatsApp-based reporting
  • District-level dashboards
  • Infrastructure intelligence
  • Government scheme mapping
  • Public grievance intelligence
  • Development priority heatmaps

๐Ÿ” Responsible AI

JanSetu AI follows a human-led approach.

AI does

  • Understand citizen requests
  • Structure unstructured information
  • Identify development categories
  • Estimate urgency
  • Generate recommendations
  • Assist prioritisation

Policymakers do

  • Verify information
  • Evaluate feasibility
  • Allocate resources
  • Make final decisions

JanSetu AI assists decision-making; it does not replace human governance.


๐ŸŽฏ Hackathon Vision

JanSetu AI aims to bridge the gap between:

Citizen Voice
      โ†“
AI Understanding
      โ†“
Development Intelligence
      โ†“
Policy Priorities
      โ†“
Better Public Infrastructure

The long-term vision is to build a scalable Digital Public Good that enables governments and communities to turn citizen feedback into actionable development intelligence.


๐Ÿ”ฎ Future Roadmap

  • 22+ Indian language support
  • WhatsApp citizen integration
  • Government/policymaker dashboard
  • District-level analytics
  • Interactive infrastructure maps
  • Priority heatmaps
  • Government scheme recommendation
  • Offline/low-connectivity support
  • Advanced demographic and vulnerability analysis
  • Cloud deployment and scalable infrastructure

๐Ÿ‘จโ€๐Ÿ’ป Author

SRCarlo

GitHub:
https://github.com/SRCarlo


๐Ÿ“„ License

This project is intended for educational, research, and hackathon purposes.

Add an appropriate open-source license before production/public deployment.


๐Ÿ‡ฎ๐Ÿ‡ณ JanSetu AI

Giving every citizen a voice in development.

Listen to citizens. Understand their needs. Prioritize development.

About

Multilingual AI platform that transforms citizen voices into structured development intelligence for policymakers across India.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages