UsersManaging Entities

Managing Entities

Entities are the core data objects in StudioBrain. Each entity represents something in your world — a character, location, faction, item, district, brand, or job role. This guide covers creating, editing, validating, and organizing entities.

Entity Types

Entity types are provided by activated templates. When you install and activate a template, its entity types become available in your project. If no templates are installed, you’ll see a message prompting you to install one.

Fresh tenants: Entity types come from templates. Install a template (via Settings or the Template Marketplace) to unlock entity types.

Built-in Entity Types

The following entity types are included in the standard template:

Entity TypeDescriptionExample Fields
AssemblyGrouped entity collections with slotsname, slots, structure, parent, inheritance
BrandIn-world companies, productsname, industry, parent_company, subsidiaries
CampaignMajor narrative arcs, story campaignsname, chapters, status, description
CharacterPeople, NPCs, key figuresname, role, faction, relationships, backstory
DialogueBranching conversation treeslines, choices, conditions, outcomes, node types (dialogue/choice/action/condition/ending), branch connection picker
DistrictCity zones, neighborhoodsname, character, factions, locations, threat_level
EventTimeline events, plot pointsname, date, description, related_entities
FactionOrganizations, groups, gangsname, type, leader, goals, territory, members
ItemObjects, weapons, gear, techname, type, rarity, description, stats
JobRoles, occupations, professionsname, category, faction_affiliation, requirements
LocationPlaces, venues, landmarksname, district, type, atmosphere, notable_features
QuestMissions, objectives, side storiesname, objectives, rewards, prerequisites
Style BibleVisual and tone guidelinesmood, palette, references, style_notes
TimelineChronological event viewerevents, dates, eras, relationships
UniverseWorld settings, cosmology, rulesname, settings, rules, cosmology, factions

Creating a New Entity

  1. Navigate to the entity type list page (e.g., Characters in the sidebar)
  2. Click the New button (typically in the top-right corner)
  3. Fill in the required fields — at minimum, the entity needs a name
  4. Click Save to create the entity file

On the SaaS app the entity is saved to your project’s store (frontmatter and markdown body together). On self-hosted and desktop it is a markdown file with YAML frontmatter in the project directory.

Entity Data Structure

Every entity has two parts, a YAML frontmatter block and a markdown body:

Frontmatter Fields

Structured data stored as YAML key-value pairs. These are the fields you see in the Visual Editor:

name: Rex Marshall
role: Enforcer
faction: The Syndicate
status: active
description: A former corporate security specialist turned underground enforcer.
relationships:
  - entity: sara_chen
    type: ally
    description: Trusted partner from the old days
production_status:
  general: wip
  game: concept
  tv: draft

Markdown Body

Free-form narrative content that follows the frontmatter, separated by ---:

---
name: Rex Marshall
role: Enforcer
...
---
 
# Background
 
Rex Marshall grew up in the corporate districts before a
scandal forced him underground. Now he works as muscle
for The Syndicate, though his loyalties are more complex
than they appear.
 
## Key Events
 
- **2045**: Recruited by Nexus Corp security division
- **2048**: The Blackout Incident — forced into hiding
- **2050**: Joins The Syndicate as an enforcer

Editing Entities

Custom entity types you define through a template get browse, list, card and detail views built automatically from the template — no extra layout work is needed to see them.

Visual Editor Tab

The Visual Editor presents your entity’s fields in an organized, form-based layout. Sections are defined by layout JSON files and may include:

  • Text fields — Simple single-line inputs for names, titles, etc.
  • Textarea fields — Multi-line inputs for descriptions and notes
  • Select/Dropdown fields — Choosing from predefined options (e.g., faction type, status)
  • Array fields — Lists of values (e.g., skills, equipment, allies)
  • Complex array fields — Lists of objects (e.g., relationships with entity reference + type + description)
  • Entity reference fields — Link to other entities with inline search and selection
  • Rating selectors — Numeric scales for attributes like threat level or influence

YAML Editor Tab

For power users, the YAML tab gives you direct access to the raw frontmatter in a full Monaco code editor with syntax highlighting, auto-completion, and error detection.

Markdown Editor Tab

The Markdown tab provides a rich editor for the entity’s body content. You can write and preview Markdown with support for headings, lists, tables, code blocks, and more.

Component Blocks

Layout sections can also contain component blocks — rich interactive widgets that go beyond simple form fields:

  • Entity Assets — Upload and manage images, set primary image, assign asset roles
  • Entity Timeline — View and manage chronological events for the entity
  • Entity Chat — AI-powered conversational editing panel
  • Entity Relationships — Auto-discovered relationship links rendered as grouped cards
  • Production Status — Pipeline status editor (general/game/TV status)
  • Primary Image — Hero image display with placeholder fallback
  • Markdown Content — Rendered markdown body preview

Validation

Validation Panel

The Validation Panel appears in the entity editor and checks your entity data against the rules defined in the entity’s template. It shows:

  • Errors (red) — Critical issues that should be fixed (e.g., missing required fields)
  • Warnings (yellow) — Non-critical issues (e.g., suggested fields that are empty)

When all fields pass validation, the panel shows a green “All fields valid” indicator.

Each validation issue includes:

  • The field path that has the problem
  • A description of what is wrong
  • A clickable link to navigate directly to the offending field

Fix Dialog

Clicking the Fix button (wrench icon) opens the Fix Dialog, which offers three tiers of automated repair:

Fix TierDescriptionCost
Auto-fix (Rule-based)Instant fixes for missing dates, formatting, and common issuesFree
Local AI (Qwen)Uses your local Qwen model for smarter, context-aware fixesFree (requires a local AI service)
Premium AIUses premium providers (Claude, GPT, etc.) for the most sophisticated fixesRequires an API key

The Fix Dialog presents a diff view (side-by-side comparison) so you can review exactly what changes will be made before applying them.

Organizing Entities

Search and Filtering

Each entity list page includes:

  • Text search — Filter entities by name or content
  • Category filters — Filter by type-specific categories (e.g., faction type, item rarity)
  • Sort options — Sort by name, date created, date modified, or other fields

The Search page (accessible from the sidebar) lets you search across all entity types at once. This is useful for finding references to a character across locations, factions, and items.

Relationship Graph

The Relationship Graph provides a visual network view of all entity connections. Nodes represent entities, and edges represent relationships. You can:

  • Pan and zoom the graph
  • Click nodes to navigate to entities
  • Filter by entity type or relationship type
  • See relationship strength and direction

Recycle Bin

Deleted entities are moved to the Recycle Bin rather than permanently destroyed. From the Recycle Bin you can restore entities or permanently delete them.

Tier Limits

The free plan is capped at 10 entities; the community (open-core) plan and the paid plans (indie, team, enterprise) are unlimited. The limit comes from the plan claim on your sign-in token and is reported by GET /api/tenant/usage. See Tier Enforcement Architecture for details.

On the New Entity page a banner shows your usage:

  • Yellow warning: approaching the limit (80% or more used), with the remaining slots
  • Red error: blocked because the plan limit is reached; the New Entity button is disabled

The free limit is no longer configurable through FREE_TIER_ENTITY_LIMIT, and a missing storage configuration no longer blocks entity creation (it is informational only).

Next Steps