Inspiration

Every Boston winter, the shortest walk is often the wrong one. A sidewalk can be buried under a plow pile, glazed with ice, or reachable only by a staircase, and map apps still send you straight down it. For someone with a wheelchair, a stroller, or a bad knee, that turns a 10-minute walk into a dead end. We wanted directions that know what the sidewalk looks like today.

What it does

Pick a start and destination around Boston University by tapping the map, using My location, or choosing a BU landmark. Lumi gives three walking routes and explains each one:

  • Shortest: the most direct walk. It avoids sidewalks reported fully blocked and warns you about other hazards.
  • Safer: detours around reported hazards when a reasonable alternative exists.
  • Accessible: avoids every mapped staircase. If your start or end can only be reached by stairs, it moves you to the nearest step-free point and tells you why. It's upfront that we don't have curb-ramp or slope data yet.

The Storm Center screen shows live Boston weather from the National Weather Service, a ticker of recent sidewalk reports, and A/B pins with a map legend. Open pages refresh as other people report.

Anyone can plan a route without signing in. Signed-in users can report a blocked sidewalk with a photo, taken where they stand. An AI agent reviews the photo, but AI never blocks a sidewalk on its own: a person has to report it and the agent has to agree. If the agent is unavailable, the report waits as under review and is retried automatically. People nearby can answer a one-tap "Still blocked?", and a sidewalk reopens only when four different people say it's clear. Every report is labeled confirmed, unverified or under review, and Lumi never calls a route "safe".

How we built it

  • Street network: 5,574 intersections and 14,936 sidewalk segments within 1.5 km of Marsh Plaza, from OpenStreetMap via OSMnx. Boston mostly maps sidewalks separately from the road, so a report on one side doesn't close both, and we keep staircases as their own edges.
  • Routing: a FastAPI backend runs Dijkstra (NetworkX) with a per-request cost function. The street graph never changes; reports are combined with it on each request. In Safer mode, a segment of length $\ell$ with reported risk $r \in [0,1]$ costs

$$\text{cost} = \ell \cdot (1 + 4r)$$

so Lumi detours only when the detour is shorter than about $3.6\times$ the hazardous stretch. Blocked segments are skipped in every mode, and Accessible also skips stairs.

  • Photo review: a Mastra agent on Google Gemini returns a structured assessment. The rule for "confirmed" lives in our Python code, so the AI informs the decision but never makes it alone.
  • Storage: every report and vote is a time-stamped row in a Tiger Data (TimescaleDB) hypertable. On restart, Lumi rebuilds every sidewalk's state by replaying the rows, without calling the AI again.
  • Sign-in: Clerk. The backend verifies tokens against Clerk's public keys and never holds a Clerk secret.
  • Frontend: Next.js, React, Tailwind and Leaflet, designed for phones first.
  • Abuse limits: 3 block reports per day and 5 photos per hour per person, and oversized uploads are refused before they're read.
  • Demo mode: clearly labeled simulated reports and voters, so we can show the four-person rule live with two phones.
  • Process: two people working in parallel through GitHub issues and pull requests, with CI running backend, frontend and Mastra checks on every PR.

Challenges we ran into

  • Stairs hide inside the data. OSMnx merges paths, so a mostly flat path tagged ['footway', 'steps'] was blocking Accessible routes from places like GSU. We rebuilt the graph to keep stairs separate, then added step-free snapping.
  • Trust versus speed. Letting AI block sidewalks would be fast but wrong. Designing the confirm, vote and abuse-limit rules was harder than any algorithm.
  • Cost. We started with a paid vision model and switched to Mastra on Gemini's free tier. Because the reviewer is one plug-in function, the confirm logic didn't change.
  • Working in parallel in 36 hours. Stacked pull requests, merge conflicts, and an early committed database password that we rotated. We learned to keep PRs small and secrets out of git.

Accomplishments that we're proud of

  • Routes that tell the truth: every mode says what it does and doesn't know.
  • A report system where people stay in charge and AI is a check, not a judge.
  • 233 backend tests, frontend and Mastra tests, and CI on every pull request, all built during the hackathon.
  • An honest demo mode where simulated data is always labeled.

What we learned

How sidewalks are really modeled in OpenStreetMap; why time-series storage fits a stream of reports; how to verify sign-in tokens without holding secrets; and that the hardest part of a safety-adjacent app is deciding who can change what, and how to say "we don't know".

What's next for Lumi

  • Reporting milder hazards like ice and slush (the routing already weighs them).
  • Curb-ramp and slope data for a real accessibility promise.
  • Weather-aware predictions, like "this block was icy 3 of the last 5 mornings".
  • Deployment, then all of Boston, and working with the city's snow-removal reports.

Built With

Share this project:

Updates

Submission history