2026-03-21 18:07:33 +00:00
2026-03-21 18:07:33 +00:00
2026-03-21 18:07:33 +00:00
2026-03-21 18:07:33 +00:00
2026-03-21 18:07:33 +00:00
2026-03-21 18:07:33 +00:00
2026-03-21 18:07:33 +00:00

DungeonMaster.tools

AI-powered tools for D&D 5th Edition Dungeon Masters. Generate encounters, NPCs, and quest hooks instantly.

Features

  • Encounter Generator — Generate balanced, thematic combat encounters with monsters, terrain, tactics, and loot
  • NPC Generator — Create vivid, memorable NPCs with personality, motivations, quirks, and ready-to-use adventure hooks
  • Quest Hooks — Spark your next adventure with creative quest premises, NPCs, locations, and complications

Tech Stack

  • Framework: Next.js 15 (App Router)
  • Styling: Tailwind CSS + shadcn/ui
  • AI: LLM Proxy (OpenAI-compatible API)
  • Deployment: Coolify (Docker)

Getting Started

Prerequisites

  • Node.js 20+
  • npm or pnpm

Installation

# Clone the repository
git clone https://github.com/Zebratic/dungeonmaster-tools.git
cd dungeonmaster-tools

# Install dependencies
npm install

# Copy environment variables
cp .env.example .env.local
# Then edit .env.local and add your LLM API key

Development

npm run dev

Open http://localhost:3000 to start using the tools.

Production Build

npm run build
npm start

Configuration

Environment Variables

Variable Description Default
LLM_API_KEY Your LLM Proxy API key (sk-lp-xxx) Required
LLM_BASE_URL LLM Proxy base URL https://llm.molberg.cloud/v1
LLM_MODEL Default model gpt-4o

Project Structure

app/
├── page.tsx              # Landing page
├── encounters/page.tsx   # Encounter Generator
├── npc/page.tsx          # NPC Generator
└── quest-hooks/page.tsx  # Quest Hooks Generator

components/
├── nav.tsx               # Site navigation
├── tool-card.tsx         # Homepage tool cards
├── loading-dice.tsx      # Loading animation
└── result-card.tsx       # Generated content display

lib/
├── llm.ts                # LLM Proxy client
├── types.ts              # Shared TypeScript types
└── prompts/             # AI prompt templates

app/[tool]/actions.ts     # Server actions for each tool

License

MIT

S
Description
No description provided
Readme
261 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 91.6%
CSS 6.8%
Dockerfile 0.9%
JavaScript 0.7%