Inspiration
What happens when two good ideas for the same public square need the same space? We started with a concrete example from our pilot in Puebla, Mexico: a shade canopy and a temporary market proposed for the same part of the Zócalo. Both could benefit the plaza, but choosing what to keep requires seeing the trade-offs and recording how the decision was made. We wanted to bring Git's branching and merging workflow to public-space planning.
What it does
Fork the City lets residents start from a documented map, develop alternatives in private branches, and publish revisions others can compare. The comparison shows modeled shade, illustrative costs, and where proposed footprints overlap. In our demo, the canopy and market overlap by 174.67 m². A coordinator can resolve the conflict and merge the proposals while preserving the history of both contributions.
A selected proposal can become a public dossier that tracks milestones, responsibilities, and evidence. The app blocks marking a project complete unless the team cites new evidence. An experimental terrain workspace also lets users explore hypothetical layouts in 3D.
How we built it
We built the web app with Next.js and used Supabase and PostGIS for authentication, permissions, and spatial queries. OpenStreetMap provided the starting point for documenting the pilot site. We used Kiro IDE to turn requirements into specs, define acceptance criteria, and guide implementation, review, and testing.
Challenges and what we learned
One of the hardest parts was translating a merge conflict into something a planner could resolve on a map. We had to show which objects competed for space, let the coordinator redraw a footprint, and keep both contributions traceable afterward.
We also learned to test permissions as the people who actually use the app. A database check passed as an administrator but failed for a signed-in user. Testing under that role exposed the problem and led us to add a regression test. That experience shaped how we verified the rest of the workflow, especially the requirement for evidence before closing a dossier.
Built With
- css
- gl
- javascript
- kiro
- maplibre
- next.js
- node.js
- openstreetmap
- playwright
- postgis
- postgresql
- react
- render
- supabase
- tailwind
- three.js
- typescript