HyperFrames CLI
npm install -g hyperframes # または npx を使用
コマンド
init
npx hyperframes init <name> [--template blank|product|explainer|slideshow] [--fps 30] [--width 1920] [--height 1080]
lint
npx hyperframes lint [file] [--fix] [--strict] [--json]
チェック内容: 有効な data-hf-* 属性、時間形式、クリップの重複、不足している duration、到達不可能なアセット、TTS 長さ制限。
preview
npx hyperframes preview [file] [--port 3000] [--open] [--scene <name>] [--time <t>]
スクラバー、シーンピッカー、ホットリロード機能を備えたライブ開発サーバー。
render
export HEYGEN_API_KEY=your_key
npx hyperframes render [file] [--out output.mp4] [--format mp4|webm|gif] [--quality 85] [--scene <name>]
doctor
npx hyperframes doctor
Node ≥ 18、API キー、ネットワーク、アセットパス、設定ファイルの構文をチェックします。
hyperframes.config.json
{
"version": 1,
"entry": "index.html",
"output": "./output.mp4",
"canvas": { "width": 1920, "height": 1080, "fps": 30 },
"render": { "quality": 85, "format": "mp4" },
"tts": { "defaultVoice": "en-US-neural-f1", "speed": 1.0 },
"assets": { "baseUrl": "./assets" }
}
環境変数
| 変数 | 説明 |
|---|---|
HEYGEN_API_KEY | render に必須 |
HEYGEN_REGION | us(デフォルト)または eu |
HF_LOG_LEVEL | debug、info、warn、error |
開発ループ
npx hyperframes init my-video --template product
cd my-video
# index.html を編集
npx hyperframes lint
npx hyperframes preview --open
npx hyperframes render --out output.mp4