Installation
Helios is distributed as npm packages and works with any modern JavaScript toolchain. This guide covers installation for all supported environments.Requirements
Before installing Helios, ensure your environment meets these requirements:- Node.js ≥18.0.0
- npm or your preferred package manager (yarn, pnpm, bun)
- A modern browser for preview (Chrome, Edge, or Chromium-based)
For production rendering, Helios uses headless Chromium via Playwright. The browser will be automatically installed when you install the renderer package.
Core installation
The core package is required for all Helios projects:What’s included
- Helios class - Main animation engine
- Animation helpers -
interpolate(),spring(), easing functions - Framework adapters - React hooks, Vue composables, Svelte stores
- Utilities - Caption parsing, color helpers, timecode conversion
- TypeScript types - Full type definitions included
Player installation
The player package provides a Web Component for instant preview:<helios-player> custom element that works in any HTML page, with or without a framework.
Features
- HTMLMediaElement parity - Standard play, pause, seek controls
- Client-side export - Export videos directly in the browser using WebCodecs
- Audio mixing - Multi-track audio support with volume control
- Captions - SRT subtitle rendering
- Sandboxed iframe - Composition isolation for security
Renderer installation
The renderer package enables production video output:- Playwright for headless browser control
- FFmpeg binaries for video encoding
- Dual rendering strategies (DOM and Canvas)
- Distributed rendering orchestrator
Complete installation
For a full development setup with preview and rendering capabilities:Framework-specific setup
Helios works with any framework. Here’s how to set up your preferred environment:React
Helios works seamlessly with React:Vue
Vue 3 with Composition API:Svelte
Svelte 5 with reactive stores:Vanilla JavaScript
No framework needed:Development tools
TypeScript (recommended)
All Helios packages include TypeScript definitions:Vite (recommended bundler)
Vite provides the best development experience with Helios:Verify installation
Create a simple test file to verify your installation: test.js:Environment diagnostics
Helios includes a diagnostic tool to check your environment capabilities:Animation library integration
Helios works with popular animation libraries out of the box:GSAP
Framer Motion
Motion One
Lottie
These libraries work with Helios because it drives the browser’s animation engine. No special integration code required—just create your animations normally.
Canvas library integration
For canvas-based compositions:Three.js (3D graphics)
Pixi.js (2D WebGL)
P5.js (Creative coding)
Chart.js (Data visualization)
D3.js (Data-driven documents)
FFmpeg (for rendering)
The renderer package includes FFmpeg binaries automatically via@ffmpeg-installer/ffmpeg. No manual installation needed.
Using system FFmpeg
If you prefer to use your system’s FFmpeg installation:Verify FFmpeg
Check FFmpeg capabilities:Next steps
Create your first composition
Follow the Quickstart guide to build a working video in minutes.
Explore examples
Check out the examples directory for inspiration.
Troubleshooting
Module not found errors
Ensure you’re using a bundler that supports ES modules (Vite, Webpack 5+, Rollup).TypeScript errors
Make sure"moduleResolution": "bundler" or "moduleResolution": "node" is set in your tsconfig.json.
Player not rendering
The<helios-player> Web Component must be imported before use:
Rendering fails
Check that:- Your composition exposes a
heliosinstance onwindow - FFmpeg is installed and accessible
- The composition URL is reachable