Skip to content
keyxmakerxPublic

About

No description, website, or topics provided.

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

5,457 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

License: AGPL-3.0 Go 1.27 Status: pre-alpha

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.

About

No description, website, or topics provided.

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages