chronicle

module
v0.0.0-...-95891f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: AGPL-3.0

README

Chronicle

A self-hosted home for your tabletop RPG world.
Lore, heroes, calendars, maps, shops and game nights for the GM and the players, on your own server.

Go 1.27

A campaign's calendar at dusk, with the world's two moons in the sky over the month

Chronicle is built for one table and one world at a time. Nothing is public unless you make it public, there is no paywall, and the data lives in your own MariaDB.

A character page with its relations, entry and attributes
Pages for everything in your world
Characters, places, factions, items and quests, each with a rich-text entry, its own fields and links to the pages it touches. GM secrets stay hidden inside the same page, and an open page updates when someone else saves it.
A hex map of an island, painted in the Realistic style
Maps you paint and annotate
Upload a picture or paint terrain hex by hex. Pins open pages or other maps, fog hides what the party hasn't explored, and rooms, arrows and speech bubbles turn any map into a diagram.
The hero builder in the Paper look, choosing a Dwarf ancestry with a rules word open on hover
Heroes built from cards
Players make their hero one step at a time, picking each part from cards with its rules beside them. Rules words explain themselves on hover. The Director can add the campaign's own entries, limit or require choices for each player, and pick a Plain, Paper or Ornate look.
The Draw Steel handbook open at its contents and How to Play
A rulebook your players can read
A game system's rules open as a book you turn the pages of, with a player screen for lookups mid-fight. Rules words explain themselves on hover. Add house-rule chapters, rewrite a standard entry or leave one out.
A player's campaign home with the next game night waiting on their answer and the party
A campaign home for each role
The owner arranges the home, sidebar and categories, with its own version of the home for players and for guests. Members join as Owner, Scribe or Player, and "View as player" shows the campaign exactly as they see it.
The AI panel listing three changes an AI asked for, each with Yes and No
Your AI asks, you decide
Connect an AI app such as Claude to the campaign. It looks things up and asks for changes: pages, events, maps, tables, house rules. Nothing changes until you say yes or no to each one. Without a connector, copy the campaign out as markdown and paste the answer back.

A calendar with a sky

Your own months, weekdays, moons, seasons and eras, from a ready-made calendar, a generated one or the real-world calendar. Events repeat by rule, weather follows the climate, pages can keep a version for each era, and the sky over the month shows the sun and moons at the hour it is. Drag the time of day and the sky follows.

Dragging the time of day from midnight to midnight, with the sun and moons crossing the sky

Make it look like your world

The Customizer keeps the campaign's look, categories and home pages in one place. Start from one of eight whole looks, then change colours, type, buttons, the header and the sidebar. Everything waits in a draft until you save it, so players never see a half-finished change.

Clicking through the looks in the Customizer, with the example site changing to match

And the rest

  • Game nights: plan sessions on the calendar, run a date poll, see who's free, and collect RSVPs. A Session event on the calendar becomes a game night in one click, and the home's Coming up card shows what's next.
  • DM Screen: the party, the world's date and weather, conditions, NPC reveals, waiting shop and stash requests, and an Adventures tab for the DM team's own pages.
  • Armory, shops and crafting: item galleries, a walk-in shop room players buy from, shared party stashes with GM-approved moves, and crafting recipes made at benches.
  • Dice, trackers and tables: 3D dice whose set, colour and crits each player picks, counters and clocks kept on pages, and rolling tables.
  • Notes: notes on any page, private or shared with the GM or chosen players, with version history. Every page keeps its history, and deleted pages wait in Trash.
  • Timeline: a zoomable timeline of events, grouped into lanes.
  • Bring your world in: import an Obsidian vault or a Notion or Trilium export.
  • Foundry VTT: the Chronicle Sync module keeps journals, characters, maps, shops and the calendar in step both ways.
  • Game systems: Draw Steel and D&D 5e install from Site admin > Game systems & modules.
  • Sign-in: two-factor codes, one outside OpenID Connect provider, and guest codes that let someone join one campaign with just a name.
  • REST API: per-campaign keys for pages, maps, calendar, media and sync. See docs/api/openapi.yaml.

Quick start

With Docker:

