Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

πŸŒ‰ CivicBridge AI

Empowering marginalized communities through AI-powered access to civic resources, opportunities, and information

A comprehensive hybrid platform (web + mobile + PWA) that bridges the digital divide, providing voice-driven, multilingual access to government programs, healthcare, training, and civic services for underserved populations.

React Flutter Spring Boot Java PostgreSQL License


πŸ“‹ Table of Contents


🌍 Overview

CivicBridge AI is a social-impact platform addressing information asymmetry in marginalized communities. It enables:

  • 🎀 Voice-Driven Interaction: Speech-to-text & text-to-speech for low-literacy users
  • 🌐 Multilingual Support: English, Spanish, Hindi, and more
  • πŸ—ΊοΈ Geolocation Services: Find nearby hospitals, training centers, government offices
  • πŸ“± Offline Access: Works in low-connectivity regions with local SQLite storage
  • πŸ€– AI-Powered Search: Natural language processing for intelligent queries
  • 🏒 Government Programs: Comprehensive database of schemes and opportunities
  • πŸ“² Progressive Web App: App-like experience in web browsers
  • πŸ“ Application Tracking: Streamlined process for program applications

Target Users: Low-income individuals, rural populations, immigrants, and marginalized communities with limited digital literacy.

Impact: Bridge the information gap for 100M+ underserved individuals globally.


πŸ”₯ Problem & Solution

The Problem

  • ❌ Marginalized communities lack access to government programs
  • ❌ Information is scattered across multiple platforms (language barriers)
  • ❌ Digital literacy prevents use of online resources
  • ❌ No voice-based assistance for low-literacy users
  • ❌ Offline-first solutions missing for low-connectivity areas
  • ❌ Application processes are complex and confusing

Our Solution

  • βœ… Voice-First Design: Speak to search, get audio responses
  • βœ… Multilingual: Content in multiple regional languages
  • βœ… Offline-Capable: Full functionality without internet
  • βœ… Geolocation: Find services near you
  • βœ… Simple UI: Icon-based, minimal text navigation
  • βœ… Inclusive: Designed for diverse literacy levels

✨ Key Features

🎀 Voice-Driven Interaction

Feature Description
Speech-to-Text Ask questions in your native language
Text-to-Speech Listen to responses (for low-literacy users)
Natural Language Understand conversational queries
Voice Commands Navigate app entirely by voice
Multi-Language Support for regional languages with accents

🌐 Multilingual Interface

  • English: Default interface
  • Spanish: For Hispanic communities
  • Hindi: For Indian users
  • Expandable: Easy to add more languages
  • Localized Content: Region-specific programs and resources

πŸ—ΊοΈ Geolocation & Discovery

Find Nearby β†’  Healthcare Facilities
            β†’  Government Offices
            β†’  Training Centers
            β†’  Financial Services
            β†’  Legal Aid Centers

Features:

  • Real-time location detection
  • Distance-based sorting
  • Ratings and reviews
  • Operating hours
  • Contact information
  • Directions integration

πŸ›οΈ Government Programs Database

Category Examples
Healthcare Free vaccination, maternal health, subsidized treatments
Education Scholarships, skill-building programs, vocational training
Financial Microcredit, job schemes, business subsidies
Housing Affordable housing programs, rent assistance
Agriculture Crop insurance, farmer subsidies, equipment loans
Legal Free legal aid, documentation assistance
Employment Job training, placement assistance, wage subsidies

πŸ“ Application Management

  • Streamlined Submission: Multi-step form wizard
  • Document Upload: Photos, certificates, ID proofs
  • Status Tracking: Real-time application progress
  • Deadline Reminders: Push notifications for deadlines
  • Eligibility Checker: AI determines if you qualify
  • Application History: Track all submissions

πŸ“΄ Offline Capability

  • Full app functionality without internet
  • SQLite database syncs when online
  • Download resources for offline access
  • Voice queries work offline (using cached models)
  • Automatic sync when connectivity restored

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              CivicBridge AI Platform                      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                           β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚  Web App        β”‚  β”‚  Mobile App  β”‚  β”‚  PWA        β”‚ β”‚
β”‚  β”‚  (React.js)     β”‚  β”‚  (Flutter)   β”‚  β”‚  (React)    β”‚ β”‚
β”‚  β”‚  - Dashboard    β”‚  β”‚  - Offline   β”‚  β”‚  - App-like β”‚ β”‚
β”‚  β”‚  - Search       β”‚  β”‚  - Sync      β”‚  β”‚  - Installable
β”‚  β”‚  - Voice Input  β”‚  β”‚  - Voice     β”‚  β”‚  - Responsive
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚           β”‚                  β”‚                 β”‚          β”‚
β”‚           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β”‚
β”‚                              β”‚                            β”‚
β”‚              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”           β”‚
β”‚              β”‚   Spring Boot REST API        β”‚           β”‚
β”‚              β”‚   - Authentication            β”‚           β”‚
β”‚              β”‚   - Search & Filtering        β”‚           β”‚
β”‚              β”‚   - Application Management    β”‚           β”‚
β”‚              β”‚   - Geolocation Query         β”‚           β”‚
β”‚              β”‚   - NLP Integration           β”‚           β”‚
β”‚              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜           β”‚
β”‚                              β”‚                            β”‚
β”‚           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”‚
β”‚           β”‚                  β”‚                  β”‚         β”‚
β”‚      β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β” β”‚
β”‚      β”‚PostgreSQLβ”‚      β”‚   MongoDB   β”‚   β”‚  Firebase  β”‚ β”‚
β”‚      β”‚(Business β”‚      β”‚  (Feedback) β”‚   β”‚ (Auth, TTS)β”‚ β”‚
β”‚      β”‚  Logic)  β”‚      β”‚             β”‚   β”‚            β”‚ β”‚
β”‚      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚                                                           β”‚
β”‚  External APIs:                                          β”‚
β”‚  - OpenAI (NLP)                                         β”‚
β”‚  - HuggingFace (Voice models)                           β”‚
β”‚  - Government APIs (Program data)                       β”‚
β”‚                                                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ› οΈ Tech Stack

Backend

Component Technology
Framework Spring Boot 3.2
Language Java 17+
Database PostgreSQL with PostGIS (geospatial)
Cache MongoDB (query history, feedback)
Auth Spring Security + JWT tokens
Build Maven
Cloud Firebase Admin SDK
NLP OpenAI API, HuggingFace

Web Frontend

Component Technology
Framework React 18 + Vite
Language TypeScript
Routing React Router v6
Styling Tailwind CSS
i18n i18next (multilingual)
Voice Web Speech API
PWA Service Workers
API Client Axios

Mobile App

Component Technology
Framework Flutter 3.0+
Language Dart
State Provider
Local DB SQLite
Voice speech_to_text, flutter_tts
Location Geolocator
Notifications Firebase Cloud Messaging
UI Material Design

Infrastructure

  • PostgreSQL 14+: Structured data, geospatial queries
  • MongoDB: Document storage for feedback
  • Firebase: Authentication, push notifications, TTS
  • Docker: Containerization
  • GitHub Actions: CI/CD

πŸš€ Quick Start

Prerequisites

βœ“ Java 17+ (backend)
βœ“ Node.js 18+ (web frontend)
βœ“ Flutter SDK 3.0+ (mobile)
βœ“ PostgreSQL 14+
βœ“ Docker & Docker Compose

Option 1: Docker Compose (Recommended)

# Clone repository
git clone https://github.com/space0032/CivicBridge-AI.git
cd CivicBridge-AI

# Configure environment
cp .env.example .env
# Edit .env with your credentials

# Start all services
docker compose up -d

# Services available at:
# - Web: http://localhost:3000
# - API: http://localhost:8080/api
# - pgAdmin: http://localhost:5050

Option 2: Local Development

Backend

cd backend
mvn spring-boot:run
# API runs on http://localhost:8080

Web Frontend

cd frontend-web
npm install
npm run dev
# App runs on http://localhost:5173

Mobile App

cd mobile-app
flutter pub get
flutter run

πŸ“± API Reference

Authentication

POST /api/auth/register
Content-Type: application/json

{
  "email": "user@example.com",
  "password": "secure_password",
  "language": "hi"
}

Response:
{
  "token": "jwt_token_here",
  "user": { "id": 1, "email": "user@example.com" }
}

Program Search

GET /api/programs?category=healthcare&state=maharashtra

Response:
{
  "programs": [
    {
      "id": 1,
      "name": "Free Health Checkup Camp",
      "category": "Healthcare",
      "eligibility": "All residents",
      "application_deadline": "2026-12-31",
      "contact": "+91-..."
    }
  ]
}

Geolocation Search

GET /api/healthcare/nearby?latitude=19.0760&longitude=72.8777&radius_km=5

Response:
{
  "facilities": [
    {
      "name": "City Hospital",
      "type": "Hospital",
      "distance_km": 0.5,
      "address": "123 Main St",
      "phone": "+91-...",
      "operating_hours": "24/7"
    }
  ]
}

Voice Query

POST /api/voice-query
Content-Type: application/json

{
  "query": "What schemes are available for farmers?",
  "language": "hi"
}

Response:
{
  "text_response": "...",
  "audio_url": "https://...",
  "programs": [...]
}

Application Submission

POST /api/applications
Content-Type: multipart/form-data

{
  "program_id": 1,
  "full_name": "John Doe",
  "email": "john@example.com",
  "documents": [file1, file2, file3],
  "answers": { "question1": "answer1", ... }
}

Response:
{
  "application_id": "APP-123456",
  "status": "submitted",
  "submission_date": "2026-06-22T10:30:00Z"
}

Application Status

GET /api/applications/{application_id}

Response:
{
  "application_id": "APP-123456",
  "program_name": "Healthcare Subsidy",
  "status": "under_review",
  "submitted_date": "2026-06-22",
  "estimated_completion": "2026-07-20",
  "documents": [...]
}

πŸ“ Project Structure

CivicBridge-AI/
β”œβ”€β”€ backend/                        # Spring Boot API
β”‚   β”œβ”€β”€ src/main/java/com/civicbridge/
β”‚   β”‚   β”œβ”€β”€ controller/            # REST endpoints
β”‚   β”‚   β”‚   β”œβ”€β”€ ProgramController.java
β”‚   β”‚   β”‚   β”œβ”€β”€ ApplicationController.java
β”‚   β”‚   β”‚   β”œβ”€β”€ HealthcareController.java
β”‚   β”‚   β”‚   └── VoiceQueryController.java
β”‚   β”‚   β”œβ”€β”€ service/               # Business logic
β”‚   β”‚   β”œβ”€β”€ model/                 # JPA entities
β”‚   β”‚   β”œβ”€β”€ repository/            # Data access
β”‚   β”‚   β”œβ”€β”€ config/                # Configuration
β”‚   β”‚   └── dto/                   # Data transfer objects
β”‚   β”œβ”€β”€ pom.xml
β”‚   └── Dockerfile
β”‚
β”œβ”€β”€ frontend-web/                  # React web application
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”‚   β”œβ”€β”€ SearchBar.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ ProgramCard.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ VoiceInput.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ ApplicationForm.tsx
β”‚   β”‚   β”‚   └── GeolocationMap.tsx
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”‚   β”œβ”€β”€ HomePage.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ SearchResults.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ ApplicationStatus.tsx
β”‚   β”‚   β”‚   └── HealthcareNearby.tsx
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   β”œβ”€β”€ apiClient.ts
β”‚   β”‚   β”‚   β”œβ”€β”€ voiceService.ts
β”‚   β”‚   β”‚   └── geolocationService.ts
β”‚   β”‚   β”œβ”€β”€ contexts/
β”‚   β”‚   β”‚   └── LanguageContext.tsx
β”‚   β”‚   └── i18n/                  # Multilingual strings
β”‚   β”‚       β”œβ”€β”€ en.json
β”‚   β”‚       β”œβ”€β”€ es.json
β”‚   β”‚       └── hi.json
β”‚   β”œβ”€β”€ package.json
β”‚   └── Dockerfile
β”‚
β”œβ”€β”€ mobile-app/                    # Flutter mobile app
β”‚   β”œβ”€β”€ lib/
β”‚   β”‚   β”œβ”€β”€ screens/
β”‚   β”‚   β”‚   β”œβ”€β”€ home_screen.dart
β”‚   β”‚   β”‚   β”œβ”€β”€ search_screen.dart
β”‚   β”‚   β”‚   β”œβ”€β”€ voice_query_screen.dart
β”‚   β”‚   β”‚   β”œβ”€β”€ healthcare_nearby_screen.dart
β”‚   β”‚   β”‚   └── application_status_screen.dart
β”‚   β”‚   β”œβ”€β”€ widgets/
β”‚   β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   β”œβ”€β”€ api_service.dart
β”‚   β”‚   β”‚   β”œβ”€β”€ voice_service.dart
β”‚   β”‚   β”‚   └── location_service.dart
β”‚   β”‚   └── main.dart
β”‚   β”œβ”€β”€ pubspec.yaml
β”‚   └── android/ & ios/
β”‚
β”œβ”€β”€ docs/                          # Documentation
β”‚   β”œβ”€β”€ API.md                     # API reference
β”‚   β”œβ”€β”€ ARCHITECTURE.md            # System design
β”‚   β”œβ”€β”€ DEPLOYMENT.md              # Production setup
β”‚   └── USER_GUIDE.md              # End-user docs
β”‚
└── docker-compose.yml

