Directories
¶
| Path | Synopsis |
|---|---|
|
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). |
|
Package app is the application bootstrap and dependency injection root.
|
Package app is the application bootstrap and dependency injection root. |
|
Package apperror provides domain-specific error types for Chronicle.
|
Package apperror provides domain-specific error types for Chronicle. |
|
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). |
|
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. |
|
Package concurrency provides optimistic-concurrency primitives shared across plugins.
|
Package concurrency provides optimistic-concurrency primitives shared across plugins. |
|
Package config handles loading application configuration from environment variables.
|
Package config handles loading application configuration from environment variables. |
|
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. |
|
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. |
|
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). |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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). |
|
Package middleware provides HTTP middleware for the Chronicle Echo server.
|
Package middleware provides HTTP middleware for the Chronicle Echo server. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
auth
loghash provides email hashing for debug-log correlation.
|
loghash provides email hashing for debug-log correlation. |
|
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. |
|
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. |
|
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. |
|
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). |
|
campaigns
Package campaigns — export.go defines the JSON structure for campaign exports.
|
Package campaigns — export.go defines the JSON structure for campaign exports. |
|
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. |
|
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. |
|
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. |
|
designlab
Package designlab provides the admin-only "Design Lab" page.
|
Package designlab provides the admin-only "Design Lab" page. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
entities/practiceschema
Package practiceschema holds the migration for a player's practice heroes.
|
Package practiceschema holds the migration for a player's practice heroes. |
|
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). |
|
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. |
|
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. |
|
maps
Package maps provides the interactive maps addon for campaigns.
|
Package maps provides the interactive maps addon for campaigns. |
|
media
Package media manages file uploads, storage, and serving for Chronicle.
|
Package media manages file uploads, storage, and serving for Chronicle. |
|
npcs
handler.go provides HTTP endpoints for the NPC gallery.
|
handler.go provides HTTP endpoints for the NPC gallery. |
|
packages
campaign_update_repository.go — SQL for campaign_package_updates.
|
campaign_update_repository.go — SQL for campaign_package_updates. |
|
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. |
|
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. |
|
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. |
|
quests
Hand-written SQL for the notice-board tables.
|
Hand-written SQL for the notice-board tables. |
|
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. |
|
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). |
|
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. |
|
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. |
|
sessions
Package sessions provides the game session tracking addon for campaigns.
|
Package sessions provides the game session tracking addon for campaigns. |
|
settings
Package settings manages site-wide configuration and storage limit overrides.
|
Package settings manages site-wide configuration and storage limit overrides. |
|
smtp
Package smtp provides outbound email functionality for Chronicle.
|
Package smtp provides outbound email functionality for Chronicle. |
|
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. |
|
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). |
|
timeline
Package timeline provides the timeline addon for campaigns.
|
Package timeline provides the timeline addon for campaigns. |
|
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. |
|
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. |
|
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. |
|
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. |
|
icon.go — allowlisting for stored Font Awesome icon names.
|
icon.go — allowlisting for stored Font Awesome icon names. |
|
Package semver orders package version strings.
|
Package semver orders package version strings. |
|
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. |
|
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. |
|
layouts
assets.go provides cache-busted static asset URLs.
|
assets.go provides cache-busted static asset URLs. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
posts
Package posts implements the entity posts widget for Chronicle.
|
Package posts implements the entity posts widget for Chronicle. |
|
relations
Package relations implements the entity relations widget for Chronicle.
|
Package relations implements the entity relations widget for Chronicle. |
|
tags
Package tags implements the tags widget for Chronicle.
|
Package tags implements the tags widget for Chronicle. |
Click to show internal directories.
Click to hide internal directories.