facet

module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2026 License: AGPL-3.0

README ΒΆ

Facet

Autonomous Video Production Engine & Studio for Agentic CLIs (Claude Code, OpenCode, OpenAI Codex, GitHub Copilot).

npm version

Facet turns conversational requests in your terminal or browser into fully produced, rendered .mp4 videos. It combines a stateless Go media engine, pre-loaded production guidance for AI coding agents, and an optional reactive web studio.


⚑ Quick Start

Option 1: NPX (Zero Install)

Run instantly on Windows, macOS, or Linux:

# Verify system dependencies and tools
npx @xibodev/facet doctor

# Create a project and launch your agent
npx @xibodev/facet init my-video --engine claude

# Or launch the visual studio
npx @xibodev/facet ui
Option 2: Global NPM Install
npm install -g @xibodev/facet
Option 3: Direct Script Install

Windows (PowerShell):

irm https://raw.githubusercontent.com/xibodev/facet/main/install.ps1 | iex

macOS / Linux (Bash):

curl -fsSL https://raw.githubusercontent.com/xibodev/facet/main/install.sh | sh

🎬 How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                             FACET STUDIO (UI)                               β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚          LEFT: AGENT STREAM          β”‚        RIGHT: ARTIFACT CANVAS        β”‚
β”‚                                      β”‚                                      β”‚
β”‚  β€’ Spawns your CLI (Claude/OpenCode) β”‚  β€’ 6-Stage Reactive Progress Stepper β”‚
β”‚  β€’ Bidirectional stream-json SSE     β”‚  β€’ Script & Narrative Beat Table     β”‚
β”‚  β€’ Tool execution pills & status     β”‚  β€’ Synthesized Audio Beat Players    β”‚
β”‚  β€’ Structured question choices       β”‚  β€’ Visual QA Contact Sheet Gallery   β”‚
β”‚  β€’ Zero server context state         β”‚  β€’ Master Video Player (1080p, H264) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–²β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–²β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚ (Pipes stdin/stdout)                  β”‚ (Watches projects/)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                             FACET ENGINE (Go)                               β”‚
β”‚  β€’ 33 Media & Analysis Tools (`facet tools list/describe/run`)              β”‚
β”‚  β€’ Keyless Neural Speech (Edge-TTS built-in)                                β”‚
β”‚  β€’ FFmpeg Trimming, Concat, Normalization & Loudness Mastering              β”‚
β”‚  β€’ Remotion React Motion Graphics & Captions Composer                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ› οΈ CLI Commands

# Inspect system runtimes, CLIs, and 33 media tools
facet doctor

# Scaffold a project workspace and launch the agent CLI
facet init <project-slug> [--engine claude|opencode|codex|copilot] [--no-launch]

# Launch the visual web studio (auto-opens browser)
facet ui [--port 8787] [--dir .] [--no-open]

# Run toolbox operations directly from scripts or agent harnesses
facet tools list
facet tools describe <tool-name>
facet tools estimate <tool-name> --input request.json
facet tools run <tool-name> --input request.json

πŸ“¦ Toolbox Capabilities (33 Tools)

Facet ships with 33 stateless media tools implemented in pure Go:

Category Tools Capabilities
Voice & Speech edge_tts, openai_tts, elevenlabs_tts, piper_tts Keyless Microsoft Edge neural TTS, ElevenLabs, OpenAI voice, local Piper.
Video Editing source_edit, video_trimmer, video_stitch, video_compose, silence_cutter Ordered trims, 16:9 / 9:16 normalization, transitions, silence detection, Remotion React rendering.
Audio Mastering audio_mix, audio_mixer, music_library, audio_probe Multi-track speech/music mixing, sidechain ducking, EBU R128 loudness normalization.
Visual QA output_review, visual_qa, frame_sample, frame_sampler, scene_detect, media_probe Container inspection, 5-gate technical verification, keyframe extraction, scene cut detection.
Open & Stock Media direct_clip_search, wikimedia, pexels_video, pixabay_video Public domain & CC media acquisition with download and probing.
AI Generation openai_image, flux_image, kling_video, sora_video, color_grade Cloud generation APIs with mock contracts and LUT color grading.
Selectors image_selector, video_selector Explainable candidate ranking and cost estimation.

πŸš€ Modular Production Packs

Facet organizes production capabilities into modular content packs under packs/ that provide focused skills, styles, and pipeline definitions:

Pack Package Pipelines Included Capabilities
Explainer @xibodev/facet-pack-explainer animated-explainer 2D motion graphics, charts, text cards, Remotion runtime
Cinematic @xibodev/facet-pack-cinematic cinematic, documentary-montage Archival montage, Wikimedia public domain sourcing, color grading
Screen Demo @xibodev/facet-pack-screendemo screen-demo Software walkthroughs, synthetic terminal screen recording
Talking Head @xibodev/facet-pack-talkinghead talking-head, avatar-spokesperson AI presenter videos, lip-sync, teleprompter scripts
Social @xibodev/facet-pack-social clip-factory, podcast-repurpose 9:16 vertical shorts, viral hooks, animated captions
Animation @xibodev/facet-pack-animation character-animation, animation 2D character rigging, pose libraries, action timelines
Localization @xibodev/facet-pack-localization localization-dub Multilingual dubbing, subtitle translation, voice cloning

πŸ“„ License

GNU Affero General Public License, version 3 (AGPL-3.0-or-later).

Directories ΒΆ

Path Synopsis
cmd
facet command
facet-ui command
videokit command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL