djinnmind578 downloadsNarrative intelligence for TTRPG world-building — entity indexing, consistency linting, and dead-link detection for your campaign vault.
You built the campaign in Obsidian. Codex compiles it.
An Obsidian plugin for TTRPG vaults: it indexes your notes, lints dead links and contradictions, then runs recipes that plan which files to change. You see the diffs before anything is written.
1:25 demo (Session 5 → advance plots): https://youtu.be/YOrChVk6fSY



type: npc, type: location, etc. — so Codex can index them.Codex: Open narrative warnings) to see dead links and state conflicts.[[ to search your entity index; filter by type with [[npc:, [[location:, etc.[[wiki-link]] for a quick summary from the entity's frontmatter and opening text.All AI features use your own API key — no subscription required. Supports Google Gemini, OpenAI, Anthropic (Claude), Ollama, LM Studio, and any OpenAI-compatible endpoint.
@ to mention entities or invoke a recipe (@recipe lists them).@advance-plots from [[Session 5]] — patch linked adventures, quests, and arcs so they match the session.@npc-at-location at [[Blackmoss Landing]] into [[The Lockdown]] — create an NPC at a place and wiki-link them into the plot.@add-arc / @add-location — create a new arc or location note and wire it from the session or parent you named.| Guide | Description |
|---|---|
| Getting Started | Installation, vault setup, entity frontmatter, templates |
| Features | Detailed walkthrough of every world-management feature |
| AI Guide | Provider setup, Lore Chat, each AI command explained |
| Settings Reference | Every setting with its type, default, and description |
| Commands Reference | Every command, hotkey, context menu entry, and ribbon icon |
Listed as Codex Narrative Engine in the directory.
BRAT installs from GitHub and can follow prerelease tags on the beta branch.
djinnmind/codex-narrative-engine and click Add Pluginmain.js, manifest.json, and styles.css from the latest release..obsidian/plugins/codex-narrative-engine/Requires Node.js 18+.
git clone https://github.com/djinnmind/codex-narrative-engine.git
cd codex-narrative-engine
npm install
npm run build
The built plugin files will be at packages/codex-obsidian/main.js and packages/codex-obsidian/manifest.json.
To develop with hot-reload:
npm run dev
npm test
Runs the codex-core unit test suite (entity indexing, link resolution, diagnostic rules).
packages/
codex-core/ Editor-agnostic narrative engine (indexing, diagnostics, link resolution)
codex-obsidian/ Obsidian plugin (UI, commands, vault integration)
codex-core has no dependency on Obsidian and can be reused in other editors.
Bugs, questions, and feature requests are welcome on GitHub Issues. There is no Discord yet — the issue tracker is the inbox.