🎯 Use Cases

Scenario 1: Rural Farmer

Goal: Find government subsidies for crops

1. Opens app (voice in Hindi)
2. Says: "What subsidies are available for rice farming?"
3. App processes using NLP, returns matches
4. Hears response in Hindi (text-to-speech)
5. Applies directly through app
6. Tracks application status

Scenario 2: Job Seeker

Goal: Find skill-building programs

1. Web search: "Job training near me"
2. Location detected automatically
3. Sees nearby training centers with details
4. Reads program eligibility and deadline
5. Submits application with documents
6. Gets notifications about application status

Scenario 3: Healthcare Access

Goal: Find free healthcare services

1. Mobile app voice query: "Free hospitals near me"
2. App shows nearby facilities with services
3. Gets directions and contact info
4. Books appointment (if available)
5. Gets reminder before appointment

Scenario 4: Student Scholarship

Goal: Find and apply for scholarships

1. Web search: "Scholarships for engineering"
2. Filters by eligibility (caste, income, etc.)
3. Views detailed eligibility criteria
4. Applies online with documents
5. Gets updates on application

πŸ”’ Security & Privacy

  • βœ… End-to-end encrypted communications
  • βœ… JWT-based authentication
  • βœ… OWASP-compliant API design
  • βœ… Data encryption at rest
  • βœ… GDPR-compliant data handling
  • βœ… Regular security audits
  • βœ… User consent for data collection
  • βœ… No data shared without permission

πŸ§ͺ Testing

# Backend tests
cd backend && mvn test

# Frontend tests
cd frontend-web && npm test

# Mobile tests
cd mobile-app && flutter test

πŸš€ Deployment

Web Deployment

  • Vercel: vercel deploy
  • Netlify: Connect GitHub repo
  • AWS: S3 + CloudFront

Backend Deployment

  • AWS Elastic Beanstalk
  • Google Cloud Run
  • Azure App Service

Mobile Deployment

  • Google Play Store
  • Apple App Store

🀝 Contributing

  1. Fork the repository
  2. Create feature branch: git checkout -b feature/NewFeature
  3. Commit changes: git commit -m 'Add NewFeature'
  4. Push to branch: git push origin feature/NewFeature
  5. Open Pull Request

πŸ“„ License

Licensed under the MIT License - see LICENSE for details.


🌍 Impact Goals

  • 🎯 Reach 100K+ users in Year 1
  • πŸŽ“ Enable access to 500+ government programs
  • πŸ—£οΈ Support 10+ languages
  • πŸ“± Works on low-end devices and slow networks
  • πŸ’° Increase program awareness from 30% to 80%
  • βœ… Application success rate: >70%

πŸ™ Acknowledgments

  • Marginalized communities who inspire this mission
  • Government bodies for program data
  • Open-source community
  • NGOs supporting community development
  • Firebase, OpenAI, and HuggingFace for APIs

πŸ“ž Support


Built with ❀️ for marginalized communities worldwide

⭐ Star if you believe in bridging the digital divide!

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages