Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pterror/statosphere-studio

Open more actions menu

Repository files navigation

statosphere-studio

Best-in-class editor for Statosphere stage configurations.

Architecture (v2)

A single canvas of recipe instances replaces the old tabbed layout. Each recipe encapsulates a reusable configuration pattern (HP Tracker, Inventory, etc.) with typed parameters. The canvas materializes all instances into the five Statosphere schema arrays (variables / classifiers / generators / contentRules / functions), which is what gets pasted into Chub.

Key modules:

  • src/recipes/ — recipe type model, builtin registry, materialize pipeline
  • src/stores/recipes.ts — Pinia store: instances + custom library, persisted to localStorage
  • src/stores/config.ts — derived store: computed projection of materialized instances
  • src/share/encode.ts#cfg= hash codec (gzip + base64url); v2.5 carries a studio sidecar (instances + customLibrary) so shared URLs restore the full recipe structure
  • src/share/hydrate.ts — hash hydration on page load; v1 plain-config payloads are wrapped as a Custom recipe

Dev

bun install
bun run dev              # SPA dev server
bun run build            # Build SPA + library
bun run typecheck        # Type check
bun run validate-recipes # Validate all builtin recipes against upstream schemas

Embed as library

<StatosphereStudio embedded template="hp-tracker" />

Pass any builtin recipe id as template to pre-load an instance. Unknown ids render an empty studio with a console warning.

import { StatosphereStudio } from '@pterror/statosphere-studio'
import '@pterror/statosphere-studio/dist/style.css'

Vue and Pinia must be externalized (not bundled).

About

Best-in-class Statosphere config editor — Vue 3 SPA + embeddable component with built-in help, templates, shareable URL hashes, and runtime-gotcha lints

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.