← All posts

Ratnarok: Building an AI-Driven Tabletop RPG

June 24, 2026

What happens when you combine AI with tabletop RPGs? You get Ratnarok — a web-based RPG where players are heroic rats in a post-human world, powered by AI-driven narrative.

Three Game Modes

  • Solo Mode — Fully procedural AI-generated adventures with Gemini driving NPC dialogue, quests, and world events
  • Semi-Guided — AI + optional human Game Master collaboration
  • Free Tiles — GM-defined sandbox mode for creative freedom

Technical Highlights

  • 8 character classes, 8 origins, 5 biomes, 20+ enemies
  • Complete combat engine with leveling, inventory, and shop system
  • Real-time multiplayer via WebSockets
  • Persistent characters via Supabase
  • Complex prompt engineering for narrative consistency

Ratnarok demonstrates that AI can enable entirely new genres of interactive entertainment — not by replacing human creativity, but by scaling it.

Built with: TanStack Start, Supabase, Gemini API, WebSockets, Tailwind CSS

EG

Erick Guedes

AI · SaaS · Sales Engineering · Solutions Consulting. Turning complex processes into scalable solutions.