User GuideTemplate Marketplace

Template Marketplace

The Template Marketplace lets StudioBrain users share, discover, and install community-created entity templates. Marketplace templates are packaged as Template Packs — versioned bundles that include templates, example entities, and optional AI generation rules.

Note: The Template Marketplace is planned for a future release. The infrastructure for Template Packs is in place (local discovery, installation, and the _Templates/Packs/ directory structure). Cloud-based marketplace browsing and submission are coming in a subsequent phase.

Template Marketplace Overview

What Can Be Shared

Any Template Pack that meets the eligibility criteria can be shared on the Marketplace:

  • Entity templates — YAML-based entity type definitions
  • Document templates — Rich-text document structures (scripts, chapters, etc.)
  • AI generation rules — YAML rule files included in the pack’s rules/ directory
  • Example entities — Sample markdown files in the pack’s examples/ directory

Eligibility Criteria

A Template Pack must meet these requirements before marketplace submission:

  • pack.json metadata file is complete (id, name, description, author, version, entity_types)
  • All referenced template files exist in the pack’s templates/ subdirectory
  • Templates use template_version: "2.0" or higher
  • No hardcoded absolute paths or machine-specific references
  • All category values are valid: entity, document, rule, or skill
  • At least one example entity file in examples/ (strongly recommended)

Available Plans

FeatureFreeIndieTeamEnterprise
Install community packsYesYesYesYes
Publish packsNoYesYesYes
Private packsNoNoYesYes
Commercial licensingNoNoNoYes

Finding and Installing Templates

Browsing the Catalog

In a future release, the Template Library (Settings > Templates) will include a Marketplace tab. From there you can:

  • Browse packs by category (Entity, Document, Rule, Skill)
  • Filter by capabilities (outline_view, export_pdf, etc.)
  • Search by pack name, author, or entity type
  • View ratings and download counts

Installing from Marketplace

When the Marketplace tab is available:

  1. Browse or search for a pack
  2. Click Install on the pack card
  3. Review the entity types the pack will add
  4. Confirm the install — the pack downloads to _Templates/Packs/{pack-id}/
  5. Select which types to activate for your current project

Local Pack Installation

Until cloud marketplace browsing is available, packs can be installed locally by placing them in the correct directory:

_Templates/
  Packs/
    my-pack-name/
      pack.json
      templates/
        CHARACTER_TEMPLATE.md
        LOCATION_TEMPLATE.md
      examples/
        example_character.md
      rules/
        character_rules.yaml

StudioBrain discovers packs from _Templates/Packs/ automatically on startup. After placing a pack directory there, restart the backend service to pick up the new pack.

Activation Workflow

Installing a pack does not automatically activate its entity types. After installation:

  1. Go to Settings > Entity Types
  2. Locate the newly installed pack’s types in the Available section
  3. Click Activate next to each type you want in your project
  4. Confirm activation — the type will appear in your project’s sidebar

Plan limits apply to Standard type activation. Core types (dialogue, assembly, quest, timeline) are unaffected by plan limits.

Creating Marketplace-Ready Templates

Required Metadata Fields

Every template file in your pack must include these frontmatter fields:

---
template_version: "2.0"
id: "my_entity_type"
entity_type: "my_entity_type"
category: "entity"           # entity | document | rule | skill
description: "Short description of what this template is for"
created_date: "2025-01-01"
last_updated: "2025-01-01"
status: "active"
---

The pack.json metadata file must include:

{
  "id": "my-pack-unique-id",
  "name": "My Pack Name",
  "description": "What this pack provides and who it is for",
  "author": "Your Name or Organization",
  "version": "1.0.0",
  "entity_types": ["my_entity_type"],
  "categories": ["entity"],
  "tags": ["narrative", "rpg"],
  "icon": "icon.png"
}

Documentation Requirements

Before submitting, your pack should include:

  • A README.md in the pack root explaining the entity types and intended use
  • Inline comments in YAML frontmatter explaining non-obvious field choices
  • At least one complete example entity in examples/
  • A CHANGELOG.md for packs with multiple versions

Testing Guidelines

Before submitting your pack to the marketplace, verify:

  1. The pack loads without errors (check backend logs on startup)
  2. All entity types appear correctly in Settings > Templates
  3. Creating a new entity with your template works end to end
  4. Example entities import without validation errors
  5. AI generation rules produce sensible output (if your pack includes rules)

To test locally, place your pack in _Templates/Packs/ and restart the backend. Use the Settings > Templates panel to verify the pack appears and its types can be activated.

Template Versioning

How Updates Work

Template Packs use semantic versioning (major.minor.patch). When an update is available on the marketplace:

  • Patch (1.0.0 → 1.0.1) — Bug fixes and minor improvements. Safe to auto-apply.
  • Minor (1.0.0 → 1.1.0) — New fields added. Existing entities are unaffected (new fields appear as empty). Review before applying.
  • Major (1.0.0 → 2.0.0) — Breaking changes. Fields renamed, removed, or retyped. Manual migration may be required.

Backward Compatibility

StudioBrain’s markdown-first architecture makes versioning safer than traditional database-driven apps:

  • Existing entity markdown files are not modified on template update
  • New fields appear as empty in the editor for existing entities
  • Removed fields disappear from the editor but remain in the markdown file (data is preserved)
  • Renamed fields require a migration step to copy values from the old field name to the new one

Update Distribution

When a pack update is released:

  1. The marketplace notifies users with the pack installed
  2. Review the changelog and migration notes
  3. Click Update in Settings > Templates
  4. For major updates, a migration wizard guides you through field mapping
  5. After update, test with a sample entity before applying project-wide

See Also