Inspiration

Habit trackers show you a number. I wanted the feedback to be the interface itself: every habit is a candle in a haunted house. Check in and the flame grows; miss a day and a ghost moves in. The haunting is the streak — there is no separate progress bar.

What it does

Habit Haunting is a habit tracker where the spooky interface IS the feedback system. Each habit is a candle in a haunted house. Checking in keeps the flame alive and the streak growing. Missing days lets a ghost grow, move rooms, and darken the house — miss 3+ days and the habit is marked "haunted" until you revive it. The dashboard shows the house, today's check-in list, and a weekly graveyard calendar. Streak milestones (7 / 30 days) award relics. Everything persists locally — no account, no paid API, no LLM. Data exports and imports as JSON with an exact round-trip. A first visit opens on a welcome card, and one click loads a pre-haunted demo house so you can see the haunting and revive a habit live.

How we built it

Built entirely in Kiro, spec-first: requirements (EARS) → design → tasks, with a human review gate between phases. Steering docs (product.md, tech.md, structure.md, plus a custom design-tokens.md) kept the palette from drifting. Stack: TypeScript (strict), React 19, Vite, SVG house, no backend, data in localStorage; Vitest + fast-check property tests; ESLint. The haunting engine — streak, missed-day gaps, ghost level, flame height — is pure, testable functions with property-based tests (streak never goes negative; a completed day always increases flame; ghost level is monotonic in missed days; export → import round-trips exactly). A hook runs lint + unit tests on save, and another blocks hard-coded dates in tests. Two custom agents: a UI-polish agent (front-end files only) and a test agent. Vibe-coded the creative/UI polish; spec-drove the architecture and logic. Result: 13 tasks, 339 tests passing, lint and typecheck clean. ~30 of 4,000 Kiro credits used.

Challenges we ran into

Date and streak edge cases — midnight, timezones, missed-day gaps — are where example tests fail, which is why the haunting engine got property-based tests instead of examples. The UI tests hit their own snag: the Node test environment has no DOM, so the React component tests couldn't run until jsdom and Testing Library were added in — engine tests still run in plain Node, component tests run under jsdom.

Accomplishments that we're proud of

A demo that works with zero backend, zero accounts, and replays identically every time — what you see in the video is exactly what the live app does. And 339 property-based tests on the haunting engine, so the ghost math is verified, not vibes.

What we learned

Property-based tests catch what example tests miss — date and streak edge cases are exactly where hand-written examples fail. And spec-first kept the creative work honest: the haunting rules were written down before any code, so the app does what the spec says.

What's next for Habit Haunting

A polish pass on the demo house, then making the demo house the first thing a new visitor sees instead of the welcome card.

Try it: https://habit-haunting-ky8w8t174-asantosh666.vercel.app/ Code: https://github.com/asantosh666/habit-haunting

Built With

Share this project:

Updates

Submission history