All projects
Building · launching soon private repo
2
languages (EN · TA)
~320
automated tests
34
database migrations
10
architecture decisions

What it does

Spot a pothole, an overflowing bin or a broken street light, pin it on the map, attach a photo and publish it, with no account needed. Neighbours confirm or update issues, and every change lands on an append-only history.

Report in under a minute

  • A mobile-first map is the home screen: drop a pin, attach a photo, pick a category and publish.
  • No account: each visitor gets a pseudonymous identity on their first action, and reporter names are private by default.
  • Drafts are saved locally and photos upload in the background while the rest of the form is filled.

Community, not complaints

  • Neighbours confirm issues or mark them still present or fixed; reporter and community statuses stay separate.
  • Rule-based duplicate detection with per-category search radii, never auto-merged.
  • Full-text and trigram search, category and location pages, and anonymous web-push follows for issues and places.

Built for Tamil Nadu

  • Fully bilingual in English and Tamil, with coverage enforced by lint and a CI check.
  • PostGIS viewport queries cluster below street zoom and cap results, so the map stays fast on cheap phones.
  • Admins work from an audited console with MFA and mandatory reasons, and there is no delete button, by design.

Architecture

map tiles (OSM)phonemobile webphotos (R2)Next.js appAPI routesissues · geo · searchidentity · rate limitsaudited adminPostGISblurred public pointsbackground jobsre-encode · moderate

See it run

makkalmap · new report

your tap 13.08271, 80.27072

pothole.jpg

  • GPS 13.08271, 80.27072
  • Camera Pixel 7
  • Taken 09:41

metadata stripped · re-encoded to WebP

moderation: …

public 13.0827, 80.2707 · ~11 m grid

published · issue #1042

Simulated replay of a MakkalMap report, not a live call.

Engineering decisions

Locations are blurred in public

Every public coordinate is snapped to a roughly 11 m grid in SQL; the exact point is kept only for moderation, duplicate checks and area lookup.

Photos are cleaned and moderated first

Uploads are type-checked from their bytes, re-encoded (which strips EXIF and GPS), and stay unreachable until moderation approves them. Moderation fails closed.

Abuse limits without extra infrastructure

Around 17 rate-limit buckets live in Postgres with hashed IPs, and repeat abusers automatically get tighter limits.

Least privilege, tested recovery

The app's database role cannot delete or alter tables, and backups are restored in CI every week, not just taken.

Privacy and trust by design

A civic map only works if people feel safe posting to it. So the first rules were about what the public must never see: exact locations, photo metadata, or who posted what.

Those rules became code paths, not policies: a SQL function that blurs every public location, image processing that strips metadata before anything is published, and a moderation pipeline that keeps media private until it is approved.

The whole stack runs for about $6 a month on a small server behind a Cloudflare tunnel, with load tests, query-plan tests and accessibility checks in CI.

Stack

Next.jsReactTypeScriptPostgreSQLPostGISMapLibreCloudflare R2Docker

What's next

MakkalMap lives in a private repo. Happy to walk you through it.

Request a demo