(mirror of github.com/nqs/fr-kids-campaign)
  • Python 97.1%
  • Shell 2.9%
Find a file
2026-10-18 04:47:33 +00:00
.claude
.github/workflows Remove GitHub wiki: drop Sync Wiki workflow, build_wiki.py, Home.md/_Sidebar.md; BookStack (wiki.nqs.io) is the only wiki 2026-10-16 15:18:49 +00:00
campaign Add Session 008 The Tide Festival; PDF: render homebrew marker as dagger, wrap HP boxes; S7 church thread most likely Naan 2026-10-15 20:50:49 +00:00
references Track images (png/jpg/jpeg) with Git LFS 2026-06-04 13:18:54 +00:00
scripts Session 008 r3: read-aloud boxes, running orders, pacing (additive); spec allows read-aloud; PDF: render nested and numbered lists 2026-10-18 04:47:33 +00:00
sessions Session 008 r3: read-aloud boxes, running orders, pacing (additive); spec allows read-aloud; PDF: render nested and numbered lists 2026-10-18 04:47:33 +00:00
.gitattributes Track images (png/jpg/jpeg) with Git LFS 2026-06-04 13:18:54 +00:00
.gitignore Remove GitHub wiki: drop Sync Wiki workflow, build_wiki.py, Home.md/_Sidebar.md; BookStack (wiki.nqs.io) is the only wiki 2026-10-16 15:18:49 +00:00
.python-version
AGENTS.md Remove GitHub wiki: drop Sync Wiki workflow, build_wiki.py, Home.md/_Sidebar.md; BookStack (wiki.nqs.io) is the only wiki 2026-10-16 15:18:49 +00:00
CLAUDE.md vault backup: 2026-06-03 13:36:08 2026-06-03 13:36:08 -04:00
dnd-adventure-generator.md Session 008 r3: read-aloud boxes, running orders, pacing (additive); spec allows read-aloud; PDF: render nested and numbered lists 2026-10-18 04:47:33 +00:00
notion-migration-todo.md Check off Notion migration follow-up to-do list 2026-06-28 18:14:26 +00:00
README.md Remove GitHub wiki: drop Sync Wiki workflow, build_wiki.py, Home.md/_Sidebar.md; BookStack (wiki.nqs.io) is the only wiki 2026-10-16 15:18:49 +00:00

Forgotten Realms — Kids Campaign

The DM's knowledge base for an ongoing D&D 5e campaign set in Shadowdale, the Dalelands. This repo holds the campaign guide, per-session deliverables, and the operating docs that drive content generation.

Campaign Guide

  • world — setting overview, cosmology, timeline, tone
  • geography — regions, cities, travel distances, climate
  • factions — organizations, their goals, their conflicts
  • roster — NPCs and relationships
  • party — current PCs, levels, classes, backstories, goals
  • session-log — what's happened so far, loose ends, foreshadowing

Sessions

Each session has a landing page — a short summary plus links to the adventure, its images, and its other assets.

Reference Material

Markdown extracts of the Forgotten Realms sourcebooks live under references/:

  • references/campaign-guide/_raw/ — DM-facing setting reference (region overviews, dungeons, NPC stat blocks)
  • references/players-guide/_raw/ — player-facing setting reference (cosmology, cities, factions, deities)

Each guide has a single full.md, per-page files under pages/page-NNNN.md, and extracted figures under images/. Grep these for a city/faction/NPC name to pull canon. (The original PDFs are no longer carried in the repo.)

DM Operating Doc


Wiki (BookStack)

The campaign wiki is the self-hosted BookStack at wiki.nqs.io, shelf Forgotten Realms Kids Campaign. Content is authored here as GitHub-flavoured Markdown, so it also renders cleanly when browsing the repo.

