Terminal Lexicon & Campaign Codex
Terminal Lexicon & Campaign Codex combines two connected tools for Foundry VTT:
- Terminal Lexicon: An inline glossary system. You type a short tag like
@g[sterling]in any journal, chat message, or card, and Foundry turns it into a color-coded interactive link. Hovering shows a quick tooltip summary; left-clicking opens the full entry; right-clicking (as GM) jumps straight into editing it. - Campaign Codex: A multi-board spatial pinboard for GM screens, session prep, and player investigation corkboards. Pin notes, handouts, Actors, Items, Macros, RollTables, and Playlists onto an expandable canvas, tie labeled threads between cards, and reveal pre-written hidden clues to players live.
The glossary, pinboards, privacy tiers, tagging, checklists, and clocks are system-agnostic. Built-in rule tables, the Party Tracker, Quick Check builder, and encounter XP math are tailored for Pathfinder 2e and Starfinder 2e.
Installation
Install through Foundry's Module Browser using the manifest URL:
https://github.com/kerplunk177/terminal-lexicon/releases/latest/download/module.json
Quick Start: How It Works
Using the Inline Glossary (@g[...])
Whenever you want a word or name in your notes to have a hover tooltip and a clickable lore entry, wrap its glossary key in @g[...].
- Open the Glossary Manager: Press
L(GM only) or click Lexicon (L) in the Journal Directory header. - Create an entry: Click + New Entry, give it a short key (for example,
evander), a display name, a category, and a short tooltip summary. - Use it anywhere: Type
@g[evander](or@g[evander]{the old world}to override the link text) inside Foundry Journals, Chat, Codex cards, or even plain-text blurbs from other modules. - Read or edit in place: Players and GMs can hover the link for the summary or left-click it for the full entry. GMs can right-click any
@g[...]link to edit it. If you type a key that does not exist yet, right-clicking it opens a pre-filled form to create it on the spot. - No-hassle typing (GM only): Typing
@gin any text box, chat bar, Codex card, or ProseMirror journal automatically inserts brackets around your cursor (@g[|]) and pops up a live autocomplete menu. Type a few letters and pressTaborEnterto finish the tag and step outside the closing bracket. HoldShift + Enterto include the display name as a custom label, or pressBackspaceinside an empty@g[|]to clear both brackets.
Setting Up a GM Screen or Investigation Corkboard
- Open the Codex: Press
K(works for both GMs and players) or click Codex (K) / Party Board (K) in the Journal Directory header. - Build out your boards: Use the top ribbon to switch tabs, or click + New Board to start blank or load a starter layout (Session Prep, Combat GM Screen, or Exploration & Downtime).
- Run a private player case board: When creating a board (or by right-clicking an existing board tab), assign it privately to a specific player and check Red-Yarn Corkboard Style. Only you and that player can see or edit it.
- Pre-write and reveal clues: On a player or party board, click + Hidden Clue (or right-click empty space) to place a dashed orange GM-only card. Players never receive hidden cards from the server. When they earn the clue at the table, click Reveal on the card header and it appears live on their board.
- Let the player share when ready: Assigned players can create additional private case boards, edit and rearrange cards, tie labeled threads, and click Share with Party in the top bar whenever they want the rest of the table to see their board.
Terminal Lexicon Features
- Link Existing Journal Pages: Already wrote a formatted Foundry Journal page for a location or faction? Drag that Journal or Page into the Lexicon Manager (or pick it from the dropdown) to use it as the entry's full description instead of duplicating text. Plain-text descriptions written directly in the editor automatically convert line breaks into HTML paragraphs.
- Spoiler Locking: Click the lock icon on any entry to scramble its hover tooltip and hide its full description from players until you unlock it.
- Custom Categories: Click + next to Categories in the left sidebar (or + New Category in the editor) to create your own categories with custom badge codes, icons, and hex colors. Inline links, tooltips, and entry viewers update automatically.
- One-Click Auto-Link
@g: Available in the Glossary Manager, Card Editor, and inline card editor. Scans your text and wraps unlinked mentions of known glossary terms and aliases in@g[key]tags. - Plain-Text Blurb Enrichment: A lightweight DOM observer catches raw
@g[...]tags in truncated or plain-text previews that bypass Foundry's standard HTML enricher.
Campaign Codex Features
Canvas, Layout & Navigation
- Expandable Real Estate: Click +Width (+1400px right) or +Height (+1000px down) in the toolbar, or click the expansion bars along the right and bottom edges of the canvas, to grow any board.
- Proportional Resize & Tidy: Drag the bottom-right corner of a card to scale both the card and its internal font and table sizing (0.8x to 2.4x). Click Tidy to pack visible cards neatly across the window width without resetting their sizes.
- Lasso Multi-Select: Hold
Shiftand left-drag on empty canvas space to box-select multiple cards (orShift + Clickindividual card headers) and drag the entire cluster together. - Window & Camera Persistence: Window size, screen position, active board, scroll offsets, and zoom level are saved per user across closes and page reloads.
- Board Drag-and-Drop: Drag any board tab from the top ribbon or left sidebar onto your active canvas to copy that board's cards into your current workspace.
3-Tier Board Privacy
- GM Private: Stored in
.world-codex-data(NONEdefault ownership). Never sent to player clients. - Player-Assigned Private: Stored in
.world-codex-user-<Name>(OWNERfor the assigned player,NONEfor everyone else). Only the GM and that player can access it until the owner toggles Share with Party. - Party Shared: Stored in
.world-codex-shared(OWNERdefault ownership) with live multi-user sync. - Hidden GM Clues: Cards marked Hidden stay inside
.world-codex-datauntil revealed, migrating cleanly to the player or party journal on click.
Threads, Tag Spotlight & Cards
- Colored & Labeled Connection Threads: Right-click a card, pick Connect / Unlink Thread to Card..., and click a second card. Click any thread line or midpoint pill to pick a thread color, add a midpoint label (such as Blackmailing or Smuggling Route), or unlink it.
- Tag Spotlight Bar: Automatically lists every
#tagon the current board. Click one or more tags to highlight matching cards and dim unrelated ones to 20% opacity (or switch to Hide Others mode). Click + Tag on any card footer to add tags quickly. - Two-Tier
#TagHover Index: Hover any#tagpill to see matching records split into On This Board and Other Boards & Archive, with Unique, All, and By Board / A-Z sorting. Click any row to jump to it, or drag a row straight out of the tooltip onto your active board. - Foundry Document Pins: Drag Actors, Items, Effects, Macros, RollTables, Playlists/Sounds, or Journals from the sidebar onto empty space to create a card, or onto an existing card to append a
@UUIDlink.- Left-clicking Macros executes them; right-clicking opens the macro sheet.
- Left-clicking RollTables rolls them to chat.
- Left-clicking Playlists / Sounds toggles playback.
- Drag the chess pawn handle on Actor or Item cards onto the battlemap canvas to spawn tokens.
- Checklists, Progress Clocks & Colors: Type
[ ]or[x]for live checkboxes. Type[clock:0/4:Label]for interactive SVG pie clocks (left-click +1, right-click -1, chat icon posts to chat). Right-click any card to set separate Border/Icon and Header Banner colors, toggle body tinting, duplicate, send a copy to another board, or post the card to chat.
Pathfinder 2e & Starfinder 2e Table Tools
- Party Tracker: Live unit frames showing PC portraits, level, class, HP bars, Hero Points, AC (with Shield Raised indicator), Perception DC, Stealth DC, Fort/Ref/Will DCs, and active Conditions and Effects.
- Click a player row to open their character sheet, or drag the row onto the map to spawn their token.
- Drag Effects or Items (from the sidebar,
@UUIDlinks, or pinned Effect cards) onto a player row to apply them immediately. - Click + on a player row to dispense common conditions, or left-click (+1) / right-click (-1 or remove) active condition and effect badges.
- Use the top bar to whisper a secret party skill or save roll against an optional DC.
- Quick Check: Build and post clickable
@Checkprompts to chat with skill/save pickers, level and simple DC presets, -5/-2/+2/+5 adjusters, and Secret/Basic toggles. Clicking any row in a pinned DCs by Level table automatically loads that DC into Quick Check. - Campaign Calendar: Tracks Campaign Day, time-of-day watch cycle, custom date/weather notes, and upcoming deadline countdowns. Includes
+10m,+1h,+4h Watch,+1 Day, and+1 Wkbuttons synced with Foundry'sgame.timeclock. - Encounter Math & Combat Launcher: Cards with linked NPC or Hazard
@UUIDs automatically calculate total XP and threat tier against your party's level and size, with a Roll Combat button to push them into the Combat Tracker. - Built-in Rule Tables: Pre-formatted reference cards for DCs by Level (0-25), Combat Maneuvers, Dying & Treat Wounds, Cover & DC Adjustments, Visibility States, Travel Speeds, Exploration/Downtime Activities, and Encounter Budgets.
Controls & Shortcuts
| Input | Action |
|---|---|
K |
Toggle Campaign Codex / Party Board (GM & Players) |
L |
Toggle Terminal Lexicon Glossary Manager (GM only) |
| Middle-Click + Drag | Pan the corkboard canvas |
Ctrl + Mouse Wheel |
Zoom canvas (50% to 150%) |
Shift + Left-Drag (Empty Space) |
Lasso multi-select cards to move as a group |
Shift + Left-Click (Card Header) |
Add or remove a card from group selection |
| Double-Click (Empty Space) | Create a new Note card at cursor |
| Double-Click (Card Header) | Minimize or expand card |
| Double-Click (Card Body) | Edit card body in place (Ctrl + Enter save, Esc cancel) |
Shift + Click X |
Remove card without confirmation prompt |
| Click Thread Line / Label | Edit thread color, midpoint label, or unlink |
| Right-Click (Canvas / Card / Tab) | Open context menu |
Storage, Backups & Themes
- LevelDB-Friendly Storage: Every Codex card and Lexicon entry is stored as its own
JournalEntryPage(with body content in nativepage.text.content) rather than piling campaign data into a single monolithic flag. Single-card drags write only to that page; bulk moves (Tidy, lasso drags) commit in one batched update. - JSON Backups: Both the Glossary Manager and Campaign Codex include export and import buttons.
- Themes & Client Options: Switch between CRT Terminal, Bronze & Starlight, and Arcane Grimoire in module settings or from the Codex toolbar. Client settings also include Low-Spec Mode (disables animations and scanlines) and Tooltip Scale (85% to 150%).