r/coolgithubprojects • • 16m ago

I made a free, offline, open source campaign manager for D&D 5e called Sanctum.

https://www.youtube.com/watch?v=Tc0AgqUMnfo&feature=youtu.be

It is a desktop app where everything for a tabletop game (characters, NPCs, combat, an interactive world map, quests, lore) lives in a single local SQLite file on your own machine. No account, no cloud, no server.

The stack, since this is the crowd for it: TypeScript, Next.js and React on the frontend, Electron for the desktop shell (it bundles and spawns the Next.js server as a child process), better-sqlite3 and Drizzle ORM for local storage, Konva for the battle map, Leaflet for the interactive world atlas, and electron-builder for packaging.

A few bits I had fun building:

  • A local-first model where one file holds an entire campaign, fully exportable and portable.
  • A read-only player view the DM shares to a TV or to players' phones over local Wi-Fi, gated behind a private share token so other devices on the network cannot reach the raw data.
  • An interactive map where markers link to real records, so clicking an NPC pin takes you straight to that NPC.
  • A GitHub Actions pipeline that builds the macOS and Linux versions for me, so I can ship for platforms I do not even own.

It is AGPL-3.0, runs on Windows, Linux and macOS, and it is free (pay what you want).

Source: https://github.com/Athanasioust/Sanctum
Download: https://athanasioust.itch.io/sanctum
Short video tour: [paste your YouTube link]

Screenshots below. Happy to answer anything about the build, and feedback is very welcome.

1 Upvotes

0 comments sorted by