StudioBrain

A schema-driven digital asset management and narrative intelligence platform for game development.

StudioBrain is a creative workbench that lets writers, game designers, and worldbuilders manage interconnected entities — characters, locations, factions, items, districts, and more — through a visual editor backed by YAML frontmatter and Markdown content.


Key Capabilities

  • Entity Management — Create, edit, validate, and link entities with structured frontmatter fields and free-form Markdown body content.
  • Visual Layout Designer — Compose entity edit and view pages from modular sections, component blocks, and configurable tabs using a drag-and-drop interface.
  • AI Workshop — Generate and refine content with multi-provider AI support, deep analysis mode, context controls, and collaborative editing.
  • Plugin System — Extend the editor with third-party plugins rendered in sandboxed iframes, communicating through a typed postMessage protocol.
  • Theme System — Full light/dark mode support with semantic surface tokens for consistent, accessible styling.
  • Asset Management — Upload, organize, and assign images and media to entities with role-based asset management.
  • Relationship Graphing — Visualize and navigate connections between entities across your entire world.

Documentation Sections

User Guide

Step-by-step guides for using StudioBrain:

  • Getting Started — Overview of the application, opening projects, and navigating the interface.
  • Managing Entities — Creating, editing, validating, and organizing your worldbuilding entities.
  • AI Workshop — Using AI features to generate, compare, and refine content.

Developer Reference

Technical documentation for extending and understanding the codebase:


Tech Stack

LayerTechnology
FrontendNext.js 16, React 19, TypeScript
StylingTailwind CSS 4, semantic surface tokens
StateZustand, TanStack Query
EditorMonaco Editor, MDX Editor
Drag & Dropdnd-kit
3DReact Three Fiber
BackendRust (Axum) sb-server (core, self-hosted); Cloudflare Workers (sb-server-worker et al.) for the SaaS at app.studiobrain.ai
ClientsTauri desktop and mobile apps (clients/)
DataYAML frontmatter + Markdown files

Running Locally

The core application lives in studiobrain-core; this documentation site lives in docs/ of the studiobrain-cloud monorepo. The core frontend dev server runs on port 3100 and the documentation site on port 3200.

# Main application (studiobrain-core frontend)
cd studiobrain-core/frontend
npm install
npm run dev          # http://localhost:3100
 
# Documentation site (studiobrain-cloud)
cd studiobrain-cloud/docs
npm install
npm run dev          # http://localhost:3200