DungeonGPT

DungeonGPT

An AI-powered dungeon crawler where every adventure is unique.

live rpgaiadventure
Play DungeonGPT →

Tech Stack

ReactCloudflare PagesCloudflare Workers AISupabaseMulti-LLM

Features & Highlights

AI Dungeon Master

Multi-provider LLM game master (Claude, GPT, Gemini, open-source models) handling narrative, NPCs, and player interactions

RAG Pipeline

Retrieval-augmented generation using Cloudflare Workers embeddings and client-side IndexedDB vector storage for long-term game memory

Procedural World Generation

Seeded terrain generation with biomes, rivers, towns, and mountains — plus lazy interior generation for towns from hamlet to city scale

AI Image Generation (Demo)

In-game art generated via 8+ Cloudflare Workers AI models including FLUX, Stable Diffusion XL, and Leonardo

Campaign Milestone System

Hybrid mechanical and narrative quest progression — engine-detected item/combat/location milestones plus AI-judged narrative completions

Cloudflare AI Workers

Edge-deployed AI inference, embedding, and image generation with JWT authentication and strict CORS

Responsive Design

Fully playable across desktop, tablet, and mobile with theme switching and accessible modal system

Authentication

Passwordless magic link login via Supabase with JWT-based session persistence to Cloudflare Workers

Database

Player state, quest progress, and game world persistence in Supabase Postgres with IndexedDB for client-side RAG vectors

Game Mechanics

Turn-based dungeon crawling with D&D-inspired combat, dice rolls, inventory, XP progression, and 50+ encounter templates

NPC Generation

Deterministic seeded NPC creation with D&D 5e ability scores, 11+ role archetypes, and role-based equipment

LLM Non-Determinism Handling

Hybrid detection system — mechanical milestones verified by game engine, narrative milestones judged by AI with regex-based completion signals

← Back to games