Prerequisites
Before adding components, initialize your project:helios.config.json file in your project root.
Browsing components
List all available components:Adding components
Install a component
Run the add command with the component name:This will:
- Fetch the component from the registry
- Resolve and install registry dependencies (like
use-video-frame) - Copy files to your
src/components/heliosdirectory - Install npm dependencies
- Update
helios.config.json
Review installed files
Check your components directory:The timer component depends on
use-video-frame, so both were installed.Skip dependency installation
If you want to manage dependencies yourself:Dependency resolution
Components can depend on:- npm dependencies - External packages (e.g.,
react,@helios-project/core) - Registry dependencies - Other components in the registry (e.g.,
use-video-frame)
helios add A.
Framework detection
The CLI reads yourframework setting from helios.config.json:
- Exact framework match (e.g.,
react) - Vanilla/framework-agnostic components
- Falls back if no match found
Configuration file
After adding components,helios.config.json tracks what’s installed:
Modifying components
Once copied, components belong to you. Edit them directly:- Change styles
- Add props
- Remove unused features
- Combine multiple components
Updating components
Re-runninghelios add <component> will skip existing files by default. To overwrite:
Currently, there’s no automatic update mechanism. You own the code, so updates are manual.