Reporting a broken facility with one photo
For people who walk past broken streetlights, benches and paving stones, I built a mobile web app that fills in a report from a single photo with no sign-up, and shows progress through a QR code on the receipt.

By the numbers
Every figure is a measured value with a source. Values from the rebuilt environment are marked as such.
Cold first E2E testReproducible measurement
44.9 s → 3.5 s
Development log (private). Before and after applying vite.config.ts optimizeDeps.include and server.warmup
E2EReproducible measurement
18 spec files, 119 passed (1.3 min) + PWA 2 passed (2.8 s), 2 consecutive runs (2nd run 1.2 min)
ls tests/e2e/*.spec.ts, Development log (private)
Photo analysis on the public service (non-sample, real model)Production measurement
About 5.7 s, HTTP 200
Measured on the Cloud Run public demo (2026-11-10), Development log (private)
Form generation (template)Production measurement
0.068~0.099 s, HTTP 200 on all 5 runs
Re-measured on the Cloud Run public demo (2026-11-10 20:32), Development log (private)
Rate limit, measuredProduction measurement
429 on the 5th call within a minute (scope `minute`, `Retry-After` 19); a spoofed X-Forwarded-For does not bypass it
Measured on the Cloud Run public demo (2026-11-10), Development log (private)
A one-photo slot machine
How this project works, redrawn as one machine. Left alone it tours itself; press or drag to take over.
How it was solved
Citizens do not skip reporting because they do not care; they skip it because reporting costs too much. Installing an app, signing up, figuring out jurisdiction and typing an address are that cost.
Bring the cost of reporting close to 0 and participation follows.
Real screens


1. Situation
When a streetlight, bench, playground or paving stone breaks, people walk past assuming someone else will deal with it. Reporting means installing an app, signing up, working out which authority is responsible and typing in an address, and afterwards there is no way to know whether anything was fixed, so people do not report the next time either. My read was that citizens are not indifferent; reporting is simply expensive.
I set a single success criterion: hand a phone to someone seeing the app for the first time, say "report that streetlight," and they reach the submission screen within 15 seconds without any explanation.
2. Scoping
I removed sign-up and login. You upload one photo, and the facility type, fault type and responsible department are filled in from the photo and location. Auto-filled fields are marked "(auto)" so you only correct the wrong ones. Reports for the same spot are merged into one, and progress is checked through the QR code on the receipt. The UI never uses words like "model" or "classifier."
Replacing municipal back-office systems, sending reports to real agencies automatically, and crime or emergency reports are out of scope. I could not confirm an external intake API for domestic agencies from public documentation, so I decided not to send real complaints through an unverified channel. The public demo is pinned to a mock agency (an Open311 GeoReport v2 subset).
3. Build
| Category | What | Rationale |
|---|---|---|
| Adopted | Open311 GeoReport v2 spec, rate-limiter-flexible, Qwen, Cloud Run | An intake spec confirmed as a public standard, and a rate-limit library that can consume and refund at the call site |
| Modified | Vite dependency pre-optimization settings, background of the fixed bottom button | Changed only after measuring to confirm the cause |
| Built | Submission adapters (mock, open311, email) with a confirmation-phrase guard, sample-photo fast path, minute → day → global consume and refund | The safeguard against real sends and the cost ceiling had to fit this product's needs |
A real adapter turns on only when the confirmation phrase matches exactly; in demo mode everything goes to mock. EXIF data is stripped and photos are kept for 7 days only.
4. What broke
The real model judged the samples "out of scope." Once I added the model key, the sample walkthrough on the first screen ended with "unsupported facility." The server logged no downgrade warning, so the call had succeeded, and I concluded the model was rejecting the synthetic samples. I made samples use a fixed result without the model when the file hash or EXIF coordinates match, and split model verification failures into a separate guidance screen. The trade-off is that a photo with forged sample coordinates gets processed without the model.
Merging pieces built in parallel broke 2 tests. Both tests used photos with the sample coordinates embedded for fake-model scenarios, and I confirmed the new sample-first rule was skipping the model call. I left the assertions as they were and changed only the input to photos without GPS.
E2E intermittently timed out. The full run took 3.8~5.8 min. Using cold first-test times, I confirmed that the Vite server started fresh for each spec was paying for all dependency optimization on its first request, and added pre-optimization and warmup.
5. Results
| Metric | Value | Scope | Source |
|---|---|---|---|
| Cold first E2E test | 44.9 s → 3.5 s | Reimplementation, local | Development log (private) |
| Full E2E duration | 3.8~5.8 min (intermittent timeouts) → 1.3~1.7 min | Reimplementation, local | Development log (private) |
| Photo analysis on the public service | About 5.7 s, HTTP 200 | Operations, non-sample, real model | Development log (private) |
| Form generation (template) | 0.068~0.099 s, HTTP 200 on all 5 runs | Operations, re-measured 2026-11-10 | Development log (private) |
| Rate limit | 429 on the 5th call within a minute; spoofed headers do not bypass it | Operations | Development log (private) |
6. If I did it again
I did not measure classification accuracy on real photos; I tested only with synthetic images. I also did not verify "submitted within 15 seconds" with first-time users. For both, the first step is to have a few people actually use it and record the results.
Form generation with the real model takes 7~13 s, so I need to decide whether to make the template the default. The rate limit lives in server memory, so it resets on restart and counts separately per instance; I would move it to persistent storage. There is no admin authentication, so it is demo-only. Before running it for real, I would add authentication and an agency integration path.