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.
- Overview
- Problem & Solution
- Key Features
- Architecture
- Tech Stack
- Quick Start
- Use Cases
- Project Structure
- Contributing
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.
- β 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
- β 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
| 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 |
- English: Default interface
- Spanish: For Hispanic communities
- Hindi: For Indian users
- Expandable: Easy to add more languages
- Localized Content: Region-specific programs and resources
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
| 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 |
- 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
- 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
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 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) β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| 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 |
| 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 |
| 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 |
- PostgreSQL 14+: Structured data, geospatial queries
- MongoDB: Document storage for feedback
- Firebase: Authentication, push notifications, TTS
- Docker: Containerization
- GitHub Actions: CI/CD
β Java 17+ (backend)
β Node.js 18+ (web frontend)
β Flutter SDK 3.0+ (mobile)
β PostgreSQL 14+
β Docker & Docker Compose
# 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:5050Backend
cd backend
mvn spring-boot:run
# API runs on http://localhost:8080Web Frontend
cd frontend-web
npm install
npm run dev
# App runs on http://localhost:5173Mobile App
cd mobile-app
flutter pub get
flutter runPOST /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" }
}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-..."
}
]
}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"
}
]
}POST /api/voice-query
Content-Type: application/json
{
"query": "What schemes are available for farmers?",
"language": "hi"
}
Response:
{
"text_response": "...",
"audio_url": "https://...",
"programs": [...]
}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"
}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": [...]
}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
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
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
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
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
- β 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
# Backend tests
cd backend && mvn test
# Frontend tests
cd frontend-web && npm test
# Mobile tests
cd mobile-app && flutter test- Vercel:
vercel deploy - Netlify: Connect GitHub repo
- AWS: S3 + CloudFront
- AWS Elastic Beanstalk
- Google Cloud Run
- Azure App Service
- Google Play Store
- Apple App Store
- Fork the repository
- Create feature branch:
git checkout -b feature/NewFeature - Commit changes:
git commit -m 'Add NewFeature' - Push to branch:
git push origin feature/NewFeature - Open Pull Request
Licensed under the MIT License - see LICENSE for details.
- π― 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%
- Marginalized communities who inspire this mission
- Government bodies for program data
- Open-source community
- NGOs supporting community development
- Firebase, OpenAI, and HuggingFace for APIs
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation:
/docsfolder
Built with β€οΈ for marginalized communities worldwide
β Star if you believe in bridging the digital divide!