One & Done Self-Hosted

Self-host One & Done

Run your own copy of One & Done on your own computer or server. It's the same game as the cloud version, free for personal and noncommercial use, and you control the art, the content and the data.

  • What self-hosting means

    One & Done runs as a single Node.js app with its own SQLite database, so there are no other services to set up. You start it on a machine you control, and your players connect to it from their browsers, just as they would on the cloud version.

  • Who it's for

    People who are comfortable with a terminal and want control: running games on a home server, using their own maps and tokens, writing their own heroes and monsters, or keeping everything on their own hardware. If you'd rather not run a server, One & Done Cloud is the easier choice.

Setup

Run it locally

You need Node.js 22.13 or later, because the server uses Node's built-in SQLite. These steps are from the project's README, which is the up-to-date reference.

git clone https://github.com/elliscode/one-and-done.git
cd one-and-done
npm install
cp .env.example .env    # set DM_PASSWORD; set SECURE_COOKIES=false for plain http://localhost
npm start               # http://127.0.0.1:3000 (the DM app is at /dm)

Open http://127.0.0.1:3000/dm, sign in with your DM_PASSWORD, and start a game. A self-hosted server has a single DM login: the password in .env.

Put it online for your players

To let players join from their own devices over the internet, run it behind HTTPS. The repository includes a Caddy config that handles the certificate and the live connection.

  1. Run npm install --omit=dev and create .env from .env.example, with a strong DM_PASSWORD, a random SESSION_SECRET, SECURE_COOKIES=true and your own PUBLIC_URL.
  2. Start the server with npm start. Game state is saved continuously, so stopping and restarting is safe, even mid-game.
  3. Add the site block from deploy/Caddyfile to your Caddy config, with your own domain.

Everything lives in one SQLite file, data/one-and-done.sqlite. The README explains how to back it up while the server is running.

Customizing

Your own art and your own content

  • Assets page

    Upload maps, tokens, portraits and handout images by drag and drop. PNG, JPG, GIF, WebP and SVG are supported, up to 15 MB each. Each file shows how many scenes or definitions use it.

  • Data page

    Create and edit heroes, monsters, NPCs and items as JSON. Every save is checked against the game's rules, and nothing is written if anything is invalid.

  • Plain files you can commit

    Art and definitions are ordinary files in the repository's static/ and data/ folders, so your changes show up in git. Built-in scenes, handouts and adventures are JSON files too.

  • Changes go live immediately

    There's no restart. Open DM and player pages pick up new art and definitions on their own.

License

Free for noncommercial use

One & Done's source is available under the PolyForm Noncommercial License 1.0.0. You can run it, change it and use it for personal and other noncommercial purposes. Commercial use isn't covered by that license. Read the license itself for the exact terms.

The project doesn't accept outside contributions.

The trade-off

Cloud puts convenience first. Self-hosting puts control first.

  • One & Done Cloud

    Hosted and kept up to date for you, with nothing to install. Sign in with an email code. Free to play; Pro ($9 a year or $1 a month) adds uploading your own maps, tokens and portraits.

  • One & Done Self-Hosted

    You install, update and back it up yourself. In return, it runs on your hardware with your data, and you can change any art or definition. Free for personal and noncommercial use.

Compare all three options in the pricing table.

Get started

Clone it, or just play