Gamified Workforce SaaS

LODEQUEST

Employee management as an RPG—skill trees, XP and leveling, and skill points, with every company in its own isolated workspace. Live at lodequest.com

Next.js 16 TypeScript Tailwind 4 Prisma 7 PostgreSQL React Flow
Scroll

The Vision

Employee development is usually a spreadsheet nobody opens. LodeQuest turns it into an RPG your team actually wants to play.

Managers lay out skill trees on a visual canvas—real competencies with prerequisite paths, just like a talent tree in a game. Employees earn XP, level up, and spend skill points to unlock skills along those paths, so growth is visible, structured, and a little addictive.

It's a multi-tenant SaaS: each company signs up and gets an isolated workspace where its trees, employees, and progression live—invisible to everyone else.

XP Earned Per Unlock
Acyclic Prerequisite Graphs, Enforced
1 Isolated Workspace Per Company

System Architecture

A modern App Router stack with hand-rolled auth and a skill engine that guards its invariants server-side.

Application

  • Next.js 16 App Router + Turbopack
  • TypeScript + Tailwind 4
  • Server actions for every mutation
  • React Flow skill-tree canvas

Auth & Tenancy

  • Custom auth—bcrypt password hashes
  • HS256 JWT session cookies
  • Every query scoped to the company
  • Ownership helpers on all actions

Skill Engine

  • Prisma 7 + PostgreSQL
  • Server-side cycle detection
  • Transactional skill unlocks
  • XP awards atomic with unlocks

Key Features

Skill Trees on a Canvas

Trees are built visually with React Flow—drag skills around, draw prerequisite edges between them, and watch the progression paths take shape like a game's talent tree.

The graph is guaranteed acyclic: every new edge runs a server-side cycle check before it's accepted, so a broken tree can't be saved—no matter what the client sends.

Visual Tree Editor
Prerequisite Paths
Cycle-Proof Graphs

XP, Levels & Skill Points

Progression works like it should in a game: unlocking a skill validates its prerequisites and point cost, spends the points, and awards XP—all in one database transaction, so the economy can never drift into an inconsistent state.

Levels rise with XP, levels grant skill points, and skill points open the next branch of the tree.

unlockSkill("advanced-sales")
  prereqs      met ✓
  point cost   3 → spent
  xp award     +150
  level 4 → 5  🎉
  (one transaction)

A Workspace Per Company

Every server action resolves the session's company first and scopes each query to it through ownership helpers—one company's trees, skills, and employees simply don't exist for another.

Sessions are HS256-signed JWT cookies over bcrypt-hashed credentials; no third-party auth service in the loop.

Tenant-Scoped Queries
Signed JWT Sessions
bcrypt Credentials