Skip to content

(01)Gaming & AI

DND AI

AI-powered RPG platform

DND AI: screenshot of the live product

Overview

A Dungeons & Dragons-inspired game where an AI Game Master weaves stories from players' choices in real time. Full character creation (races, classes, ability scores, backgrounds), campaign creation and publishing with AI-generated storylines, levelling, real-time multiplayer over WebSockets, and AI image, video and narrated-audio generation.

Highlights

  1. 01Real-time multiplayer rooms over Socket.IO, with join, rejoin and disconnect handling so a party survives dropped connections
  2. 02AI Game Master on OpenAI with token budgeting (tiktoken), Google Cloud Text-to-Speech narration, and generated character and scene art processed with sharp and stored on S3
  3. 03Credit-based monetisation with Stripe, enforced by API middleware, plus an achievements and XP system across users, characters, campaigns and games
  4. 04Six-step character builder (race, class, abilities, background, alignment, equipment) and physics-based 3D dice rolls
  5. 05Prototyped a tactical combat minigame with an action-point economy, cooldowns, status effects and GPT-generated encounters
Timeline
Jan 2024 – Sep 2025
Team
Built with a small team
Category
Gaming & AI

My role

Full-stack engineer

Worked across both halves of the product. On the Next.js front end I built the character creator and character sheets, the in-game play screen, the new-game flow, account and achievements UI and shared components; on the Express/MongoDB API I wrote controllers, routes, models and middleware, including the achievements system.

Owned

  • Frontend
  • Backend / API
  • Database
  • Real-time
  • Game systems

Tech

Frontend
  • Next.js
  • Zustand
  • shadcn/ui
Backend & APIs
  • Node.js
  • Express
  • Mongoose
  • Socket.IO
Data & storage
  • MongoDB
  • AWS S3
AI
  • OpenAI GPT
  • Google Cloud TTS
Integrations
  • Stripe
3D & motion
  • React Three Fiber
  • GSAP
Next projectFreeAdCopy