You only ever edit this repo. The Sync BookStack GitHub Action (.github/workflows/sync-bookstack.yml) runs scripts/sync_bookstack.py on every push to main that touches campaign content. It mirrors campaign/, sessions/, AGENTS.md, and dnd-adventure-generator.md onto the shelf (books → chapters → pages), updates only what changed, and recycles pages whose source file was deleted. Links to PDFs, images, recordings, and references/ point back to this repo. Trigger it manually (optionally as a dry run) from Actions → Sync BookStack → Run workflow.

Important

One-time setup: a BookStack API token with permission to manage shelves, books, and pages, stored as the repo secret BOOKSTACK_API_TOKEN (<token_id>:<token_secret>). See the header of scripts/sync_bookstack.py.

Layout

fr-kids-campaign/
├── README.md                     # this file — repo landing page + index
├── AGENTS.md                     # Campaign Keeper agent instructions
├── dnd-adventure-generator.md    # Generation workflow (scope → outline → images → markdown → guide → PDF)
├── campaign/                     # campaign-guide canon
│   ├── world.md                  # setting overview
│   ├── geography.md              # regions, cities, travel
│   ├── factions.md               # organizations and their conflicts
│   ├── roster.md                 # NPCs and relationships
│   ├── party.md                  # current PCs
│   └── session-log.md            # campaign-wide session index + loose ends
├── sessions/                     # per-session deliverables
│   └── session <N>/              # adventure / combat-tracker / handouts / quick-ref / images / pdf
└── references/                   # markdown extracts of the FR sourcebooks (DM and player guides)

Linking between pages

Pages link to one another with standard relative Markdown links — e.g. [roster](campaign/roster.md) — rather than Obsidian [[wikilinks]]. Relative links resolve correctly in the repo file browser and in pull-request diffs, and scripts/sync_bookstack.py rewrites them to BookStack page URLs. Spaces in session-folder paths are URL-encoded as %20.

Callouts

Obsidian/Admonition callouts have been converted to GitHub alerts with a bold label that preserves the original callout type:

Original Obsidian type GitHub alert Bold label
[!dm] [!IMPORTANT] DM:
[!hook] [!TIP] Hook:
[!flag] [!WARNING] Flag:
[!cite] [!NOTE] Source:
[!quote] / [!read-aloud] [!NOTE] Read-aloud:
[!lore] [!NOTE] Lore:
[!note] [!NOTE] Note:

Example:

> [!IMPORTANT]
> **DM:** Lady Ulphor will not say this aloud, but she suspects the Underdark is open.

GitHub renders the five alert keywords (NOTE, TIP, IMPORTANT, WARNING, CAUTION) with a coloured icon and rule.

Stat blocks

Stat blocks are authored as plain Markdown tables and bolded prose inside each session's combat-tracker file — no Fantasy Statblocks / Initiative Tracker dependency. The ReportLab PDF pipeline (scripts/build_pdf.py) reads this Markdown directly.

**Drow Scout** · Medium humanoid (elf) · CR 1/2
**AC** 14 · **HP** 13 (3d8) · **Speed** 30 ft.

| STR | DEX | CON | INT | WIS | CHA |
|:---:|:---:|:---:|:---:|:---:|:---:|
| 10 (+0) | 14 (+2) | 10 (+0) | 11 (+0) | 13 (+1) | 11 (+0) |

**Saves** Dex +4 · **Senses** darkvision 120 ft.
**Traits** *Fey Ancestry* — advantage on saves vs. charm; immune to magical sleep.
**Actions** *Shortsword* — Melee, +4 to hit, reach 5 ft., 1d6+2 piercing.

See any session's combat tracker (sessions/session <N>/<slug>-2-combat-tracker.md) for live examples.

Printing & Export

PDFs are built from the Markdown with the repo's ReportLab script:

.venv/bin/python scripts/build_pdf.py [<session-number-or-folder>]

With no argument it builds the latest session; pass 3 or "sessions/session 3" to target a specific one. Final output lands at sessions/session <N>/<adventure-slug>.pdf. See dnd-adventure-generator.md for the full PDF specification.