Personal project
Murder house Table Companion
Rules, character creation and live character sheets for Murderhouse, my friend Emma Milerud Sundström's horror roleplaying game. Built for our table, live, and free to run.
Invite only: I create each player's account.
The problem
Murderhouse is a tabletop roleplaying game by Emma Milerud Sundström, a homage to the slasher films of the ’80s, ’90s and early 2000s. Our group plays it from her draft rulebook, about 90 pages, with paper character sheets.
Making a character meant working through tables and arithmetic, and a chase meant keeping track of who was where while everyone rolled. I wanted one place for the table: the rules, a character in a few minutes, sheets that follow you to your phone, and the dice, without changing how the game is played.
Constraints
- Emma's rulebook is an unreleased draft, so the rules may only reach signed-in players.
- It has to cost nothing to run.
- The table keeps its real dice, so the site never has to roll for you.
My part
A personal project for my own gaming group. I did everything outside the game itself: the product, the design, the code, hosting and security, and the players' accounts. The game, its rules and its text are Emma's.
Decisions
Check before you serve
The app carries the rules, so a small middleware asks Supabase whether the visitor is signed in before sending it. If Supabase doesn't answer, nothing is sent: it fails closed.
The party, not the secrets
Everyone at the table can see everyone's characters, but a database function leaves out each character's secret and private notes, and only the owner can change a character.
AI reads, the player decides
In the Claude version, a player can photograph a filled-in paper sheet and Claude fills in the character form. It's told to leave out what it can't read rather than guess, and the player checks it and fixes anything before saving.
Real dice stay real
An Own rolls switch lets players type in what their real dice show wherever the page would otherwise roll, so the site helps the game without changing it.
What players get
Rules at hand
All the rules, in a shorter version of Emma's rulebook, with contents and search.
A character in minutes
Seven guided steps that explain each choice and do the maths.
Sheets for play
Stress, Vitality, wounds, conditions and gear, saved to the player's account and on every device.
The whole party
Everyone's characters on one screen, refreshed every 20 seconds while it's open.
Chases
A tracker for who's ahead, with the odds shown before each roll.
Dice
A dice tray for checks, saves and any other roll.
And the rest
Eight looks, from pencil and paper to VHS tape; a short guided tour on the first sign-in; and character codes that move a character between the two versions or to another player.
What I left out
No framework and no bundler: one file is easier to change and to run in both places. No live sync between devices: the party view refreshes on a timer, which is enough at a table. No public sign-up and no email: Supabase's free email only reaches the project's own team, so I create accounts with a starting password that players change in the app. Reading a photo of a paper sheet stays in the Claude version, because on the website it would mean paying for an AI service.
Result
Live for our group, invite only, with nothing to pay for hosting, the database or DNS. Visitors without an account see only the landing page.
How I built it
- One file, two homes: plain HTML, CSS and JavaScript in a single file that runs both as a Claude artifact and as the website. A storage layer picks Claude's database, Supabase or the browser, depending on where it runs, and a small Node script wraps the file for the website.
- Vercel Routing Middleware checks every request: the Supabase sign-in, and an optional site password kept as a keyed hash in an HttpOnly cookie, because Vercel's own password protection is paid.
- Supabase handles sign-in and stores each character as JSON in Postgres. Row-level security limits every query to the player's own rows, and a security-definer function returns the party without secrets or private notes. Text from other players is escaped and numbers are checked before anything is shown.
- Automated tests with Node's test runner cover the middleware and the build. Playwright and axe check the pages against WCAG 2.2 AA at 320, 375 and 1280 px, in light and dark mode and in several looks, and I check keyboard use.
- I built it with Claude, guided by the design, accessibility and writing skills in my methods plugin. The repository documents setup, operations, architecture and development.
Murderhouse is created by Emma Milerud Sundström. It is an independent production based on the Mothership® Sci-Fi Horror Role Playing Game by Tuesday Knight Games, published under license. MOTHERSHIP® is a registered trademark of Tuesday Knight Games. The companion isn't an official Murderhouse product.
Want the details behind this? Email me at filip@heinel.dev.