About
## The problem it solves
## The Problem AreaPulse Solves
India files ****40 million civic complaints yearly**** — almost none get resolved. Citizens face ****15-field government forms**** and abandon. Officers drown in ****unsorted queues with no SLA enforcement****. NGOs have ****zero access to ground-level data****. AreaPulse fixes all three.
---
### ****For Citizens — 5 Second Reporting****
- ****AR Camera**** — point at pothole, AI classifies, GPS auto-captured, submitted in ****5 seconds****
- ****WhatsApp Bot**** — send photo via Twilio, ****no app, no account, no form****
- ****Map Tap**** — tap location, upload photo, done in ****30 seconds****
AI pipeline powered by ****Groq Llama-4-Scout 17B**** — classifies ****10 categories****, scores severity, filters spam, detects ****duplicates within 50m****, auto-routes to correct department. Citizens get ****WhatsApp notifications**** on every status change.
---
### ****For Government — AI-Powered Accountability****
- ****SLA timers**** — sewage ****24hrs****, water ****48hrs****, garbage ****72hrs****, potholes ****168hrs****
- ****Auto-escalation**** on SLA breach + ****crowd escalation**** at 25+ upvotes
- ****AI Triage**** — Groq summarizes queue and suggests priority order
- ****One-click status**** — open → acknowledged → in_progress → resolved
- Every update ****auto-pings citizen via WhatsApp****
---
### ****For NGOs — Civic Intelligence****
- ****AI recommendations**** — highest-impact neighbourhood for each NGO's focus area
- ****Opportunity discovery**** — top intervention zones sorted by unresolved issue count
- ****Commitment tracking**** — progress tracked against resolved issues
---
### ****Platform Features****
- ****Public Stats Dashboard**** — resolution rates, SLA breaches, department performance, ****no login needed****
- ****Community Board**** — area channels, citizen posts, alerts, reputation points
- ****AI Complaint Letter**** — formal letter + ****PDF export**** + ****email via Resend API****
- ****Live Map**** — MapTiler + Leaflet, severity pins, heatmap, filtering by tag and area
- ****Dual Database**** — Neon PostgreSQL + Firebase Firestore with 5-min TTL cache
- ****Auth**** — Google OAuth 2.0 + anonymous reporting
- ****Deployed live**** on Render with UptimeRobot monitoring
## Challenges we ran into
### ****Challenges We Ran Into****
****Firebase Quota Exhaustion**** — Free tier ran out within hours during testing. We engineered a ****5-minute TTL read cache**** that reduced daily reads from 2,880 to 288. Added graceful 429 handling that serves from in-memory seed data and queues writes in background threads. Users never see an error.
****Duplicate Detection at Scale**** — Calculating Haversine distance between every incoming report and all existing issues was expensive. We bounded the search to a ****50m radius and 7-day window**** to keep it fast without missing real duplicates.
****SLA System Design**** — Different issue categories need different deadlines. We mapped ****Indian municipal norms**** (24hrs sewage, 48hrs water, 72hrs garbage, 168hrs potholes) and built countdown timers that auto-escalate on breach — capped at 5 escalations per API request to protect the database connection pool.
****WhatsApp EXIF GPS Extraction**** — WhatsApp strips EXIF metadata on some devices. We built ****fallback logic**** — if GPS is missing from the photo, the bot asks the user to share a location pin, or defaults to area centroid coordinates.
****Render Free Tier Cold Starts**** — Both services spin down after inactivity. ****UptimeRobot pinging every 5 minutes**** keeps them warm. We also hit persistent ****pip timeout errors**** during deployment because unpinned dependencies caused pip to backtrack through 40+ package versions. Fixed by pinning every dependency to exact versions.
****AR Camera Latency**** — Getting computer vision classification ****under 5 seconds**** on a mobile browser required optimising image compression before sending to the Groq API. Raw photos were 3-5MB — we compress to under 500KB before the API call.
****Neon Postgres Connection Drops**** — Render free tier and Neon serverless pooler reject persistent connection pools. We replaced pooling with ****per-request fresh connections**** using a context manager that opens, commits, and closes cleanly even on errors — with auto-retry on transient SSL drops.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.








