Skip to content
CITIFIX

CITIFIX

Smarter Cities Start Here

Created on 9th May 2026

•

CITIFIX

CITIFIX

Smarter Cities Start Here

The problem CITIFIX solves

🏙️ The Broken Promise of Civic Infrastructure

Every day, millions of citizens deal with potholes, broken streetlights, overflowing garbage,
and burst water pipes
— and most of them have no idea who to call, whether anyone is listening,
or if anything will ever actually get fixed.

CitiFix is a Municipal Accountability Operating System that closes the loop between citizens
and government — making civic complaint management transparent, trackable, and fraud-proof.


🧑‍💼 For Citizens

  • Report civic issues (potholes, broken infrastructure, water leaks) in under 60 seconds with
    GPS-verified photo evidence — fake/downloaded photos with mismatched GPS are automatically
    rejected, preventing fraudulent reports
  • Track every update on your complaint in real time — from "Open" → "Assigned" → "Resolved"
  • Challenge a fake resolution with a counter-photo if the department falsely marks something
    as fixed
  • Earn reward points for reporting, voting, and community participation

🏛️ For Municipal Departments (SubAdmins)

  • Receive a structured project assignment with budget, warranty period, and deadline set upfront
  • Participate in a transparent bidding process — submit your proposal (budget, timeline, team
    size, approach) and compete fairly for project allocation
  • Request deadline extensions with a formal approval process
  • Raise blocking issues that automatically escalate to the SuperAdmin

👑 For SuperAdmins (City Officials)

  • Run a competitive project bidding system — broadcast tenders to all SubAdmins in the
    relevant department, review proposals side-by-side, and award the best bid which auto-assigns
    the SubAdmin to the complaint
  • Configure SLA deadlines per department — automatic escalation triggers if deadlines are breached
  • Full analytics: resolution rates, SLA breach tracking, SubAdmin performance leaderboard
  • Live City Heatmap showing where complaints are clustering geographically

🤖 AI-Powered Features

  • Smart auto-categorization — complaint title/description is analyzed and auto-tagged to the
    right department (Roads, Water, Sanitation, Electricity, etc.)
  • AI description generator — citizens can generate a professional complaint description from
    just a title
  • Civic chatbot assistant — helps citizens navigate the system and understand their complaint status

CitiFix doesn't just digitize the complaint box — it rebuilds the entire accountability chain
from citizen to resolution with evidence, deadlines, bidding, and transparency.

Challenges we ran into

🔧 The Hard Parts of Building CitiFix

1. GPS-Verified Photo Submission (The Hardest Feature)

The biggest technical challenge was building a fraud-proof photo verification system.

The idea: if a citizen uploads a downloaded/WhatsApp image instead of taking one on-site, the
system should detect and reject it. My approach was to extract EXIF GPS metadata from the photo
using the exifr library and compare it with the user's live GPS coordinates using the
Haversine formula (great-circle distance between two GPS points).

The challenge? Compressed images (WhatsApp, social media) strip EXIF data — so I had to
distinguish between "no GPS = downloaded photo (block)" vs "no GPS = photo taken with GPS
disabled (edge case)". I also had to handle IP-based GPS fallback for devices without location
hardware. The solution ended up with 5 distinct verification states (match, mismatch,
no_exif, need_location, ip_fallback) each with its own UI and submit-button behavior.

2. The Project Bidding System — Database Transactions

Implementing the competitive bid lifecycle required an atomic database transaction: when a
SuperAdmin awards a bid, it must simultaneously:

  1. Mark the winning BidProposal as AWARDED
  2. Mark all other proposals as REJECTED
  3. Set the ProjectBid status to AWARDED
  4. Auto-assign the SubAdmin to the complaint with the quoted budget and timeline

If any one of these steps failed midway, the database would be in an inconsistent state. I solved
this using Prisma's $transaction() API which wraps all 4 operations in a single atomic
database transaction — either all succeed or all roll back.

3. SLA Breach Auto-Escalation + Twitter Integration

Building an automated escalation system that runs on a schedule (using node-cron) and
cross-references complaint deadlines, breach thresholds, and then attempts to post on X (Twitter)
proved challenging when Twitter's free API tier returned 402 CreditsDepleted errors. I had to
build a graceful fallback system with retry tracking (xPostAttempts, lastXPostAttemptAt,
xPostError) so the scheduler wouldn't spam failing API calls, while still logging the breach
in the database for admin visibility.

4. Department-Scoped Authorization

Ensuring SubAdmins could only see complaints, bids, and raised issues from their own department
required careful middleware design. Every SubAdmin route had to read req.userId, fetch the
user's department from the DB, and filter all queries accordingly — without exposing cross-department
data even through direct API calls with a valid token.

5. Real-Time Resolution Proof with Citizen Challenge

The "resolve with proof photo" feature required building a two-sided verification flow: SubAdmin
uploads an "after" photo → citizen sees it and can challenge with a reason → complaint goes back
to ESCALATED. Handling state transitions (resolutionChallenged, resolutionChallengeNote,
resolutionImageUrl) while keeping the UI intuitive for both parties was a significant UX and
data-modeling challenge.

Discussion

Builders also viewed

See more projects on Devfolio