Communitygithub.com

1345AbhishekKumar/starter-supabase

Loop de desenvolvimento CLI do HyperFrames. Use ao executar npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, ou remove-background, ou ao solucionar problemas do ambiente de build/render do HyperFrames. Ponto de entrada para renderização em nuvem AWS Lambda (`hyperframes lambda deploy / render / progress / destroy / policies`).

O que é starter-supabase?

HyperFrames CLI é uma ferramenta de linha de comando completa para criar, testar e renderizar composições de vídeo baseadas em HTML. Ela oferece um fluxo de trabalho iterativo que inclui scaffolding de projetos, linting, validação em tempo real (com verificação de erros de runtime e contraste WCAG), inspeção visual de layout e pré-visualização interativa via Studio. A ferramenta suporta renderização local (com opções draft/high/docker) e renderização em nuvem via AWS Lambda para projetos longos ou grandes. O HyperFrames CLI é projetado para integração com agentes de IA e CI/CD, fornecendo saída JSON na maioria dos comandos, detecção automática de modo não-interativo e gates de validação rigorosos (strict/strict-all/strict-variables). Também inclui um recurso de snapshot para testes visuais rápidos que detectam falhas de montagem de sub-composições que os testes estáticos não capturam. A ferramenta depende do Node.js >= 22, FFmpeg, e pode ser estendida com skills auxiliares para Tailwind, registry de componentes, processamento de mídia e renderização parametrizada.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/1345AbhishekKumar/starter-supabase/tree/HEAD/.agents/skills/hyperframes-cli

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

HyperFrames CLI

Tudo é executado através de npx hyperframes, a menos que as instruções do projeto especifiquem um wrapper local. Obedeça exatamente ao wrapper local. Requer Node.js >= 22 e FFmpeg.

Fluxo de Trabalho

  1. Scaffold — npx hyperframes init my-video (ou capture a partir de uma URL)
  2. Escrever — crie a composição HTML (veja a skill hyperframes-core)
  3. Lint — npx hyperframes lint
  4. Validar — npx hyperframes validate (erros de runtime + contraste)
  5. Inspeção visual — npx hyperframes inspect
  6. Pré-visualizar — npx hyperframes preview abre o Studio, o editor de timeline onde o usuário pode editar manualmente qualquer coisa (não apenas assistir). Revise lá, depois pergunte antes de renderizar.
  7. Renderizar — escolha a variante:
    • Iterar: npx hyperframes render --quality draft
    • Entregar: npx hyperframes render --quality high --output out.mp4
    • CI / reprod. multi-host: npx hyperframes render --docker --strict --output out.mp4
    • Nuvem (longo / grande): npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait (veja Lambda abaixo)

Execute lint, validate e inspect antes do preview. lint captura data-composition-id ausente, faixas sobrepostas e timelines não registradas. validate carrega a composição no Chrome headless e relata erros de console em runtime mais problemas de contraste WCAG. inspect percorre a timeline e relata texto vazando de bolhas/contêineres ou saindo do canvas — e, quando um sidecar *.motion.json está presente, verifica a intenção de movimento (entradas disparando sob seek, ordem de stagger, dentro do quadro, vivacidade) contra essa mesma timeline percorrida.

Para trabalho pesado em motion, prefira iteração orientada a snapshot e um sidecar *.motion.json — veja references/lint-validate-inspect.md para a disciplina e especificação de verificação de motion.

Convenções para Agentes

Regras transversais que valem para todo comando:

  • --json está disponível em todos os comandos, exceto render, preview e play. Use-o para qualquer invocação de agente / CI dos comandos suportados; a saída inclui um envelope _meta (versão da CLI, última disponível, conselho de atualização). render reporta status via stdout + código de saída apenas — verifique o sucesso com a verificação pós-renderização abaixo; preview / play são servidores, sem JSON.
  • doctor --json sempre sai com código 0, mesmo quando o ambiente está quebrado. Avalie o campo ok do payload: npx hyperframes doctor --json | jq -e '.ok' > /dev/null. Isso isola pipelines de mudanças na versão da CLI.
  • Modo não-TTY é detectado automaticamente. Quando stdout não é um TTY (CI, agentes, saída canalizada) a CLI muda automaticamente para modo não interativo; init então requer --example. Use --non-interactive para forçar este modo mesmo em um TTY.
  • Gating de CI na renderização: --strict falha em erros de lint, --strict-all falha também em avisos, --strict-variables falha em chaves --variables não declaradas.
  • Caminhos em --json são redigidos — $HOME se torna literal $HOME para que a saída seja segura para colar em relatórios de bug e contextos de agente.
  • Renderização é controlada pelo usuário. Nunca renderize automaticamente depois que as verificações passarem. Pare no preview, informe ao usuário que o vídeo é editável no Studio, e renderize somente após a aprovação.
  • Verificação pós-renderização. Após render retornar código 0, confirme que o arquivo de saída existe e tem tamanho plausível antes de relatar sucesso: [ -s "$OUTPUT" ] || echo "render não produziu saída". A CLI imprime ◇ <caminho> em caso de sucesso; para renderizações longas, verifique também a duração com ffprobe -i "$OUTPUT" -show_format -v error.

