Skip to content

Latest commit

Β 

History

54 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Design OS β€” SVG Animation Engine & Motion Video Pipeline

Deterministic vector animation and 1080p 60fps motion video pipeline for AI coding agents.
v0.2.0 β€” HyperFrames Edition: Automated scene scoring, 50Hz audio envelopes, 20 HyperFrames beats, 1:1 dual-layer split sync, and Gate 6 concentricity.
Live Site: https://jangtrinh.github.io/design-os-svg-animation/

Release: v0.2.0 License: MIT Three.js 0.186 React 19 Headless Chromium WebCodecs: Hardware MP4 Virtual Clock: Deterministic 60fps Anti-Flop: 7 Gates Pass


Visual Showcase & Promo Demos (v2.0 Upgraded)

Metric / Demo Example 1: Claude Design Master Promo Example 2: OpenAI Codex App Promo Example 3: Vercel v0 Generative UI
Preview Claude Design 3D Globe OpenAI Codex App Promo Vercel v0 Generative UI
Interactive Runner πŸš€ Launch Web Player (local) ⚑ Launch Web Player (local) β–² Launch Web Player (local)
Split comparison πŸͺž Open split view πŸͺž Open split view πŸͺž Open split view
Deconstruction Assets Contact Sheet Β· Waveform Contact Sheet Β· Waveform Contact Sheet Β· Waveform
Broadcast Video 🎬 1080p 60fps MP4 (13 MB) 🎬 1080p 60fps MP4 (10 MB) 🎬 1080p 60fps MP4 (2.4 MB)
Aspect & Duration 16:9 Β· 82.0 seconds 16:9 Β· 38.0 seconds 16:9 Β· 47.5 seconds
Key Motion Features Specular Glossy Pill, 2.5D CSS mini-bars, 3D Globe with Great-Circle arcs, live Tweaks, and audio-reactive aura Native macOS window kinematics, multi-agent streaming execution, tactile diff review & photobooth preview Official v0 wireframe drawing, reel prompt cycle, component popover edit, 3D code perspective card, Stealth Mode toggle, Vercel outro

Astra for Law motion study

The interactive player is an in-progress, 77.6-second recreation study of the OpenAI reference video. It uses a seekable virtual clock, Motion IR geometry, HyperFrames timing presets, a procedural starfield, and a reduced-motion fallback. The partner logo identities are deliberate SVGL stand-ins; visual acceptance remains open. Read the reference recreation contract before continuing it. Run the source player locally from the repository root:

python3 -m http.server 3033
# Open http://localhost:3033/promo/astra-law-promo.html

Validate the player with node scripts/export-astra-law-video.mjs --verify, capture browser frames with --proof, or export a local 1080p/30 fps MP4 with node scripts/export-astra-law-video.mjs. The output goes to ignored .cache/astra-for-law/; the reference video, its soundtrack, and the local MP4 are not published. After player edits, run npm run sync:astra-pages and npm run verify:astra-pages to keep the public browser copy in docs/promo/ aligned. See the recreation record for scene anchors, owner decisions, and open visual gaps. An exported video is not a visual acceptance claim.


Reference recreation in v2

The contract requires source-indexed scene and transition analysis, mandatory HyperFrames staging and timing presets, deterministic rendering, and comparison of the encoded export. Cut and waveform tools accelerate ingestion but cannot find every soft transition. Styling techniques and exporter choices depend on the reference; the technical audit does not grade visual similarity.


AI Agent Quick Reference & Ingestion Guide

Read AGENTS.md for repository rules and the reference recreation contract for a video task. The contract owns source evidence, HyperFrames v2, transition and camera analysis, final export review, and acceptance. Consult the Product Designer skill before scene, animation, or UI work.

Use the live Motion IR schema for vector intent and deterministic geometry tooling for paths. Keep timelines seekable and finite, provide reduced-motion content, prefer composited properties, and use approved vector icons and sourced marks. Document and verify source-driven exceptions such as layout sizing for crisp text. npm run audit:all checks technical rules; it does not certify visual similarity.


