Skip to main content

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:
This gives you the headless Helios engine that manages animation state, timeline control, and framework adapters.

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:
This gives you the <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:
This includes:
  • Playwright for headless browser control
  • FFmpeg binaries for video encoding
  • Dual rendering strategies (DOM and Canvas)
  • Distributed rendering orchestrator
The renderer package includes large dependencies (Playwright, FFmpeg). It’s recommended to install this only in your build/server environment, not in client-side bundles.

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:
Project structure:

Vue

Vue 3 with Composition API:
Recommended: Use Vite with the Vue plugin for optimal development experience.

Svelte

Svelte 5 with reactive stores:

Vanilla JavaScript

No framework needed:
Helios works directly with standard JavaScript and the DOM.

Development tools

All Helios packages include TypeScript definitions:
tsconfig.json:
Vite provides the best development experience with Helios:
vite.config.js:

Verify installation

Create a simple test file to verify your installation: test.js:
Run with Node.js:
You should see:

Environment diagnostics

Helios includes a diagnostic tool to check your environment capabilities:
This helps verify that your browser supports all Helios features.

Animation library integration

Helios works with popular animation libraries out of the box:

GSAP

GSAP timelines are driven by Helios automatically.

Framer Motion

Framer Motion animations sync with Helios playback.

Motion One

Motion One uses the Web Animations API natively.

Lottie

Render After Effects animations programmatically.
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)

Optional React bindings:

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:
This shows available hardware acceleration and codec support.

Next steps

1

Create your first composition

Follow the Quickstart guide to build a working video in minutes.
2

Explore examples

Check out the examples directory for inspiration.
3

Read the API docs

Learn about the Helios API, animation helpers, and rendering options.

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:
  1. Your composition exposes a helios instance on window
  2. FFmpeg is installed and accessible
  3. The composition URL is reachable
Run diagnostics: