By rjroy
The Adventure Engine of Corvran - An RPG game master system that enables Claude Code to run tabletop-style adventures with persistent world state, character management, and narrative gameplay.
npx claudepluginhub rjroy/adventure-engine-corvran --plugin corvran
A space for collaborative storytelling. A human and an AI sit down together and make up a story, the way kids do.
TTRPGs are shared narrative. At their core, it's kids playing make-believe but with rules. The AI is one of the kids who also happens to maintain the rules. The rules create stakes, not authority. The story belongs to everyone at the table.
The ambition is not an AI that runs a simulation. It's an AI that plays with you.
ANTHROPIC_API_KEY environment variable)git clone --recurse-submodules https://github.com/rjroy/adventure-engine-corvran.git
cd adventure-engine-corvran
bun install
If you already cloned without --recurse-submodules:
git submodule update --init --recursive
bun run dev # starts daemon + Next.js dev server
bun run build # typecheck + build web
bun run start # starts daemon + built web app
The application is a monorepo with three packages:
| Package | Path | Purpose |
|---|---|---|
@corvran/shared | packages/shared/ | Zod schemas and types for API contracts |
@corvran/backend | packages/backend/ | Hono daemon on Unix socket |
@corvran/web | packages/web/ | Next.js App Router client |
The backend is the application. The web client is just that, a client. All AI interaction uses the Claude Agent SDK. Game state lives in markdown files, readable by humans and AI alike.
RPG systems are content, not architecture. Each plugin teaches the AI how to run a game system through reference material and instructions, not application code.
| Plugin | Description |
|---|---|
plugins/corvran | The world of Corvran (setting) |
plugins/d20-system | d20/5e system rules |
plugins/daggerheart-system | Daggerheart system rules |
The daemon stores runtime data in ~/.corvran/ (override with CORVRAN_HOME). Adventures, socket files, and session state live here, not in the repo.
This project includes third-party SRD (System Reference Document) content as git submodules for AI reference during gameplay:
| Submodule | Source | Content |
|---|---|---|
docs/research/daggerheart-srd | seansbox/daggerheart-srd | Daggerheart SRD |
docs/research/dndsrd5.2_markdown | springbov/dndsrd5.2_markdown | D&D 5.2e SRD in Markdown |
These submodules contain reference material used by the AI during gameplay. They are not included in the application build.
This project is licensed under the MIT License. See LICENSE for details.
Uses Daggerheart compatible rules
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Creative skill for generating algorithmic and generative art. Produces visual designs using mathematical patterns, fractals, and procedural generation.
Frontend design skill for UI/UX implementation
Humanise text and remove AI writing patterns. Detects and fixes 24 AI tell-tales including inflated language, promotional tone, AI vocabulary, filler phrases, sycophantic tone, and formulaic structure.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). Proactively activates in projects with cacheComponents: true, providing patterns for 'use cache' directive, cacheLife(), cacheTag(), cache invalidation, and parameter permutation rendering.