Skip to content
vp.

Compendium

A private wiki for tabletop role-playing campaigns, live on its own server, where multiple users share and build one role-playing world. Each player reads only what their character knows, so nobody gets spoilers and the lore no longer depends on the Game Master's memory.

The wiki began as a final project (graded 9.9/10) and keeps evolving with the feedback and suggestions of the people who use it.

ROLE
Author of the core and lead maintainer. I decide which features get built and write most of the code. Two teammates challenge my ideas, review the code and advise me on technical matters.
YEAR
2026
STATUS
LIVE · PRIVATE REPO
STACK
Vue 3, PrimeVue, Tailwind CSS, NestJS, TypeORM, PostgreSQL, TypeScript, Docker, Nginx
Compendium character sheet as its player sees it: portrait, faction and class, and only the lore fragments the character knows, each tagged with its secret and who knows it
Compendium change comparison for a proposal from a player: three lore fragments marked as modified, with the removed sentences struck through in red and the added ones highlighted in green
Compendium lore fragment editor with a new secret fragment half written: knowledge it requires, title and text still in progress
Compendium search listing with four fictional characters, a barbarian, a druid, a bard and a cleric, shown as cards with their portraits
1 / 4

01

Context & Problem

In a role-playing campaign, each character discovers different things, and part of the game is that what one player knows, the others don't.

It began as my final project for the Web Application Development degree, and today it runs in production, deployed and operated on a server of my own.

Before it, all the lore depended on what the Game Master told the players. Players' proposals travelled through Discord and could not be shared because they contained secrets, so most of it became oral tradition, and each player kept notes in a different tool.

Now players look up the lore, check it during games, and record their discoveries and their characters' backstories. Even what is improvised during games is kept.

02

Key Architectural Decisions

  1. Each player sees only what their character knows

    The secret lives not in the page but in each text or image fragment, which carries a knowledge_id. Every entry is written once, and each character sees only what they know. I discarded per-page permissions because they forced duplicating entries, one for the Game Master and one for the players, and the copies multiplied when two groups shared the world or a player joined two campaigns.

  2. Players propose changes without seeing the whole entry

    Along with permissions, this is the heart of the project. A player can propose changes to an entry they cannot see in full without erasing what is hidden from them. The blind rebase compares their version with the base fragment by fragment: hidden content travels without its text, and each conflict (edit against edit, delete against edit, edit against delete) has explicit resolution options. I discarded overwriting the whole entry, because it would erase what the player cannot see, and blocking edits for anyone who cannot see it all, because most players would be left unable to contribute, and the wiki grows with their discoveries.

  3. Leaving a faction does not erase what a character knew

    Faction access is copied to the character: on joining, it receives the secrets the faction already holds, and when a secret is assigned to a faction it is copied to its members. I discarded computing it on every read from current membership, because leaving a faction would also erase the character's past.

03

Technical Challenges

  • The groups already organise their games on Discord, so that is where feedback and suggestions arrive. An automation logs them, and improvements and new features come out of them. Since we started maintaining it as a small team, we have also improved the interface and efficiency. Telegram is where both the team and the players talk day to day, so we added an integration to take quick notes and look up the lore without opening the wiki.
  • After the MVP I hardened the security. Approving a proposal became atomic, so a failure midway or a double click cannot leave the lore half-applied, and a security fix closed public registration and limited who can edit other users.

04

Scope and next steps

  • Each installation handles a single world. It was a scope decision: supporting several would mean separating users, content, Game Masters and settings in every entity, a large extension for the time I had and one I did not need. For different settings, two installations isolate users, content and Game Masters better.

05

Takeaways

Turning a course project into a real tool for people I know changed how I see development. Every feature now starts from what users need, not just my own judgement, and I learn from my teammates’ code reviews.

NEXT PROJECT — 02

gearflow-api