djinnmind94 downloadsNarrative intelligence for TTRPG world-building — entity indexing, consistency linting, and dead-link detection for your campaign vault.
An Obsidian plugin that adds narrative intelligence to your TTRPG campaign vault. Codex indexes your world-building notes, surfaces broken links, detects logical contradictions in your story, and brings AI assistance directly into your creative workflow — so you can focus on running the game instead of auditing your lore.
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.
| 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 |
BRAT installs plugins directly from GitHub and keeps them updated automatically.
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.