Inspiration
Online hangouts usually look like a grid of faces in a video call. For Halloween I wanted the opposite: a place you can walk into. One link, no account, and your friends are right there in costume, waving at you across a candle-lit lobby. Ghostel is that place: a haunted hotel where the interface itself is the spooky part, and every spooky detail helps you find people, rooms and games.
What it does
Ghostel is a low-poly 3D haunted hotel that runs in the browser, on desktop and on phones.
- Check in as a monster. The character creator mixes low-poly heads (pumpkin, skull, black cat, vampire, werewolf, Frankenstein, zombie, alien), hats and costumes with a live 3D preview. There is no login: a guest session keeps your name and look across reloads.
- Explore five floors. The Grand Lobby, the Hall of Portraits (the eyes follow you), the Moonlit Greenhouse, Ghoul's Diner and the Rooftop Graveyard above a night city. Each floor has its own original theme, played live with Web Audio, plus NPC ghosts and monsters, so a solo visitor never walks into an empty world.
- See everyone in realtime. Other guests move, chat and show speech bubbles live. The server checks every move, so nobody can walk through walls or teleport.
- Meet at a door. Rooms sit behind numbered doors on the first three floors (like 1A, 2B or 3C), so "meet me at 2B" works. Rooms can be locked with a password that is checked on the server.
- Sit down and talk. Walk up to a table and the hotel turns into a Zoom-style meeting with voice, optional camera, screen sharing and PDF slides.
- Play together. Pumpkin Trivia and Monster Pairs run on a small game kit, with turns, timers and scores decided by the server. A candy hunt across the floors unlocks the Golden Crown.
- Also inside the hotel: the Night Desk, a 1987 green-screen terminal with a short original text adventure, and the Haunted Mirror, where your own camera appears in the glass as a rippling ghost (it never leaves your device).
Try it: open https://ghostel.fldev.co.id in two browsers (or with a friend), pick a costume, and meet at door 2B. Pumpkin Trivia waits in room 1A; a bot joins if you play alone.
How we built it
I built Ghostel solo with Kiro CLI, starting from an empty folder on November 7. I set the goals and made the decisions in Indonesian; Kiro wrote the specs, code, tests and docs in English.
Specs. The project grew through 28 milestones, kept in 27 spec folders in .kiro/specs/ (milestones 1 and 2 share one), each with requirements.md, design.md and tasks.md. I approved the requirements before code was written, and the task lists were ticked off in order. Most specs were written before the code; the few written during or after implementation say so at the top.
Steering. Seven files in .kiro/steering/ hold decisions I made once: the server is authoritative, passwords use argon2id, the agent talks to me in Indonesian but writes code in English, and the agent never runs git. visual-style.md only loads for files in the 3D folder, and submission.md only when included by hand.
Hooks. A PreToolUse guard blocks git commands and writes to an older project folder, a SessionStart hook prints the project status, and a PostFileSave hook runs the shared tests. Every guard and status run is logged in docs/evidence/kiro-hooks.log.
Stack. A strict TypeScript pnpm monorepo: React + React Three Fiber (three.js) and Vite on the web; Fastify and ws on the server, authoritative for positions, room membership, passwords, turns, timers and scores; WebRTC for voice, camera and screen share, with a self-hosted TURN relay; Web Audio for the music and sound effects; PostgreSQL for guests and rooms. The demo video was made with Remotion, using Ghostel's own music.
Testing. 254 automated tests (138 shared + 12 web unit tests, 104 server integration tests on real PostgreSQL) plus 33 Playwright browser tests with a fake microphone, camera and screen. Real command output, including failed runs, is kept in docs/evidence/.
Challenges we ran into
- The white screen on Android. After launch, the 3D scene on an Android phone went blank while the chat and name tags still worked. Kiro wrote a failing browser test that reproduced the lost WebGL context first, then added a recovery layer, and the same test passed.
- "0 connected" on the live site. Calls worked locally but not between mobile data and Wi-Fi, because production only had a STUN server. That became a milestone for a self-hosted TURN relay with short-lived credentials, checked with a probe script.
- A fix that broke things. An iPhone audio fix broke two browser tests. An A/B run and a bisect showed the fix itself was the cause; the final version retries only the audio elements the browser refused.
- A hook that blocked Kiro itself. The git guard stopped one of Kiro's own commands. It was a false positive (the command only wrote documentation quoting
git status), so the guard was fixed and the case became a unit test.
Accomplishments that we're proud of
- A complete multiplayer world, not a demo: five floors, rooms, meetings, two games and original music, live at https://ghostel.fldev.co.id.
- It works without an account and on phones, with an on-screen joystick.
- A Kiro workflow that is visible in the repo: 27 spec folders, 7 steering files, hooks with real log lines, and an honest activity log.
- Every claim has a test or an evidence file behind it.
What we learned
- Write the spec before you are excited about the code. Agreeing on acceptance criteria first saved a lot of "that's not what I meant".
- Put your rules where the agent always sees them. Steering files beat repeating yourself in every prompt.
- Make guardrails observable. A hook you cannot see is a hook you cannot trust.
- Keep the failures. Failed test runs told a better story than a wall of green checkmarks.
What's next for Ghostel
- More games on the game kit, so each floor can host its own.
- Proximity voice in the open floors, not only at tables.
- More testing on real phones and physical gamepads.
- Seasonal "re-decorations" of the hotel after Halloween.
Built With
- coturn
- fastify
- kiro
- node.js
- playwright
- pnpm
- postgresql
- react
- react-three-fiber
- remotion
- three.js
- typescript
- vite
- vitest
- web-audio-api
- webrtc
- websocket