Runtime commands

Use the scripts in package.json and the case-specific exporter identified by the contract. Verify the active runtime's installed commands before invoking a skill or agent; this README does not define a second orchestration or approval process.


AI Agent Installation & Setup

1. Install Project Dependencies

npm install

2. Verify System Tooling Prerequisites

  • Python 3.10+: python3 --version
  • Google Chrome (Headless rendering): /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
  • FFmpeg: which ffmpeg (or /opt/homebrew/bin/ffmpeg)

3. Install Skills for Your Current Agent Harness

  • For Claude Code / Workspace Agents:
    mkdir -p /Users/jang/Products/.agents/skills/product-designer
    cp skills/product-designer/SKILL.md /Users/jang/Products/.agents/skills/product-designer/SKILL.md
    mkdir -p /Users/jang/Products/.agents/skills/motion-video-recreation
    cp skills/motion-video-recreation/SKILL.md /Users/jang/Products/.agents/skills/motion-video-recreation/SKILL.md
  • For Antigravity Global Agent:
    mkdir -p ~/.gemini/config/skills/ak-product-designer
    cp skills/product-designer/SKILL.md ~/.gemini/config/skills/ak-product-designer/SKILL.md
    mkdir -p ~/.gemini/config/skills/ak-motion-video-recreation
    cp skills/motion-video-recreation/SKILL.md ~/.gemini/config/skills/ak-motion-video-recreation/SKILL.md

Deterministic AI Agent Workflows

  • Recreate a reference video: follow the v2 contract from source intake through HyperFrames draft, transition review, final encoded export, and acceptance. Read the Astra lessons for concrete failure cases. Select the case-specific exporter named in that case plan; the Claude, Codex App, v0, and Astra exporters are not interchangeable.
  • Compile Motion IR: inspect the live schema, then run npx tsx scripts/motion-ir-compiler-demo.ts for the existing compiler demo. The schema and compiler own valid fields and output.

Technical checks use the repository scripts in package.json. Their success does not imply that a recreation matches its source.


Repository Architecture & Entrypoints

