@helios-project/studio
v0.107.2
Published
Browser-based development environment for Helios video compositions.
Maintainers
Readme
Helios Studio
The browser-based development environment for programmatic video.
Helios Studio is a visual interface for composing, previewing, and debugging Helios video projects. It bridges the gap between code-driven composition and visual verification, offering a Timeline, Props Editor, and real-time Preview.
Features
- Visual Timeline: Scrub through your video, view frames, and manage playback.
- Props Editor: Adjust composition inputs dynamically using a schema-aware editor.
- Assets Panel: Manage and preview project assets (images, audio, video).
- Renders Panel: Track render jobs and client-side exports.
- Hot Reloading: Instant feedback when you modify your composition code.
- Diagnostics: Inspect environment capabilities and system status.
- Client-Side Export: Export MP4/WebM directly from the browser using WebCodecs.
Getting Started
The recommended way to use Helios Studio is by initializing a new project with the Helios CLI.
1. Create a New Project
Use the init command to scaffold a project with your preferred framework (React, Vue, Svelte, Solid, or Vanilla):
npx helios init my-project2. Install Dependencies
Navigate to your project directory and install the necessary packages:
cd my-project
npm install3. Start the Studio
Run the development server, which launches Helios Studio:
npm run devThis will typically open the Studio at http://localhost:5173.
Architecture
Studio acts as a host environment for the Helios Player.
- Frontend: React-based UI that wraps the
<helios-player>component. - Backend: Vite plugin (
vite-plugin-studio-api) that provides API endpoints for file discovery, asset management, and render job orchestration. - Context:
StudioContextmanages the global state (active composition, player state, assets).
Usage
Commands
Start Development Server
npx helios studioLaunches the Studio UI for the current directory. This is what npm run dev typically executes.
Preview Production Build
npx helios previewServes the static build output using vite preview, providing a production-like environment for verifying your composition before deployment.
Compare Component
npx helios diff <component-name>Compares your local component implementation against the official registry version, highlighting any modifications you've made.
List Components
npx helios components [query] [--all] [--framework <name>]Lists available components in the registry. You can filter by name/description, framework, or show all components.
Standalone Usage
You can also install the Studio package directly:
# Install globally
npm install -g @helios-project/studio
# Run from any directory
helios-studioFor a comprehensive guide on getting started, see the Quickstart Guide.
Keyboard Shortcuts
| Key | Action |
|-----|--------|
| Space | Play / Pause |
| Arrow Left/Right | Previous / Next Frame |
| Shift + Arrow | Jump 10 Frames |
| Home | Go to Start |
| I | Set In Point |
| O | Set Out Point |
| L | Toggle Loop |
| Cmd/Ctrl + K | Open Composition Switcher |
| ? | Open Shortcuts Help |
Development
To run the Studio package locally for development (contributing):
Install dependencies:
npm installStart the development server:
npm run devRun tests:
npm test
License
Elastic License 2.0 (ELv2). See root LICENSE for details.