Roteamento

Se você quer…Leia
Scaffold de um projeto (init, capture, skills)references/init-and-scaffold.md
Verificar correção (lint, validate, inspect, snapshot)references/lint-validate-inspect.md
Pré-visualizar ou renderizar (preview, play, render, publish)references/preview-render.md
Diagnosticar o ambiente (doctor, browser)references/doctor-browser.md
Renderizar em nuvem no AWS Lambda (lambda deploy / sites / render / progress / destroy / policies)references/lambda.md
Todo o resto (info, upgrade, compositions, docs, benchmark, telemetry, pré-processamento de assets)references/upgrade-info-misc.md

Passagens entre Skills

  • Projetos Tailwind (init --tailwind) → use hyperframes-core (referência Tailwind) antes de editar classes ou tokens de tema.
  • Blocos/componentes do Registry (hyperframes add, hyperframes catalog) → use hyperframes-registry para caminhos de instalação, conexão de sub-composições e mesclagem de snippets.
  • Pré-processamento de assets (tts, transcribe, remove-background) → use hyperframes-media para seleção de voz, regras do modelo Whisper, legendas e cadeia TTS para legendas.
  • Renderizações parametrizadas (--variables) → declaradas via data-composition-variables no <html>; veja hyperframes-core para o schema completo.

Lambda (Renderização em Nuvem)

hyperframes lambda implementa renderização distribuída no AWS Lambda e aciona renderizações a partir do seu laptop ou CI. Ponto a ponto são três comandos:

npx hyperframes lambda deploy                                             # provisiona stack SAM (Lambda + Step Functions + S3)
npx hyperframes lambda render ./my-project --width 1920 --height 1080 --wait
npx hyperframes lambda destroy                                            # derruba (bucket S3 é mantido)

Use Lambda quando uma renderização for muito longa / grande para um único host (vídeos de vários minutos, 4K, grandes lotes paralelos) e você tiver credenciais AWS configuradas. Para iteração no ciclo de desenvolvimento, fique no render local.

Veja references/lambda.md para pré-requisitos, todos os 6 subcomandos (deploy, sites create, render, progress, destroy, policies), validação de política IAM, arquivos de estado e regras de custo/limpeza.

Portão Mínimo de Conclusão

Portões estáticos

npx hyperframes lint
npx hyperframes validate

Adicione inspect para trabalho sensível a layout e render --strict em CI para falhar em erros de lint.

Teste visual de fumaça — obrigatório quando o projeto usa sub-composições

lint / validate / inspect avaliam cada composição isoladamente. Eles nunca carregam index.html e montam sub-composições via data-composition-src, portanto não conseguem capturar falhas de montagem entre arquivos (veja hyperframes-core → references/sub-compositions.md, "Armadilhas comuns"). O único portão que as captura é aquele que realmente carrega index.html e percorre a timeline.

Use hyperframes snapshot — ele carrega o projeto da mesma forma que render (portanto exercita o mesmo caminho de montagem), mas captura apenas os timestamps solicitados, então são segundos em vez de uma renderização completa:

# Captura um quadro no ponto médio de cada sub-composição.
# Pontos médios = data-start + data-duration/2 para cada slot host em index.html.
npx hyperframes snapshot --at <t1>,<t2>,<t3>,...

# Ou, se você não precisar de alvo por cena, uma amostra uniformemente espaçada:
npx hyperframes snapshot --frames 9

A saída vai para snapshots/frame-NN-at-Xs.png. Examine cada quadro em relação ao plano da cena.

Bandeiras vermelhas por quadro (cada uma mapeia para um modo de falha específico que os portões estáticos perdem):

O que você vêCausa raiz
Texto aparece pequeno + sem estilo no canto superior esquerdoBloco <style> deixado em <head> fora de <template> (Armadilha 1) — nenhum CSS atingiu o DOM ativo
Elementos SVG/ícone ampliados para o tamanho do canvasMesmo acima — sem restrições de largura/altura aplicadas
Elemento principal da cena está completamente ausente; apenas fundo + marca d'água visíveisHost-id ≠ template id (Armadilha 2) — timeline nunca executou, quadro capturado no estado inicial
Comando de snapshot registra Sub-composition timelines not registered after 45000msArmadilha 2 — confirmação direta

snapshots/ pode ser deletado após a inspeção visual; a renderização final para o usuário é uma passagem separada com npx hyperframes render.

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

1345AbhishekKumar/starter-supabase

Add captions to a talking-head video. ONE catalog (CATALOG.md) of 32 visual identities behind two engines: column-flow (captions composited INTO the scene — matte occlusion + mix-blend; cream/ink/editorial/keynote/documentary/loud/neon/glitch/chrome/velocity) and themed constitutions (anchor/ordnance/terminal/neonsign/stardust/stomp/scoreboard/transit/vhs/arcade/dossier/laser/thunder/hologram/biolume/aurora/spectrum/papercut/popup/chalkboard/graffiti/brush/inkwater/ransom/lastpage/nightcity — e.g. a glyph-decode climax, a neon sign WRITTEN stroke by stroke, or the quiet `anchor` rail default). Route by identity, never by mode. Trigger on "captions/subtitles", "embed/cinematic captions", "VFX captions", "炸/特效/酷炫字幕", a named identity, or top-tier motion-graphics asks. Embedding every word is wrong for most talking-head content — `anchor` is the verbatim default. Pipeline: transcription → hyperframes remove-background matting → HTML render → ffmpeg overlay. Requires hyperframes and a single-subject clip.

1345AbhishekKumar/starter-supabase

The fallback workflow for authoring custom HyperFrames video compositions at any length or format — longer or multi-scene pieces, brand / sizzle reels, montages, title cards, static loops, and freeform compositions. Input- and length-agnostic. If a specialized workflow clearly fits the input — a marketed product, a website, a topic explainer, a GitHub PR, existing footage, a short motion graphic, or a Remotion port — prefer it (see /hyperframes); use this only as the general fallback when none fit.

1345AbhishekKumar/starter-supabase

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). HyperFrames-native: single paused timeline, seek-safe, deterministic.

1345AbhishekKumar/starter-supabase

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

1345AbhishekKumar/starter-supabase

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

1345AbhishekKumar/starter-supabase

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

1345AbhishekKumar/starter-supabase

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

1345AbhishekKumar/starter-supabase

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s and up to ~30s, with no narration arc, voice-over, or live-action subject. Can render to MP4 or transparent overlay. Not for longer, multi-scene, narrated, or brand-reel pieces (use general-video), narrated website videos (website-to-video), topic explainers (faceless-explainer), product promos (product-launch-video), PR videos (pr-to-video), or captions on existing footage (embedded-captions). When unsure whether it's a quick motion-first piece or a longer / narrated treatment, see /hyperframes.

1345AbhishekKumar/starter-supabase

Use when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting. The music drives everything: one analyzer reads it once, the orchestrator lays out the frames and fills a per-frame plan, and one sub-agent builds each frame. Typography and templates are the floor — a complete video needs zero assets — but any images or videos the user supplies are cut into the frames on the same beat grid (beat-cut / ken-burns). The genre (lyric video, slideshow, kinetic promo) falls out of the per-frame choices; the pipeline never branches on it.

1345AbhishekKumar/starter-supabase

turn a product or marketing URL, pasted script, or brief into a product launch video, including SaaS promos, feature reveals, app launches, company promos, and product marketing videos. Use this skill when the user wants to market, launch, promote, or reveal a product. Do not use it for general non-launch website tours, non-product topic explainers, GitHub pull requests, captioning existing footage, or short unnarrated motion graphics. If the intent is unclear, route through /hyperframes first. This is the new shot-sequence architecture: every visual frame is authored as a time-coded shot sequence picked from a menu of golden blueprints, so frames develop over their full duration instead of freezing after entrance.

1345AbhishekKumar/starter-supabase

turn a GitHub pull request (a PR URL like github.com/<owner>/<repo>/pull/<N>, an <owner>/<repo>#<N> ref, or 'this PR' in a checked-out repo) into a code-change explainer video, up to ~3 min (sweet spot 30-90s) — changelog, feature reveal, fix, or refactor walkthrough, rendered from the diff / commits / files. The input is a CODE CHANGE read via the gh CLI; there is no website capture. Use this skill for a GitHub PR. Do not use it for a product launch/promo (use /product-launch-video), a tour of a real website (use /website-to-video), a topic explainer with no PR (use /faceless-explainer), captions on existing footage (use /embedded-captions), or a short unnarrated motion graphic (use /motion-graphics). If the intent is unclear, route through /hyperframes first.

1345AbhishekKumar/starter-supabase

Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my Remotion one" without explicit migrate request — treat as fresh build. Doubt → `/general-video`. One-way, Remotion-only: no reverse export (HyperFrames→Remotion or any framework), no non-Remotion source (After Effects, Framer Motion, plain React/CSS) → out of scope, re-create via `/general-video`. Flags unsupported patterns (useState, useEffect, async calculateMetadata, third-party React libs, `@remotion/lambda`) and recommends runtime interop over lossy translation. Unsure whether to port vs. build fresh, or only a passing Remotion mention? → /hyperframes.

1345AbhishekKumar/starter-supabase

Capture a general website/URL and turn it into a HyperFrames video (site tour, showcase, or social clip from the site's own visuals). Uses headless Chrome screenshots + brand assets. Use when intent is general — portfolio/blog/landing-page showcase or social clip from the site. NOT for: product/SaaS launch or promo (→ /product-launch-video, even from a URL); topic explainer with no site (→ /faceless-explainer); GitHub PR (→ /pr-to-video); adding captions to existing video (→ /embedded-captions); short unnarrated page-highlight motion graphic (→ /motion-graphics). Unclear launch-vs-general-site? Ask one question or start at /hyperframes.

Habilidades Relacionadas