design-os-svg-animation/
β”œβ”€β”€ docs/                               # Canonical Engineering Specifications
β”‚   β”œβ”€β”€ motion-video-recreation-workflow-guide.md # Lessons and review examples
β”‚   β”œβ”€β”€ motion-video-recreation-pipeline.md  # Normative recreation contract
β”‚   β”œβ”€β”€ architecture-overview.md        # 7-Stage Hybrid Engine Architecture
β”‚   β”œβ”€β”€ motion-ir-specification.md      # Formal Motion IR Schema Spec
β”‚   └── quality-and-safety-gates.md     # JEV System One & A11y Standards
β”œβ”€β”€ plans/journals/                     # Engineering Retros & Session History
β”‚   └── 2026-09-22-codex-app-promo-pipeline.md # Codex App Session Retro & Root Cause Analysis
β”œβ”€β”€ skills/                             # Universal Portable Agent Skills
β”‚   β”œβ”€β”€ product-designer/               # EaseUI tactile depth & SVGL brand marks
β”‚   └── motion-video-recreation/        # Multi-agent motion video recreation skill
β”œβ”€β”€ promo/                              # Virtual-Clock Engine & Rendered Broadcast Assets
β”‚   β”œβ”€β”€ claude-design-promo.html        # 82s Interactive Web Player (Claude Design + 16-Project Outro Montage)
β”‚   β”œβ”€β”€ claude-design-promo.mp4         # 1080p 60fps Broadcast Video Output (13 MB)
β”‚   β”œβ”€β”€ claude-design-engine.js         # Deterministic Virtual Clock Engine (Claude Design)
β”‚   β”œβ”€β”€ claude-design.css               # Dynamic dark/light theme & easing tokens
β”‚   β”œβ”€β”€ codex-app-promo.html            # 38s Interactive Web Player (OpenAI Codex App)
β”‚   β”œβ”€β”€ codex-app-promo.mp4             # 1080p 60fps Broadcast Video Output (10 MB)
β”‚   β”œβ”€β”€ codex-app-engine.js             # High-tempo macOS window & multi-agent engine
β”‚   β”œβ”€β”€ codex-app.css                   # macOS Sonoma dark theme & terminal styling
β”‚   β”œβ”€β”€ v0-generative-ui.html           # 47.5s Interactive Web Player (Vercel v0 Generative UI)
β”‚   β”œβ”€β”€ v0-generative-ui.mp4            # 1080p 60fps Broadcast Video Output (2.4 MB)
β”‚   β”œβ”€β”€ v0-generative-ui-engine.js      # Virtual Camera & Phosphor vector kinetics
β”‚   └── v0-generative-ui.css            # Dark skeuomorphic UI styles
β”œβ”€β”€ src/components/                     # Production React Three Fiber Suite
β”‚   β”œβ”€β”€ InteractiveGlobeWorkspace.tsx   # 3D Orthographic Globe + Great-Circle Arcs
β”‚   β”œβ”€β”€ ExpandingInput.tsx              # Morphing pill-to-form + Claude star spinner
β”‚   β”œβ”€β”€ MeditationAppWorkspace.tsx      # Pulsing Enso ring timer + iOS device mockup
β”‚   β”œβ”€β”€ InlineEditingWorkspace.tsx      # Guide layout + Typography knobs + Spline chart
β”‚   β”œβ”€β”€ ExportHandoffModal.tsx          # Design-to-code CLI handoff card
β”‚   └── ClaudeDesignShowcase.tsx        # Unified master showcase container
β”œβ”€β”€ scripts/                            # Deterministic Tooling & Verification Gates
β”‚   β”œβ”€β”€ motion-preflight-guard.py       # Proactive Pre-Flight Quality Guard & Auto-Fix CLI
β”‚   β”œβ”€β”€ anti-flop-gate.py               # 6-Gate automated quality & a11y auditor
β”‚   β”œβ”€β”€ export-promo-video.py           # Headless Chrome + FFmpeg frame capture pipeline
β”‚   β”œβ”€β”€ jev-svg-auditor.py              # SVG AST & animatability auditor
β”‚   └── motion-ir-compiler-demo.ts      # Motion IR -> CSS & GSAP prototype compiler
β”œβ”€β”€ schemas/
β”‚   └── motion-ir.schema.json           # JSON Schema for motion timeline tracks
└── package.json                        # Dependencies & verified npm scripts (guard, audit)

Anti-Flop & Quality Gates Reference

Gate Target Pass Condition
Pre-Flight Invariant Self-Healing Stroke boundary $\ge 4\text{px}$, button glyphs with explicit fill, DOM camera decoupling, damped harmonic springs.
Gate 0 Mandatory Product Designer Product designer skill verified and active for tactile depth and authentic SVGL marks.
Gate 1 Icon System & Zero Emoji Official Phosphor / Lucide symbols only in <defs> / <use> / React components. Zero raw emojis allowed.
Gate 2 Typography & Contrast -webkit-font-smoothing: antialiased, WCAG 2.2 AA compliant contrast ratios.
Gate 3 Tactile Spatial Depth 8pt/4pt modular grid, multi-layered diffuse drop shadows.
Gate 4 A11y & Motion Safety @media (prefers-reduced-motion: reduce) fallbacks, valid ARIA tags.
Gate 5 Security & Determinism No XSS strings, no NaN or unclosed coordinates, valid Motion IR syntax.

Ecosystem

  • Ecosystem: Design OS
  • Target Runtimes: Modern Browsers, React 19 / Three.js / R3F, Headless Chromium, Web Components
  • License: MIT

About

Deterministic vector animation and 1080p 60fps video pipeline for AI agents with virtual clock quantizing.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages