The problem
Ten thousand steps is a good goal and a dull one. Most of us walk the same three streets to reach it, and after dark many of us walk less, or walk somewhere we don't like. A step counter shows a number. It doesn't tell you where to go, or whether the street is lit.
What it does
- Plans a walk that fits your goal. Type a step goal (10,000 by default) and your stride, choose a loop or an A → B walk, and get a pedestrian route on real OpenStreetMap streets with numbered gems spaced along it. Walks of 5,000 steps or more land within ±5 % of the goal; short goals get a wider margin, because a loop on a street grid can't be 500 steps. Planning always gives a route: if nothing fits, you get the closest one with a friendly note and a one-tap "Use N steps".
- Starts where you are, finishes where you say. There is no start to pick: the walk begins at your location (or the Benicalap demo when location is off, and the app says so). For A → B, type "Where do you want to go?" and choose a suggestion (Photon search, free and keyless, © OpenStreetMap), or tap a finish anywhere on the map, up to about 12 km away. The finish snaps only to streets you can actually walk and shows its distance from the start. If the goal is too short for the direct path, you still get the route, with a joke and a one-tap fix; if no walkable street is near, the app says so.
- Safer by default, and kinder at night. Routes prefer lit streets with sidewalks, shops and people, and avoid alleys, underpasses and unlit paths. From sunset, lighting counts much more. There is no switch for it. Safety changes the search cost only, so your step count stays true. You can list streets you never want to walk; they show as hazard tape.
- Wisp, a pixel ghost that guides you.
- Pacer. Wisp walks the route at 5 km/h, as a pure function of time. The chip tells you where you stand: "Wisp is 20 m ahead", "Keeping pace with the ghost", or "Ahead of the ghost · +31 m Nice pace!". Pass it and it cheers once ("You passed me! What legs!") and keeps walking behind you; your hero never waits for the ghost.
- Onboarding host. Wisp pops in with a "Boo!" and walks you through three screens: start where you are, set a goal, press plan.
- Night scare, then relief. When dusk falls on your walk, Wisp jumps out with "Boo!" and, a moment later, "Don't worry, this way has street lamps." The scare is a friendly pop with a soft "boo" jingle, never a jump-scare.
- Celebration. At the flag Wisp spins and sparkles, and a summary shows steps, distance, time and an earned title.
- Errors that make you smile, then tell you what to tap. Every error, empty and offline state is a joke in Wisp's voice plus the next action. Too-short goal: "Even a ghost needs {min} steps. Tap the button or move the finish closer." Streets won't load: "The streets are hiding from me. Check your signal and tap “Retry”." Spanish has its own jokes, not translations. A test checks every line.
- A Halloween map. Pumpkins, jack-o'-lanterns, cobwebs, waving skeletons, gravestones, crows and candles dress the parks, plazas and corners of the real map. At night they light up, and bats, fog and witch hats on lamp posts appear. All of it is original pixel art drawn in code, and it never sits on a street or on your route. One setting turns it off.
- Landmarks you can recognise. Universities, schools, hospitals, places of worship, town halls and train stations along your route are drawn at their real footprint in their own style: campus buildings with courtyards and entrances, a town hall with a clock tower, a station hall with a vaulted roof and platforms, tracks on gravel instead of houses. No names on the map; Wisp mentions them as you pass and the summary lists what you discovered.
- Dress your hero. Six hairstyles, five hats (cap, beanie, witch hat, top hat, none), four Halloween costumes (witch, vampire with cape, skeleton, pumpkin head) and glasses, scarf and backpack, with a live preview. Saved on the device.
- Walk it with GPS. The route is a trail of red footprints. Collect the gems in order and reach the flag. GPS noise is filtered, the next gem's distance is measured along the route, a different street triggers a quiet reroute, and the quest survives reloads.
- A robot voice and music that follow your pace. An original 1980s-style formant speech synthesizer (English and Spanish, written from scratch) calls out gems, distances and turns. The chiptune is our own composed loop, played from code as you walk, and its tempo follows your steps. Short jingles mark each gem, Wisp's night scare and the finish, and duck the music while they play. A "Chiptune music" switch turns the music off on its own.
- No app store. English and Spanish throughout. Add it to the home screen and it runs full screen, and the bundled Benicalap map works offline.
Open source & community
MIT-licensed code, built on OpenStreetMap data (ODbL) and OpenFreeMap tiles. It runs as a free PWA on GitHub Pages: no account, no server of ours, no API keys. Anyone can fork it for their own city, and the specs and steering in /.kiro explain every decision. It was made to keep working after the hackathon.
How we built it
- React 19 + TypeScript (strict) + Vite, plain CSS, no UI framework, no game engine. The map is a Canvas 2D renderer with a lazily painted tile atlas, scene cache and nearest-neighbour scaling.
- Map data: the map is drawn from OpenFreeMap vector tiles (OpenMapTiles schema, OpenStreetMap data) decoded in a Web Worker and cached on the device. The walking graph is built from the same street tiles; Overpass only adds tags such as lit and sidewalk. A bundled Benicalap extract (ODbL) works offline.
- Tiles: scanline polygon fill into a 5 m grid; 4-bit masks for paths, 8-bit blob masks (47 tiles) for areas.
- Routing: CSR graph and A* with a reuse penalty. Loop and A → B planners tune a size parameter until the route fits the goal's margin (±5 % from 5,000 steps, wider for short goals), and always return the closest route.
- Art and sound are code. Every tile, sprite, decoration and building is drawn procedurally or as pixel grids. The voice is a formant synthesizer with our own phoneme table. The music is a hand-composed chiptune loop and a set of jingles, all synthesized on Web Audio, with no samples. No images or audio from anywhere else.
- Quality: about 35,000 lines of TypeScript and 28,000 lines of tests. 1,908 Vitest tests in 207 files (
npx vitest run), all offline, plus fast-check property tests, Oxlint and a CI workflow that tests, builds and deploys to GitHub Pages.
How Kiro built this
Everything Kiro worked from is in /.kiro at the repository root: 12 specs (36 files), 7 steering files, 9 hooks and 1 custom agent.
Specs (.kiro/specs/, each with requirements.md in EARS, design.md and tasks.md):
| Spec | One line |
|---|---|
routing |
Planner, step-goal margin and always-plan, loop and A → B, far finishes, roundabouts, worker rerouting |
map-rendering |
OSM and vector-tile data, tiles, auto-tiling, streaming world, town and landmarks |
safety-night |
Safety weights, night lighting from sunset, avoid list |
voice-audio |
Formant speech, callouts, chiptune, effects, audio engine |
retro-ui |
Planner, console frame, dialogue boxes, hero, EN/ES |
quest |
GPS filter, snapping, gems, persistence, wake lock, simulator |
ghost-guide |
Wisp: intro, pacer, night scare, celebration |
error-copy |
Every error line in Wisp's voice with a next tap |
halloween-decor |
Seeded, night-aware map decorations |
chiptune |
Our composed quest loop, gem, scare and finish jingles that duck it, the music setting, silence while muted |
landmarks |
Real-footprint campuses, town halls, places of worship, hospitals, schools and stations along the route |
An EARS requirement from ghost-guide, quoted from the repo:
WHEN the quest's light (
?time=or the real time at the walker's place) first reaches dusk or night, THE SYSTEM SHALL play, once per quest, "Boo!" ("¡Bu!") as a quick pop of Wisp's face and its "boo" pose on the map, and 1.5 s later the line "Don't worry, this way has street lamps." ("Por aquí hay farolas.").
Steering (.kiro/steering/): product, tech and structure always load. visual-style, routing, osm-etiquette and copy-voice load by file match. Two rules Kiro followed:
copy-voice.md, "Mischief in errors": "A joke, then the way out. One short funny line in Wisp's voice (fog, sheets, the afterlife, "even a ghost…"), then what to tap or do. The smile never replaces the instruction."visual-style.md: "Never a jump-scare. The scare has a soft "¡Bu!" jingle (see Sound below), never a loud or sudden sound." (the ghost guide; the Sound section below it asks for low volume and our own notes only) and, for the decor, "Never on or next to a street, path or crossing, on water or a building, nor within 2 tiles of the route, start or finish."
Hooks (.kiro/hooks/, read from the JSON):
| Hook | Trigger | What it does |
|---|---|---|
lint-on-save |
A .ts/.tsx file in src/ is saved |
Runs npm run lint |
run-tests-on-save |
A .ts/.tsx file in src/ is saved |
Runs npm test |
build-on-tasks-save |
A spec's tasks.md is saved |
Runs npx tsc -b && npm run build, so a task is never ticked on a broken build |
i18n-parity |
src/i18n/en.ts or es.ts is saved |
Agent checks keys, placeholders and plural forms match in both languages |
error-copy-voice |
src/i18n/en.ts or es.ts is saved |
Agent checks new or changed error lines against "Mischief in errors" |
assets-guard |
An image, audio or font file is created under src/ or public/ |
Agent reminds itself that no external or copyrighted assets are allowed |
walker-progress-tests |
The walker, route walker, overlay or simulator files are saved | Runs the property tests that keep the hero's progress monotonic and at a steady pace |
chiptune-tests |
The theme, jingles, audio graph or music player files are saved | Runs the tests that keep the loop in key, seamless and quiet, and the jingles within their length and level |
spec-sync |
Manual | Agent brings the three spec files up to date with the code |
Custom agent (.kiro/agents/qa-reviewer.json): a read-only reviewer that can run tests, type check, lint, build and read-only git commands, and checks a diff against the steering rules. On its first full pass it found dead panel radii, duplicated spec headings and stale figures in the README and design notes (commit 811bd74).
Workflow: each feature went requirements (EARS) → design (with numbered correctness properties) → tasks → code and tests. A task is ticked only when tests, type check, lint and build pass. The properties become fast-check tests with a fixed seed. Wisp, the error copy and the Halloween decor each got their own spec before any code (commits 944da04, b006fa1, 657d40f).
Kiro surprised us
The far-finish bug. A far A → B pick answered "no walkable street" (the planner returned unreachable) in a real Chrome run, though the streets were there. Kiro instrumented the plan instead of guessing, and its report reads: the corridor loader only loaded cells with no graph record, but 9 of the 36 cells already held a record from another source (the bundled extract or Overpass). That source's streets share no vertex with the tile streets, so the streets on either side stayed separate networks. The start sat on a 24,509-node component and the finish on a 6,661-node one, with the nearest start-component node 3.5 km from the finish. Our synthetic test city had missed it because its streets ran the whole length of every tile and bridged the gaps. Kiro wrote the failing tests first, then made the corridor require a walking record in every cell and snapped the start to the finish's network. Commit 15850e1.
A smaller one: a CI test timed out after about 21 s. Kiro first reproduced it (10 busy loops plus a full run: 4 of 5 failures), then found the cause. The test cut the network after the app had already mounted, and on a slow machine the app's first "locate" had fetched its tiles before the switch. The fix was in the test only: mount after setting the network, and shorten the retry delays. After it, 5 of 5 runs passed in 1.8 to 3.0 s. Kiro did not raise a timeout. Commit 3da2d9f.
Challenges we ran into
- Hitting a step goal, not a distance. Planners tune a size parameter until the route lands within the goal's margin, and fall back to a side loop for long A → B walks.
- Far finishes on one street network. Streets from different sources never shared a vertex, so a plan could fail with the streets in plain view (the Kiro story above).
- Phone GPS in a city. Jumps of 30–80 m between buildings. A filter rejects poor fixes and snapping keeps the walker on the line. Property tests found a first-fix edge case in the odometer that a fixed example never would.
- A ghost that scares, then helps. The night scare had to feel like a wink. It is one pop of the face and a line about street lamps, with a soft jingle and no motion when reduced motion is on.
- Safety without crime data. OpenStreetMap tags lighting on only part of the streets, so main avenues are presumed lit and unknown side streets cost more at night.
- iPhone audio rules. Sound can only start from a tap. The engine unlocks on the first tap and resumes after interruptions.
Accomplishments we're proud of
- It works on a real phone in a real city; I field-tested it on my iPhone with GPS on.
- Everything you see and hear is original and generated in code.
- A ghost, a joke in every error and a Halloween map, on top of a planner that is accurate to the step goal.
- About 1,900 tests run offline on a real map extract, and every push deploys itself.
What we learned
- Writing the spec first made a large project hold together. Kiro's best work came when a requirement was precise enough to turn into a test.
- Tests on a fixed offline map made every change safe.
- Retro constraints (16 px tiles, four sound channels) make design decisions easier.
What's next
- Weekly quests and streaks built on "steps today".
- Street-lamp nodes and shop opening hours for better night routes.
- An installable offline pack for a whole city, and bundled starter areas for other cities.
Built with
Kiro (specs, steering, hooks, custom agent, Kiro CLI) · TypeScript · React · Vite · Vitest · fast-check · Oxlint · Canvas 2D · Web Audio API · Web Workers · Service worker (PWA) · Geolocation API · Screen Wake Lock API · OpenFreeMap · OpenMapTiles · OpenStreetMap · Overpass API · Photon (search) · IndexedDB · GitHub Actions · GitHub Pages
Disclosures (pre-existing work)
- Libraries: React, Vite, Vitest, fast-check, Oxlint, happy-dom,
@mapbox/vector-tileandpbf(BSD-3-Clause), Playwright for screenshots. All open source. - Font: Press Start 2P by CodeMan38 (SIL Open Font License 1.1), via
@fontsource/press-start-2p. - Map data: © OpenStreetMap contributors (ODbL). Tiles: OpenFreeMap © OpenMapTiles. The offline extract in
src/data/is ODbL data. The credit stays on screen. - All code, pixel art, music and voice were created during the submission period (first commit 20 Nov 2026). No sprites, tiles, music, fonts or sounds from any other game; no API keys.
- Kiro wrote most of the code from 23 Nov 2026 onward, under the specs and steering in
/.kiro.
Built With
- canvas
- fast-check
- github
- github-actions
- gps
- indexeddb
- kiro
- openfreemap
- openstreetmap
- overpass-api
- oxlint
- photon
- pwa
- react
- service-worker
- typescript
- vite
- vitest
- web-audio-api
- web-workers