Session tools for a roleplay game master, use a second screen like an iPad to display the NPCs to the players.
https://tomasvanrijsse.github.io/dnd-dm-presenter/
The home page (/) is a grid of the NPCs (rows) against the players (columns). Each cell tracks how many points
that NPC holds for that player. Points can go negative.
Points can be used for admiration, kudos, loans, gambles etc.
- Add NPC opens a form to create an NPC (name, image path, rich-text description). Clicking an NPC's name or avatar opens a view of their description.
- The handshake icon for an NPC row will make the name appear on the NPC display.
- Reset all clears every point and reset it to zero. It leaves the away and introduced flags alone.
It is not shared across machines or browsers.
The /admin page manages the players used across every other page: add, edit, and remove players (name).
The /admin page also holds the Leonardo.ai API key and the style prompt used when generating NPC portraits
(the "Generate with AI" option on an NPC form). Get a key at
app.leonardo.ai/api-access/api-keys. Tip for the style prompt:
upload an image whose art style you like into an LLM and ask it to describe that style in words suitable for an
image-generation prompt, then paste the result in. Both fields are stored only in this browser.
Open display opens /present in a new tab — a full-screen, white-background grid of the portraits of every NPC
that is currently not away. One NPC fills the whole screen; more NPCs tile side by side, growing into more rows as
the count goes up. If an NPC has been marked Introduced their name appears beneath their portrait; otherwise only the portrait shows.
Put it on a second screen or projector for the players and drive the away/introduced status from / on
your own screen. Since both pages read the same localStorage state, changes on / update the display live, even
across windows.
All the data that you enter is only available within that browser on that machine. You can store everything into a zip file. This way you can prepare for multiple sessions or reuse the data on a different machine.
Images (NPC portraits, item pictures and location maps) live in the browser's IndexedDB rather than in
localStorage, so a session can hold high-resolution location maps that stay sharp when you zoom in.
A save zip carries those images as files alongside state.json, so it stays self-contained.
Upgrading from a version before this change: export a save zip first, then load it again after updating. Images stored the old way are only converted when a zip is imported; nothing converts them in place.
The trash button next to save and load wipes every NPC, item, location, player, group and session event from this browser, images included. It asks for confirmation first, and that confirmation tells you when you last saved to a zip, so you can judge how much is about to be lost. Your Leonardo API key and style prompt survive the wipe, since those are per-machine settings rather than session data.
Install dependencies:
pnpm installStart the development server on http://localhost:3000:
pnpm devpnpm lint
pnpm typecheckLocally preview production build:
pnpm preview