Haunted Mansion AI is a Halloween web app that stitches four incompatible pieces into one experience:
- Interactive horror-story generator — pick a setting, a monster and a twist, and get a 5-chapter branching story with 2 choices per chapter and one of 3 endings (Escape / Haunted / Tricked) driven by the courage of your choices. Generation is deterministic: the same choices + seed always produce the same story.
- Haunted-mansion explorer — 6 rooms (Foyer, Library, Kitchen, Cellar, Attic, Ballroom), each with a description, a clue and a collectible item. Collect all 6 to earn the Master of the Mansion badge.
- Trick-or-treat map — 10 fictional houses on a Leaflet/OpenStreetMap map with candy ratings, scare levels, treats and hours. Filter by candy rating or order the "Best route". Works as a list when map tiles are offline.
- Spooky UI — dark Halloween theme, tab navigation, remembered sound toggle. No accounts, no API keys, no tracking. Runs with one command (npm start), zero npm dependencies, no build step.
How Kiro was used Kiro CLI 3.2.1 was installed and verified on the build machine; the project was built following Kiro's spec-driven workflow — EARS requirements, design and task checklist in .kiro/specs/haunted-mansion-ai/, steering rules in .kiro/steering/, and a run-tests-on-save hook in .kiro/hooks/. Verification followed Kiro's property-based-testing spirit (determinism over 50 seeds, invariants over all 64 setting/monster/twist combinations). The entrant logged in with his own Builder ID (15 Nov 2026) and a real Kiro agent session ran in the repo on 19 Nov 2026: it reviewed the spec against the code and ran the full test suite — 13/13 pass, no changes needed. No Kiro credits were used yet.
How to run git clone https://github.com/taufik52/haunted-mansion-ai.git cd haunted-mansion-ai npm start (http://localhost:3000) npm test (13 tests, all passing)