No description
  • TypeScript 36.2%
  • Svelte 30.5%
  • HTML 29.4%
  • CSS 1.9%
  • JavaScript 1.8%
Find a file
Gensokian 7088c433c7 Forge: connections can be notes too (and [[ suggests the campaign's notes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:53:26 +01:00
.claude Launch config: a second web dev server on port 1421 2026-11-26 18:06:39 +01:00
apps Forge: connections can be notes too (and [[ suggests the campaign's notes) 2026-12-02 09:53:26 +01:00
docs Radio: scenes of playlists and playlist groups on screen; mixes in the Library; playlists hold mixes; no parts editor, no Use it 2026-11-25 14:16:48 +01:00
legacy/godot Initial commit 2026-11-15 14:22:20 +01:00
packages/core Forge: connections can be notes too (and [[ suggests the campaign's notes) 2026-12-02 09:53:26 +01:00
.dockerignore Initial commit 2026-11-15 14:22:20 +01:00
.editorconfig Initial commit 2026-11-15 14:22:20 +01:00
.env.example Logic fixes: joining with a character invite no longer brings back a deleted character; the Forge doesn't overwrite trashed characters or write into archived campaigns; restoring and purging trashed campaigns is owner-only; each of a player's characters has its own status line; comment checks read only the viewer's characters; TZ in .env.example for reminder times 2026-11-19 15:30:44 +01:00
.gitattributes Initial commit 2026-11-15 14:22:20 +01:00
.gitignore V2: character copies, Sci-Fi look, animations, quick clocks, Docker setup 2026-11-17 10:12:52 +01:00
DESIGN.md V2: character copies, Sci-Fi look, animations, quick clocks, Docker setup 2026-11-17 10:12:52 +01:00
docker-compose.yml.example Music tools: eco mode for small servers (MUSIC_ECO=1: lowest CPU and disk priority, one core, a pause between tracks) with a boost button on the radio (full speed for 30 minutes) 2026-11-19 10:02:24 +01:00
Dockerfile RedBook's build includes Radio (building RedBook alone used to wipe it: 'RedBook Radio isn't built'); pips sit in even rows (12 as 2 x 6, 15 as 3 x 5); tool cards in a row are equally tall, narrow cards fill rows before full-width ones 2026-11-23 11:14:55 +01:00
package.json V2: start the ground-up rebuild (apps/web) 2026-11-16 15:49:23 +01:00
pnpm-lock.yaml V3 stage 2: RedBook Radio is its own app (apps/radio, /radio/, own manifest and icon) using RedBook's parts through an alias; the music box is a page there, helper PCs moved into its Broadcast tab; RedBook opens Radio from Home, the campaign header (that station) and the table sticker; old /music links forward. Server music code grouped under src/radio with one registerRadio(), routes unchanged 2026-11-23 10:16:58 +01:00
pnpm-workspace.yaml Initial commit 2026-11-15 14:22:20 +01:00
README.md V2: character copies, Sci-Fi look, animations, quick clocks, Docker setup 2026-11-17 10:12:52 +01:00
tsconfig.base.json Initial commit 2026-11-15 14:22:20 +01:00

RedBook

Campaign notebook and time tracker for D&D, Daggerheart and friends. See DESIGN.md for the full design and roadmap.

Layout

Path What
packages/core Shared TypeScript logic: types, wikilinks, mention matching, redaction
apps/web Svelte 5 web app (GM and players; phone and desktop), served by the server
apps/server Hono + SQLite API, shipped as one Docker image
legacy/godot The original Godot main-menu draft

Requirements

Node 24+, pnpm. Docker for running the server image.

Develop

pnpm install
pnpm dev            # UI in the browser at http://localhost:1420
pnpm dev:server     # API at http://localhost:8080 (the UI dev server proxies /api to it)
pnpm test           # core + server tests
pnpm check          # type checks

Build

cp .env.example .env                                # fill in PUBLIC_URL, Discord, ADMIN_SECRET
cp docker-compose.yml.example docker-compose.yml    # adjust port / data folder if you like
docker compose up -d --build                        # server + web app on :8080

RedBook is web only: campaigns live on the server (the browser keeps a cache). Each campaign can be exported as Markdown files that open in Obsidian, and a Markdown folder can be imported.

Discord login (optional)

RedBook needs an account: everyone logs in with Discord, and their campaigns, characters and availability are tied to it, so they're there on any device.

  1. Open the Discord Developer Portal and create a New Application (name it e.g. "RedBook").

  2. Under OAuth2 → Redirects, add <PUBLIC_URL>/api/auth/discord/callback, for example https://redbook.example.com/api/auth/discord/callback.

  3. Copy the Client ID and reset/copy the Client Secret from the same page.

  4. Put them in .env next to docker-compose.yml:

    PUBLIC_URL=https://redbook.example.com
    DISCORD_CLIENT_ID=123456789012345678
    DISCORD_CLIENT_SECRET=your-secret
    
  5. Restart the server (docker compose up -d). The log says Discord login: on, and Log in in the main menu offers Continue with Discord.

RedBook only asks Discord for the identify scope (your name and avatar), never for your email, servers or messages. The server must be reachable at PUBLIC_URL from the player's browser.

Server admin (optional)

Set ADMIN_SECRET in .env (a long random value) and open <PUBLIC_URL>/admin. After entering the secret you see everything stored on the server (accounts, campaigns, who plays where, database size) and can help players who lost access to their Discord account:

  • Recovery link: logs one device into their account without Discord (works once, valid 24 h).
  • Move to…: they log in once with their new Discord account, then you move the old account's campaigns to it.
  • Log out everywhere (lost or shared device) and, as a last resort, Delete (campaigns and characters stay, they are just no longer tied to that account).