git clone https://github.com/keyxmakerx/chronicle.git
cd chronicle

export SECRET_KEY=$(openssl rand -base64 32)
export DB_PASSWORD=your-secure-password
export MYSQL_ROOT_PASSWORD=your-root-password

docker compose up -d

Chronicle is then at http://localhost:8080. The first person to register becomes the site admin. Migrations run on startup.

For production, backups, upgrades and rollback, read docs/deployment.md.

Run from source

Needs Go 1.27+, MariaDB 10.11+ and Redis 7+ (Node.js only to rebuild the editor bundle).

git clone https://github.com/keyxmakerx/chronicle.git
cd chronicle
make generate            # templ + tailwind; generated files are not committed
make test-db-up          # MariaDB on port 13306 without Docker (user root, no password)
mysql -h 127.0.0.1 -P 13306 -u root -e 'CREATE DATABASE chronicle'
redis-server --daemonize yes
export DB_HOST=127.0.0.1:13306 DB_USER=root DB_PASSWORD= DB_NAME=chronicle
export SECRET_KEY="$(openssl rand -base64 32)"
make run                 # http://localhost:8080; migrations run on startup

Chronicle reads its settings from the environment only; .env.example lists them. To use your own MariaDB, point DB_* at it and create the database first. The first account to register becomes the site admin.

Development

make help        # every command
make run         # run the server from source
make test        # all tests
make lint        # golangci-lint
make generate    # regenerate Templ and Tailwind

Chronicle is a Go server (Echo, Templ, HTMX) with MariaDB and Redis. Features live in plugins under internal/plugins/, game systems install as packages, and reusable UI blocks are widgets under internal/widgets/. .ai/architecture.md has the full picture.

Layer Technology
Backend Go 1.27, Echo v5
Templates Templ
Frontend HTMX, Alpine.js, Tailwind CSS
Editor TipTap
Maps and timeline Leaflet, D3
Data MariaDB 10.11, Redis 7

To build your own game system, widget, content pack or API app, start at docs/build/.

Contributing

Chronicle is pre-alpha. Bug reports and ideas are welcome as issues. Setup, tests and pull request expectations are in CONTRIBUTING.md.

We studied World Anvil, Kanka, LegendKeeper and Obsidian while building it; Chronicle's design and code are its own.

License

GNU Affero General Public License v3.0.

Screenshots are from a demo campaign running on Chronicle's own code.

Directories

Path Synopsis
cmd
foundry-error-catalog command
foundry-error-catalog regenerates the canonical JSON artifact describing every error code the foundry_vtt plugin can emit, consumed by Foundry-side docs that cross-reference the Chronicle error contract.
foundry-error-catalog regenerates the canonical JSON artifact describing every error code the foundry_vtt plugin can emit, consumed by Foundry-side docs that cross-reference the Chronicle error contract.
server command
Package main is the entry point for the Chronicle server.
Package main is the entry point for the Chronicle server.
internal
aiplug
Package aiplug is the contract a feature implements to plug into the AI engine (ADR-071).
Package aiplug is the contract a feature implements to plug into the AI engine (ADR-071).
app
Package app is the application bootstrap and dependency injection root.
Package app is the application bootstrap and dependency injection root.
apperror
Package apperror provides domain-specific error types for Chronicle.
Package apperror provides domain-specific error types for Chronicle.
changesource
Package changesource records, on the request context, which door an entity write came through (the web UI, the Foundry module, a stash move, a shop, a crafting project, an extension).
Package changesource records, on the request context, which door an entity write came through (the web UI, the Foundry module, a stash move, a shop, a crafting project, an extension).
colour
Package colour is a Go port of the colour maths in the Customize page's browser editor.
Package colour is a Go port of the colour maths in the Customize page's browser editor.
concurrency
Package concurrency provides optimistic-concurrency primitives shared across plugins.
Package concurrency provides optimistic-concurrency primitives shared across plugins.
config
Package config handles loading application configuration from environment variables.
Package config handles loading application configuration from environment variables.
database
Package database — healthcheck.go Comprehensive startup health checks that run after migrations to catch configuration, schema, and security issues before the server accepts traffic.
Package database — healthcheck.go Comprehensive startup health checks that run after migrations to catch configuration, schema, and security issues before the server accepts traffic.
database/dbtest
Package dbtest gives database-backed tests one shared way to get a throwaway, fully migrated MariaDB schema.
Package dbtest gives database-backed tests one shared way to get a throwaway, fully migrated MariaDB schema.
editordoc
Package editordoc renders the page editor's ProseMirror JSON as HTML on the server, for bodies that arrive as editor JSON without the HTML copy the browser editor would have rendered (REST API clients).
Package editordoc renders the page editor's ProseMirror JSON as HTML on the server, for bodies that arrive as editor JSON without the HTML copy the browser editor would have rendered (REST API clients).
email
Package email builds the HTML and plain-text bodies of Chronicle's campaign emails (game night invites, reminders, date polls, availability asks, campaign invites) from one Message, so every email shares a layout, escapes what people typed, and carries a plain-text twin.
Package email builds the HTML and plain-text bodies of Chronicle's campaign emails (game night invites, reminders, date polls, availability asks, campaign invites) from one Message, so every email shares a layout, escapes what people typed, and carries a plain-text twin.
extensions
Package extensions — adapters.go bridges external service interfaces to the applier's narrower interfaces.
Package extensions — adapters.go bridges external service interfaces to the applier's narrower interfaces.
hexsketch
Package hexsketch reads the line-by-line text a hex map is painted in, for AI Import's hex-map record.
Package hexsketch reads the line-by-line text a hex map is painted in, for AI Import's hex-map record.
hostinfo
Package hostinfo reports the identity of the RUNNING Chronicle process: which binary it is, which source revision produced it (when that was recorded at all), when the process started, and how long it has been up.
Package hostinfo reports the identity of the RUNNING Chronicle process: which binary it is, which source revision produced it (when that was recorded at all), when the process started, and how long it has been up.
madeitems
Package madeitems lists the Dark painted made-item pictures: each item's key and the colours it was designed in.
Package madeitems lists the Dark painted made-item pictures: each item's key and the colours it was designed in.
maintenance
Package maintenance holds the site-wide "back in a few minutes" mode used while a restore replaces the database.
Package maintenance holds the site-wide "back in a few minutes" mode used while a restore replaces the database.
mapsketch
Package mapsketch reads the line-by-line text a map is sketched in, for two consumers that must agree on the words: AI Import's map records (a new map on the maps plugin) and the page map block (a document stored on a page).
Package mapsketch reads the line-by-line text a map is sketched in, for two consumers that must agree on the words: AI Import's map records (a new map on the maps plugin) and the page map block (a document stored on a page).
middleware
Package middleware provides HTTP middleware for the Chronicle Echo server.
Package middleware provides HTTP middleware for the Chronicle Echo server.
notifyprefs
Package notifyprefs holds a person's notification choices: which kinds of message reach them on the bell and by email.
Package notifyprefs holds a person's notification choices: which kinds of message reach them on the bell and by email.
observability
Package observability holds Chronicle's in-process self-observation: a small, bounded, in-memory record of recent server errors, readable through the admin diagnostics catalog without shelling into the container.
Package observability holds Chronicle's in-process self-observation: a small, bounded, in-memory record of recent server errors, readable through the admin diagnostics catalog without shelling into the container.
pagelink
Package pagelink builds the in-Chronicle page link the editor writes for an @mention, so importers that produce text rather than editor input make the same anchor: readers get the hover card and click-to-preview from the attributes alone.
Package pagelink builds the in-Chronicle page link the editor writes for an @mention, so importers that produce text rather than editor input make the same anchor: readers get the hover card and click-to-preview from the attributes alone.
patch
Package patch provides three-state JSON fields for partial-update requests: an ABSENT key preserves the stored value, an EXPLICIT null clears it, and a present value replaces it.
Package patch provides three-state JSON fields for partial-update requests: an ABSENT key preserves the stored value, an EXPLICIT null clears it, and a present value replaces it.
permissions
Package permissions provides shared role constants and permission checks for code that cannot import campaigns (circular dependency).
Package permissions provides shared role constants and permission checks for code that cannot import campaigns (circular dependency).
plugins/addons
Package addons manages the extension framework — installable addons (plugins, systems, widgets, integrations) with per-campaign enable/disable controls.
Package addons manages the extension framework — installable addons (plugins, systems, widgets, integrations) with per-campaign enable/disable controls.
plugins/admin
Package admin — database_health.go defines the admin-local contracts the Database page's Health and Backups tabs render.
Package admin — database_health.go defines the admin-local contracts the Database page's Health and Backups tabs render.
plugins/ai_workspace
import_memory_repository.go holds the SQL for what AI Import keeps per campaign: the parts of a split answer, waiting in the tray or applied (ai_import_parts), and a fingerprint of each block applied (ai_import_blocks), both plugin migrations.
import_memory_repository.go holds the SQL for what AI Import keeps per campaign: the parts of a split answer, waiting in the tray or applied (ai_import_parts), and a fingerprint of each block applied (ai_import_blocks), both plugin migrations.
plugins/ai_workspace/aiexport
Package aiexport renders a campaign's owner-scoped content into a single markdown document for pasting into AI tools.
Package aiexport renders a campaign's owner-scoped content into a single markdown document for pasting into AI tools.
plugins/ai_workspace/connector
Package connector lets an AI app (Claude, ChatGPT, Open WebUI, LM Studio) connect straight to one campaign over the Model Context Protocol, look things up and ask for changes, with nothing to copy and paste.
Package connector lets an AI app (Claude, ChatGPT, Open WebUI, LM Studio) connect straight to one campaign over the Model Context Protocol, look things up and ask for changes, with nothing to copy and paste.
plugins/ai_workspace/importer
Package importer parses AI-generated markdown into per-page ParsedPage structs, classifies each (full / defaults / conflict / new category / parse error), and prepares the review-screen data the operator inspects before committing.
Package importer parses AI-generated markdown into per-page ParsedPage structs, classifies each (full / defaults / conflict / new category / parse error), and prepares the review-screen data the operator inspects before committing.
plugins/ai_workspace/importer/htmlconv
Package htmlconv converts sanitized HTML to a Chronicle-shaped ProseMirror JSON document.
Package htmlconv converts sanitized HTML to a Chronicle-shaped ProseMirror JSON document.
plugins/ai_workspace/prompt
Package prompt builds the "Copy AI Prompt" output for the AI Workspace settings tab.
Package prompt builds the "Copy AI Prompt" output for the AI Workspace settings tab.
plugins/ai_workspace/records
Package records lets AI Import reach the campaign features that are not pages: calendar events, day weather, rolling tables, shop stock, carried items, map pins, house rules, the operator's own notes, and Chronicle's generators.
Package records lets AI Import reach the campaign features that are not pages: calendar events, day weather, rolling tables, shop stock, carried items, map pins, house rules, the operator's own notes, and Chronicle's generators.
plugins/armory
copies.go is what single copies of an item remember: marks ("moonlit"), a quality (fine or poor), who made or harvested them and when, and when they go off.
copies.go is what single copies of an item remember: marks ("moonlit"), a quality (fine or poor), who made or harvested them and when, and when they go off.
plugins/audit
Package audit provides an audit log plugin that records user actions within campaigns.
Package audit provides an audit log plugin that records user actions within campaigns.
plugins/auth
loghash provides email hashing for debug-log correlation.
loghash provides email hashing for debug-log correlation.
plugins/backup
Package backup provides the admin-facing UI for triggering whole-database backups and inspecting prior runs.
Package backup provides the admin-facing UI for triggering whole-database backups and inspecting prior runs.
plugins/bestiary
Package bestiary provides the Community Bestiary plugin for sharing homebrew creatures across a Chronicle instance.
Package bestiary provides the Community Bestiary plugin for sharing homebrew creatures across a Chronicle instance.
plugins/calendar
Package calendar - backup.go reads and restores the calendar data a campaign backup carries beyond the calendar's own row and sub-resources: each day's weather, a hand-set moon's mode and marks, and event rolls with their stored nights.
Package calendar - backup.go reads and restores the calendar data a campaign backup carries beyond the calendar's own row and sub-resources: each day's weather, a hand-set moon's mode and marks, and event rolls with their stored nights.
plugins/calendar/calendarai
Package calendarai is the calendar's part of the AI engine (aiplug, ADR-071): the blocks an AI can ask to write onto the calendar (the calendar itself, events, a day's weather, a moon set by hand, a rolled night and Chronicle's generators) and the calendar lookups (the calendar, kinds of weather, events and weather by day).
Package calendarai is the calendar's part of the AI engine (aiplug, ADR-071): the blocks an AI can ask to write onto the calendar (the calendar itself, events, a day's weather, a moon set by hand, a rolled night and Chronicle's generators) and the calendar lookups (the calendar, kinds of weather, events and weather by day).
plugins/campaigns
Package campaigns — export.go defines the JSON structure for campaign exports.
Package campaigns — export.go defines the JSON structure for campaign exports.
plugins/crafting
Package crafting keeps a campaign's crafting: the recipes its Directors write, the crafting tags on Armory items, the benches recipes are made at, and the campaign's crafting settings.
Package crafting keeps a campaign's crafting: the recipes its Directors write, the crafting tags on Armory items, the benches recipes are made at, and the campaign's crafting settings.
plugins/cutscenes
Package cutscenes keeps a campaign's cut scenes: short full-screen moments the Director pushes onto chosen players' screens, in Chronicle and in Foundry.
Package cutscenes keeps a campaign's cut scenes: short full-screen moments the Director pushes onto chosen players' screens, in Chronicle and in Foundry.
plugins/decks
Package decks keeps a campaign's card decks: hero decks, party decks and event decks.
Package decks keeps a campaign's card decks: hero decks, party decks and event decks.
plugins/designlab
Package designlab provides the admin-only "Design Lab" page.
Package designlab provides the admin-only "Design Lab" page.
plugins/designs
Package designs is the campaign library of saved designs and the ways an Owner shares them: a share code, a link, or named owners on this instance.
Package designs is the campaign library of saved designs and the ways an Owner shares them: a share code, a link, or named owners on this instance.
plugins/dmscreen
Package dmscreen serves the DM Screen: a control panel for the people running a campaign (owners and scribes), opened from the campaign top bar.
Package dmscreen serves the DM Screen: a control panel for the people running a campaign (owners and scribes), opened from the campaign top bar.
plugins/encounters
Package encounters stores the fights a DM plans on a page (an Adventures trial, a location, any page) so Foundry can load one on game night.
Package encounters stores the fights a DM plans on a page (an Adventures trial, a location, any page) so Foundry can load one on game night.
plugins/entities
block_registry.go provides a self-registering system for entity page block types.
block_registry.go provides a self-registering system for entity page block types.
plugins/entities/cardborders
Package cardborders is Chronicle's library of card borders for the hero creator's stage look.
Package cardborders is Chronicle's library of card borders for the hero creator's stage look.
plugins/entities/herochangeschema
Package herochangeschema holds the migration for when players may change their hero's picks.
Package herochangeschema holds the migration for when players may change their hero's picks.
plugins/entities/layoutschema
Package layoutschema holds the migrations for a category's named page layouts.
Package layoutschema holds the migrations for a category's named page layouts.
plugins/entities/pinschema
Package pinschema holds the migration for the pages the Director pins for everyone on the campaign home.
Package pinschema holds the migration for the pages the Director pins for everyone on the campaign home.
plugins/entities/practiceschema
Package practiceschema holds the migration for a player's practice heroes.
Package practiceschema holds the migration for a player's practice heroes.
plugins/fieldrules
Package fieldrules holds two homebrew tools a campaign builds for itself in the system book's Homebrew tools: worked-out rules (a field's value follows another field through a table, such as a guild rank from echelon) and local words (what a place or an era calls a coin, a rank or any other word).
Package fieldrules holds two homebrew tools a campaign builds for itself in the system book's Homebrew tools: worked-out rules (a field's value follows another field through a table, such as a guild rank from echelon) and local words (what a place or an era calls a coin, a rank or any other word).
plugins/foundry_vtt
campaign_binding.go — the Foundry module's side of the per-campaign update modes.
campaign_binding.go — the Foundry module's side of the per-campaign update modes.
plugins/homebrew
Package homebrew keeps a campaign's Homebrew Workshop recipes: parts (the everyday widgets and the kinds other plugins register) wired together by When/Then rules, saved as one document per recipe.
Package homebrew keeps a campaign's Homebrew Workshop recipes: parts (the everyday widgets and the kinds other plugins register) wired together by When/Then rules, saved as one document per recipe.
plugins/maps
Package maps provides the interactive maps addon for campaigns.
Package maps provides the interactive maps addon for campaigns.
plugins/media
Package media manages file uploads, storage, and serving for Chronicle.
Package media manages file uploads, storage, and serving for Chronicle.
plugins/npcs
handler.go provides HTTP endpoints for the NPC gallery.
handler.go provides HTTP endpoints for the NPC gallery.
plugins/packages
campaign_update_repository.go — SQL for campaign_package_updates.
campaign_update_repository.go — SQL for campaign_package_updates.
plugins/pageblocks
Package pageblocks stores the content of the layout blocks a DM makes in place on a page: the Read-aloud box, the Table, the Steps list and the Map.
Package pageblocks stores the content of the layout blocks a DM makes in place on a page: the Read-aloud box, the Table, the Steps list and the Map.
plugins/pagetests
Package pagetests is the Tests page block: a long effort the party makes (a montage, a chase, a negotiation) and the result it ended in.
Package pagetests is the Tests page block: a long effort the party makes (a montage, a chase, a negotiation) and the result it ended in.
plugins/playerchanges
Package playerchanges is "What players changed": a record of every change a player makes to a page (a sheet field, a page's title or text, a removed page), by hand or through their AI, and the owner's page for searching it and undoing a change.
Package playerchanges is "What players changed": a record of every change a player makes to a page (a sheet field, a page's title or text, a removed page), by hand or through their AI, and the owner's page for searching it and undoing a change.
plugins/quests
Hand-written SQL for the notice-board tables.
Hand-written SQL for the notice-board tables.
plugins/restore
Package restore provides the admin-facing UI for restoring a previous backup.
Package restore provides the admin-facing UI for restoring a previous backup.
plugins/rolls
Package rolls is the campaign's roll log: rolls made at Chronicle's Table tab, rolls other apps report (Foundry), and rolls other plugins make on the server (crafting).
Package rolls is the campaign's roll log: rolls made at Chronicle's Table tab, rolls other apps report (Foundry), and rolls other plugins make on the server (crafting).
plugins/rolltables
Package rolltables stores each campaign's own rolling tables: named lists of weighted entries a DM rolls on at the table.
Package rolltables stores each campaign's own rolling tables: named lists of weighted entries a DM rolls on at the table.
plugins/rumours
Package rumours is the Rumours page block: what the party has heard about a page, who said it, how sure they were, what the Director knows is true and what the party has decided to believe.
Package rumours is the Rumours page block: what the party has heard about a page, who said it, how sure they were, what the Director knows is true and what the party has decided to believe.
plugins/sessions
Package sessions provides the game session tracking addon for campaigns.
Package sessions provides the game session tracking addon for campaigns.
plugins/settings
Package settings manages site-wide configuration and storage limit overrides.
Package settings manages site-wide configuration and storage limit overrides.
plugins/smtp
Package smtp provides outbound email functionality for Chronicle.
Package smtp provides outbound email functionality for Chronicle.
plugins/syncapi
egress_sanitize.go — defense-in-depth sanitization on /api/v1/* response payloads.
egress_sanitize.go — defense-in-depth sanitization on /api/v1/* response payloads.
plugins/systemstate
Package systemstate keeps per-page game-system state: small JSON documents a system package's widget reads and writes for one entity (for example a negotiation tracker on an NPC page).
Package systemstate keeps per-page game-system state: small JSON documents a system package's widget reads and writes for one entity (for example a negotiation tracker on an NPC page).
plugins/timeline
Package timeline provides the timeline addon for campaigns.
Package timeline provides the timeline addon for campaigns.
plugins/trackers
Package trackers keeps a campaign's trackers and clocks: kinds its Directors define, placed on pages, each with a dated log whose sum is the tracker's value.
Package trackers keeps a campaign's trackers and clocks: kinds its Directors define, placed on pages, each with a dated log whose sum is the tracker's value.
plugins/transformations
Package transformations keeps layers on a hero: a vampire's bite, rising as a revenant, a curse, a polymorph.
Package transformations keeps layers on a hero: a vampire's bite, rising as a revenant, a curse, a polymorph.
plugins/vault_import
Package vault_import turns a .zip of an Obsidian vault (or any folder of Markdown notes, including Notion and Trilium Markdown exports) into Chronicle pages.
Package vault_import turns a .zip of an Obsidian vault (or any folder of Markdown notes, including Notion and Trilium Markdown exports) into Chronicle pages.
plugins/widgetbindings
DOM-id helpers for the re-render seam: a host's widget block lives inside a stable wrapper element so a bind/unbind can target it for an in-place HTMX swap; the picker fragment loads into a separate slot inside that wrapper.
DOM-id helpers for the re-render seam: a host's widget block lives inside a stable wrapper element so a bind/unbind can target it for an in-place HTMX swap; the picker fragment loads into a separate slot inside that wrapper.
sanitize
icon.go — allowlisting for stored Font Awesome icon names.
icon.go — allowlisting for stored Font Awesome icon names.
semver
Package semver orders package version strings.
Package semver orders package version strings.
sitelook
Package sitelook holds the site-wide look of the pages outside a campaign: the site name, logo, which of the eight looks to borrow colours from, and the sign-in page's background.
Package sitelook holds the site-wide look of the pages outside a campaign: the site name, logo, which of the eight looks to borrow colours from, and the sign-in page's background.
systems
campaign_system_handler.go adds HTTP endpoints for campaign owners to upload, view, and remove custom game systems.
campaign_system_handler.go adds HTTP endpoints for campaign owners to upload, view, and remove custom game systems.
templates/components
Package components provides reusable Templ UI components shared across plugins.
Package components provides reusable Templ UI components shared across plugins.
templates/layouts
assets.go provides cache-busted static asset URLs.
assets.go provides cache-busted static asset URLs.
tilegrid
Package tilegrid is the one definition of a tile section, shared by every layout that draws one: entity page layouts, the campaign dashboard and category dashboards.
Package tilegrid is the one definition of a tile section, shared by every layout that draws one: entity page layouts, the campaign dashboard and category dashboards.
timeutil
Package timeutil provides DST-correct conversions between zone-local wall-clock times and absolute instants, plus helpers for projecting a recurring weekly pattern onto a concrete calendar week in a viewer's zone.
Package timeutil provides DST-correct conversions between zone-local wall-clock times and absolute instants, plus helpers for projecting a recurring weekly pattern onto a concrete calendar week in a viewer's zone.
updatehealth
Package updatehealth counts, on this server only, how often each feature an update changed is used and whether it fails, so a site admin hears about the changed features that break or that nobody has tried, and not about the ones that quietly work.
Package updatehealth counts, on this server only, how often each feature an update changed is used and whether it fails, so a site admin hears about the changed features that break or that nobody has tried, and not about the ones that quietly work.
websocket
Package websocket provides a campaign-scoped WebSocket hub for real-time bidirectional communication between Chronicle and external clients (Foundry VTT).
Package websocket provides a campaign-scoped WebSocket hub for real-time bidirectional communication between Chronicle and external clients (Foundry VTT).
widgets/entity_notes
Package entity_notes implements the player-facing entity-page notes widget.
Package entity_notes implements the player-facing entity-page notes widget.
widgets/notes
Package notes implements Chronicle's notes: the full-page Journal and the floating per-page Jot notes.
Package notes implements Chronicle's notes: the full-page Journal and the floating per-page Jot notes.
widgets/posts
Package posts implements the entity posts widget for Chronicle.
Package posts implements the entity posts widget for Chronicle.
widgets/relations
Package relations implements the entity relations widget for Chronicle.
Package relations implements the entity relations widget for Chronicle.
widgets/tags
Package tags implements the tags widget for Chronicle.
Package tags implements the tags widget for Chronicle.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL