Skip to content
Vox Tabletop

Vox Tabletop

Vox Tabletop (hereinafter the “Application”) is a system agnostic virtual tabletop for running Warhammer 40,000 campaigns with friends. It works with Wrath and Glory, Dark Heresy, Imperium Maledictum, Crusade or anything else a group plays, and players sign in with Discord.

The Application is independent. It is not made or endorsed by Games Workshop, and it ships no Games Workshop rules text. Each group supplies its own character sheet templates and stats.

This section is for those interacting with a live instance of the Application.

The Application is available at vox.spellware.dev.

  1. Ask your gamemaster for an invite link to their campaign.
  2. Open the link and sign in with Discord. Only the identify scope is requested, so the Application never sees your email address.
  3. Create your character from a template your gamemaster allows, then open the campaign.

Someone who signs in without an invite sees no campaigns, only a message pointing them to the Discord community at chat.spellware.dev, and cannot create anything.

Only approved gamemasters can create campaigns. Gamemaster status is read from a configured list of Discord accounts on every request. Each campaign also records its own gamemaster, and only that person can manage it. Everyone else signs in, opens an invite link and plays.

Every campaign has a live chat. Dice are rolled on the server with a cryptographically secure random source, so nobody can fake a roll.

CommandWhat it does
/roll or /rRoll for everyone to see
/gmroll or /grRoll that only you and the gamemaster can see
/gm messageWhisper to the gamemaster
/me actionEmote, such as “/me checks the auspex”
//textSend text that starts with a slash

The “Send to” picker whispers any message or roll to one member.

Anything after the expression is a label, for example /roll 2d6+3 Bolter damage.

NotationMeaning
2d6+3, d%Dice and numbers added or subtracted
4d6kh3Keep the highest 3. kl, dh and dl also work
3d6!Exploding dice. !>=5 sets a custom threshold, capped at 100
2d6r1Re-roll 1s once. r<3 re-rolls anything under 3
10d6>=3Count successes. >, <, <= and = also work
10d6>=3c5Criticals on 5 or more. Defaults to the highest face
7wgWrath and Glory pool with one Wrath die, counting Icons
7wgdn3w2Against DN 3 with two Wrath dice. Reports Shifts, Glory and Complications
dh45+10Dark Heresy 2e test with degrees of success or failure
im45Imperium Maledictum test with Success Levels and criticals
d100<=45d100 roll under with a degree per full 10, for Dark Heresy 1e, Rogue Trader and Deathwatch
@{name}A value from a character sheet, filled in by sheet roll buttons

Sheets are built from templates. Four ship with the Application, and contain stat and skill names only:

  • Wrath and Glory: attributes, skill pools, traits such as Defence and Resilience, and weapons with Extra Damage rolls.
  • Dark Heresy 2nd Edition: characteristics, skill advances from Untrained to Veteran, specialist skills, status and weapons.
  • Imperium Maledictum: characteristics, skill bonuses, specialisations, status and weapons.
  • Crusade unit card: profile, weapons with hit and damage rolls, XP, rank, tallies, honours and scars.

Who can do what:

  • Players create and edit their own characters. The gamemaster can edit every sheet, create characters for a player and create NPCs.
  • Each sheet has a “Visible to the party” switch. Characters start visible. NPCs start hidden until the gamemaster reveals them.
  • Roll buttons fill in the sheet’s values and post to chat. Tick “Roll privately to the GM” to roll hidden. NPC sheets start that way.
  • Edits save when you leave a field and appear live for everyone who can see the sheet.
  • “My characters” in the header lists every character you own across all your campaigns. Characters from campaigns you have left stay there, read only.
  • In the lobby, the gamemaster can limit players to chosen templates, so that nobody builds a sheet for the wrong game.

Templates are YAML or JSON. The gamemaster uploads them under Dossiers, then Sheet templates, and every problem is listed with where it is. A commented example is available in the repository as packages/shared/schema/example-template.yaml.

Start the file with this line, and VS Code with the YAML extension will autocomplete and check it as you type:

# yaml-language-server: $schema=https://vox.spellware.dev/schema/sheet-template.schema.json
Field typeStoresIn rolls and formulas
numberA number, with optional min and maxThe number
textA line of textThe text, such as 1d10+3
textareaLonger notesThe text
checkboxTicked or not1 or 0
selectOne of its optionsThe option’s value
resourceCurrent and maximum, such as Wounds@{id} for current and @{id_max} for maximum
computedNothing, worked out from its formulaThe result

Formulas support + - * /, brackets, and floor, ceil, round, abs, min and max, for example floor(@{strength} / 10). Sections with kind: repeating hold rows, such as weapons, and their rolls can use the row’s fields. Uploads are checked for unknown references and circular formulas.

Inside a campaign, the battle map fills the screen and everything else sits over it as amber displays, laid out like a game HUD:

  • Top left: map tools and zoom.
  • Top right: Lobby, Battle map and Journal. The lobby, sheets, templates and journal open as windows over the map.
  • Right: the muster roll for everyone. The gamemaster also gets the scene list and scene settings. Everyone sees the selected token’s details.
  • Bottom console: the chat and dice log on the left, a readout of the selected token in the middle and the initiative order on the right.

Every display can be folded away, and stays folded next time on that browser. Drag the brass edge along the top of the console, or focus it and use the arrow keys, to give more room to the map or the console. Double click it to reset. On narrow screens the displays stack under the map.

The muster roll shows everyone in the campaign with their portrait and where they are: at the table, elsewhere in the Application, or offline.

Players also get three safety lights, so they can tell the gamemaster how a scene is landing without saying it aloud:

LightMeaning
GreenAll good
YellowEase off, and check in with me soon
RedStop this now
  • Only the gamemaster sees a player’s light, by name. Other players never see it.
  • A new red light puts a pulsing banner over the gamemaster’s table and plays a soft chime until the gamemaster presses Acknowledge.
  • The gamemaster can clear all lights after a check in, and every light goes back to green when the gamemaster shows or hides a scene.
  • Lights are held in memory only. They are never stored, and they reset if the server restarts. Each change does add a private note to the gamemaster’s chat, which only the gamemaster can read, so there is a record after the session.
  • Scenes. The gamemaster builds as many scenes as they like and chooses which one players see with “Show to players”. Players only ever receive the scene being shown.
  • Grids. Each scene has squares or hexes, measured in cells, or no grid at all for wargames measured in inches. Set the cell size in pixels to line the grid up with a map image.
  • Images. Map backgrounds and token pictures can be PNG, JPEG, GIF or WebP, up to 10 MB. SVG is refused because it can carry scripts.
  • Tokens. Everyone can place tokens. Players move and edit their own. The gamemaster moves anything, chooses who controls each token and can hide tokens from players. Tokens track wounds and conditions, and snap to the grid when dropped.
  • Fog of war. The gamemaster switches fog on per scene, then paints areas revealed or hidden, or clears it in one go. Players see solid darkness, and the gamemaster sees through it.
  • Ruler. Drag with Measure to see the distance in the scene’s unit, plus the number of cells. Everyone on the scene sees your ruler while you drag it.
  • Initiative. Everyone sees the order and the round. The gamemaster adds tokens, sets scores and moves through turns, and the token whose turn it is is outlined on the map.

Fog hides areas of the map visually. To keep an enemy secret from players who might inspect the page, hide its token rather than relying on fog.

  • Everyone writes. The gamemaster writes lore and handouts, and players keep their own notes. The gamemaster can read every entry, including players’ notes.
  • Sharing. New entries are private to their author and the gamemaster. The author, or the gamemaster, can share an entry with everyone or with chosen players only.
  • Announcements. When an entry is shared with someone who could not read it before, a “Shared a journal entry” message with a link appears in their chat. Edits to entries people can already read are not announced.
  • Markdown. Entries are written in Markdown, with a preview while editing. Raw HTML, scripts, unsafe links and external images are never rendered.
  • Pictures and folders. Each entry can carry one uploaded picture and can be filed in a folder such as NPCs or Locations.

The gamemaster gets a Handbook tab that players never see. It is a book of chapters for running the campaign, such as an overview, each act, NPCs and rules reminders. Chapters are written in Markdown and can be moved earlier or later. Unlike the journal, the handbook cannot be shared, so give players a journal entry instead.

Gamemasters also get an Admin link in the header, listing everyone who has signed in with their campaigns and characters. From there a gamemaster can:

  • Ban or unban someone. A ban signs them out on every device at once and stops them signing in again. They see a message telling them their access is suspended. Their campaigns and characters are kept, so lifting the ban puts everything back. The reason is only shown to gamemasters, and gamemasters cannot be banned.
  • Add them to a campaign or remove them from one, without an invite. A campaign’s own gamemaster cannot be removed from it.
  • Manage their characters: open a sheet, give it to another member of its campaign, move it to another campaign, or delete it.

Three original demo campaigns show every feature, one for each built in system:

CampaignSystemPitch
The Ashfall ReclamationWrath and GloryRecover a reliquary from an Ork held manufactorum
The Choir of Saint MorwenDark Heresy 2eInvestigate disappearances tied to a cathedral choir
Tithe of AshImperium MaledictumAudit a mining world whose tithe is too perfect

Each has three pre-generated characters, NPC sheets, two scenes with generated map art, fog on the second scene, a full handbook, player handouts and a starting initiative order.

Five full campaigns are available for groups of three to five players. They have no pre-generated characters, every handout starts private for the gamemaster to share, and each handbook opens with a session zero and safety chapter.

CampaignSystemLength
The Siege of Kharos GateWrath and GloryShort, 4 to 6 sessions
The Silent AbbeyDark Heresy 2eShort, 4 to 6 sessions
The Glass PsalterDark Heresy 2eMid, 8 to 12 sessions
Ledger of the DrownedImperium MaledictumMid, 8 to 12 sessions
The Shattered LanternWrath and GloryLong, 16 to 20 sessions

All of the text is original, and the art was generated for the project. None of it copies a published adventure.

This section is for those interested in running their own instance of the Application. The Application is closed source, so this section describes how it is built and configured rather than linking to its code.

The Application is a pnpm monorepo, version 0.1.0, that requires Node.js 22 or newer.

PackageWhat it holds
apps/serverA Fastify API, Discord OAuth and MongoDB. It serves the built client in production
apps/webA React and Vite client
packages/sharedTypes and Zod schemas shared by both

The server also uses Socket.IO for the chat and live table, the AWS S3 client for Cloudflare R2 storage, and the yaml package to read templates. The client uses React Router, React Markdown with GitHub flavoured Markdown and the Socket.IO client.

Variables live in apps/server/prod.env for production and apps/server/dev.env for local development, as 1Password secret references resolved by op run.

VariableRequiredDefaultNotes
PUBLIC_URLYesThe URL people visit. Sets the OAuth redirect URI
MONGODB_URIYesThe MongoDB connection string
MONGODB_DATABASENovox-tabletop
DISCORD_CLIENT_IDYes
DISCORD_CLIENT_SECRETYes
GM_DISCORD_IDSYesComma separated Discord user IDs
HOSTNo127.0.0.1Keep on loopback behind a reverse proxy
PORTNo3000
TRUST_PROXYNofalseSet to true behind NGINX so rate limits see real IPs
SESSION_LIFETIME_DAYSNo30
WEB_CLIENT_PATHNoapps/web/distWhere the built client lives
R2_ACCOUNT_IDNoCloudflare account ID, 32 hex characters
R2_ACCESS_KEY_IDNoThe R2 API token’s access key, scoped to the bucket
R2_SECRET_ACCESS_KEYNo
R2_BUCKETNoA private bucket. No public access or CORS is needed

Set all four R2_ variables to switch image uploads on, or none to run without them. Setting only some stops the server starting, so a typo cannot silently disable uploads.

Adding a co-gamemaster is an edit to GM_DISCORD_IDS and a restart.

Add these redirect URIs under OAuth2, then Redirects:

  • https://vox.spellware.dev/api/auth/discord/callback
  • http://localhost:5173/api/auth/discord/callback

The Application runs under PM2, using ecosystem.config.cjs:

Terminal window
pnpm install --frozen-lockfile
pnpm build
pm2 start ecosystem.config.cjs
pm2 save

The server serves the built client, the API and the chat WebSocket from one origin, so cookies stay first party. Point NGINX at 127.0.0.1:3000, allow image uploads of up to 10 MB, and forward the Upgrade and Connection headers for /socket.io/:

client_max_body_size 11m;
location /socket.io/ {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}

op run needs to authenticate without a person present under PM2. Export an OP_SERVICE_ACCOUNT_TOKEN with read access to the vault that holds the variables in the PM2 user’s environment.

Terminal window
pnpm seed
pnpm build && pnpm seed:prod

The first command seeds the development database from dev.env, and the second seeds production from prod.env. Sign in once as the gamemaster first, so that the account exists. The seed treats the two kinds of campaign differently:

  • Demos are replaced with fresh copies on every run.
  • Library campaigns are created once and then never touched again, however often the seed runs, so a group’s play is never lost. To fix something in a running campaign, edit it in the Application.

Every other campaign is left alone.

The JSON Schema for templates is committed at packages/shared/schema/sheet-template.schema.json and served from the site. To regenerate it after changing the template format, run pnpm --filter @vox-tabletop/shared build && pnpm --filter @vox-tabletop/shared schema. A test fails if the committed schema is out of date.

The Application loads the shared SpellWare headers script from cdn.spellware.dev/headers/index.js, which brings the consent banner, Google Analytics and HubSpot tracking. The page opts out of the shared layout, header, footer, community popup and ads, and public/hubspot-settings.js switches off HubSpot’s chat bubble so that it never covers the table.

The server’s Content Security Policy, in apps/server/src/http/contentSecurityPolicy.ts, allows exactly those services, including the hash of the inline Google Analytics snippet. If the headers script ever changes that snippet, update the hash.

The amber displays use VT323 by the VT323 Project Authors, bundled under the SIL Open Font License 1.1.

The Application inherits SpellWare’s global legal documents:

  1. Privacy Policy: https://docs.spellware.dev/#/privacy
  2. Terms of Service: https://docs.spellware.dev/#/terms
  3. License: https://docs.spellware.dev/#/license

Warhammer 40,000 and the names of its game systems belong to their owners. The Application is an independent tool. It contains no Games Workshop rules text, and the character sheet templates it ships contain stat and skill names only.

DataKept
Discord identityKept so that you can sign in. Only the identify scope is requested, so your email address is never seen
Campaigns, characters, journal entries, handbook chapters and chatKept in the database until the campaign or character is deleted
Map and token imagesKept in a private storage bucket, and only members of the campaign can load them
Safety lightsHeld in memory only, never stored, and reset when the server restarts
BansKept with their reason, which only gamemasters can see, until lifted

The Application is closed source and does not accept code contributions. Feedback and bug reports are welcome in the Discord community.

For maintainers, the project uses:

  • TypeScript with ESLint and a zero warnings policy.
  • Vitest for tests, with 100% coverage enforced in every package.
  • pnpm for package management.
Terminal window
pnpm install
pnpm --filter @vox-tabletop/shared build
pnpm dev:server
pnpm dev:web

The server runs on port 3000 and needs op to be signed in. Vite runs on port 5173 and proxies /api to the server. Then open http://localhost:5173.

Before sharing changes, run:

Terminal window
pnpm lint
pnpm typecheck
pnpm test