@mevdragon/vidfarm-devcli 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/.agents/skills/embedded-captions/CATALOG.md +93 -0
  2. package/.agents/skills/embedded-captions/SKILL.md +286 -0
  3. package/.agents/skills/embedded-captions/assets/brand/CDPR-fankit-terms.txt +35 -0
  4. package/.agents/skills/embedded-captions/assets/brand/cyberpunk-widths.json +115 -0
  5. package/.agents/skills/embedded-captions/assets/fonts/char-widths.json +2211 -0
  6. package/.agents/skills/embedded-captions/assets/strokefonts/HersheyScript1.svg +242 -0
  7. package/.agents/skills/embedded-captions/assets/strokefonts/HersheyScriptMed.svg +242 -0
  8. package/.agents/skills/embedded-captions/dna/README.md +148 -0
  9. package/.agents/skills/embedded-captions/dna/chrome.json +68 -0
  10. package/.agents/skills/embedded-captions/dna/cream.json +69 -0
  11. package/.agents/skills/embedded-captions/dna/documentary.json +62 -0
  12. package/.agents/skills/embedded-captions/dna/editorial.json +70 -0
  13. package/.agents/skills/embedded-captions/dna/glitch.json +82 -0
  14. package/.agents/skills/embedded-captions/dna/ink.json +65 -0
  15. package/.agents/skills/embedded-captions/dna/keynote.json +62 -0
  16. package/.agents/skills/embedded-captions/dna/loud.json +75 -0
  17. package/.agents/skills/embedded-captions/dna/neon.json +58 -0
  18. package/.agents/skills/embedded-captions/dna/velocity.json +89 -0
  19. package/.agents/skills/embedded-captions/modes/cinematic/README.md +48 -0
  20. package/.agents/skills/embedded-captions/modes/cinematic/_archive/champion/spec.md +98 -0
  21. package/.agents/skills/embedded-captions/modes/cinematic/_archive/champion/template.html +188 -0
  22. package/.agents/skills/embedded-captions/modes/cinematic/_archive/memory-wall/spec.md +134 -0
  23. package/.agents/skills/embedded-captions/modes/cinematic/_archive/memory-wall/template.html +179 -0
  24. package/.agents/skills/embedded-captions/modes/cinematic/_archive/portrait-header/spec.md +81 -0
  25. package/.agents/skills/embedded-captions/modes/cinematic/_archive/portrait-header/template.html +170 -0
  26. package/.agents/skills/embedded-captions/modes/cinematic/cinematic-cream/spec.md +16 -0
  27. package/.agents/skills/embedded-captions/modes/cinematic/cinematic-cream/template.html +226 -0
  28. package/.agents/skills/embedded-captions/modes/cinematic/engine.html +355 -0
  29. package/.agents/skills/embedded-captions/modes/standard/_anatomy.md +233 -0
  30. package/.agents/skills/embedded-captions/modes/standard/_motion.md +192 -0
  31. package/.agents/skills/embedded-captions/modes/standard/fonts/build-fonts-css.cjs +97 -0
  32. package/.agents/skills/embedded-captions/references/aesthetic-principles.md +168 -0
  33. package/.agents/skills/embedded-captions/references/anti-patterns.md +188 -0
  34. package/.agents/skills/embedded-captions/references/bespoke-vs-presets.md +178 -0
  35. package/.agents/skills/embedded-captions/references/caption-grouping.md +130 -0
  36. package/.agents/skills/embedded-captions/references/composition-craft.md +522 -0
  37. package/.agents/skills/embedded-captions/references/direction-catalog.md +138 -0
  38. package/.agents/skills/embedded-captions/references/example-renders/champion.html +371 -0
  39. package/.agents/skills/embedded-captions/references/example-renders/memory-wall.html +334 -0
  40. package/.agents/skills/embedded-captions/references/failure-modes.md +145 -0
  41. package/.agents/skills/embedded-captions/references/layout-heuristics.md +238 -0
  42. package/.agents/skills/embedded-captions/references/motion-vocabulary.md +148 -0
  43. package/.agents/skills/embedded-captions/references/rail.md +68 -0
  44. package/.agents/skills/embedded-captions/references/reference-bar.md +47 -0
  45. package/.agents/skills/embedded-captions/references/scene-types.md +94 -0
  46. package/.agents/skills/embedded-captions/references/test-set.md +66 -0
  47. package/.agents/skills/embedded-captions/references/typographic-moves.md +266 -0
  48. package/.agents/skills/embedded-captions/references/typography-presets.md +63 -0
  49. package/.agents/skills/embedded-captions/scripts/audio-envelope.cjs +95 -0
  50. package/.agents/skills/embedded-captions/scripts/check-occlusion.cjs +250 -0
  51. package/.agents/skills/embedded-captions/scripts/check-overflow.cjs +194 -0
  52. package/.agents/skills/embedded-captions/scripts/check-rail-climax.cjs +233 -0
  53. package/.agents/skills/embedded-captions/scripts/check-timing.cjs +173 -0
  54. package/.agents/skills/embedded-captions/scripts/fill-timings.cjs +124 -0
  55. package/.agents/skills/embedded-captions/scripts/fit-fonts.cjs +158 -0
  56. package/.agents/skills/embedded-captions/scripts/gen-stroke-path.py +46 -0
  57. package/.agents/skills/embedded-captions/scripts/inject-fonts.cjs +169 -0
  58. package/.agents/skills/embedded-captions/scripts/lib-dna.cjs +201 -0
  59. package/.agents/skills/embedded-captions/scripts/make-cinematic.cjs +1205 -0
  60. package/.agents/skills/embedded-captions/scripts/make-composition.cjs +404 -0
  61. package/.agents/skills/embedded-captions/scripts/make-theme.cjs +8781 -0
  62. package/.agents/skills/embedded-captions/scripts/matte.cjs +294 -0
  63. package/.agents/skills/embedded-captions/scripts/measure-layout.cjs +293 -0
  64. package/.agents/skills/embedded-captions/scripts/prepare.sh +39 -0
  65. package/.agents/skills/embedded-captions/scripts/preview-frames.cjs +268 -0
  66. package/.agents/skills/embedded-captions/scripts/render-and-composite.sh +509 -0
  67. package/.agents/skills/embedded-captions/scripts/render-theme.sh +34 -0
  68. package/.agents/skills/embedded-captions/scripts/safe-zones.cjs +813 -0
  69. package/.agents/skills/embedded-captions/scripts/transcribe.cjs +349 -0
  70. package/.agents/skills/embedded-captions/themes/PORTING.md +49 -0
  71. package/.agents/skills/embedded-captions/themes/README.md +244 -0
  72. package/.agents/skills/embedded-captions/themes/anchor.json +27 -0
  73. package/.agents/skills/embedded-captions/themes/arcade.json +51 -0
  74. package/.agents/skills/embedded-captions/themes/aurora.json +41 -0
  75. package/.agents/skills/embedded-captions/themes/biolume.json +35 -0
  76. package/.agents/skills/embedded-captions/themes/brush.json +74 -0
  77. package/.agents/skills/embedded-captions/themes/chalkboard.json +52 -0
  78. package/.agents/skills/embedded-captions/themes/dossier.json +56 -0
  79. package/.agents/skills/embedded-captions/themes/graffiti.json +62 -0
  80. package/.agents/skills/embedded-captions/themes/hologram.json +41 -0
  81. package/.agents/skills/embedded-captions/themes/inkwater.json +43 -0
  82. package/.agents/skills/embedded-captions/themes/laser.json +46 -0
  83. package/.agents/skills/embedded-captions/themes/lastpage.json +33 -0
  84. package/.agents/skills/embedded-captions/themes/neonsign.json +53 -0
  85. package/.agents/skills/embedded-captions/themes/nightcity.json +56 -0
  86. package/.agents/skills/embedded-captions/themes/ordnance.json +54 -0
  87. package/.agents/skills/embedded-captions/themes/papercut.json +37 -0
  88. package/.agents/skills/embedded-captions/themes/popup.json +46 -0
  89. package/.agents/skills/embedded-captions/themes/ransom.json +62 -0
  90. package/.agents/skills/embedded-captions/themes/scoreboard.json +54 -0
  91. package/.agents/skills/embedded-captions/themes/spectrum.json +46 -0
  92. package/.agents/skills/embedded-captions/themes/stardust.json +29 -0
  93. package/.agents/skills/embedded-captions/themes/stomp.json +43 -0
  94. package/.agents/skills/embedded-captions/themes/terminal.json +49 -0
  95. package/.agents/skills/embedded-captions/themes/thunder.json +44 -0
  96. package/.agents/skills/embedded-captions/themes/transit.json +44 -0
  97. package/.agents/skills/embedded-captions/themes/vhs.json +47 -0
  98. package/.agents/skills/faceless-explainer/SKILL.md +209 -0
  99. package/.agents/skills/faceless-explainer/references/cut-catalog.md +215 -0
  100. package/.agents/skills/faceless-explainer/references/motion-language.md +156 -0
  101. package/.agents/skills/faceless-explainer/references/story-design.md +248 -0
  102. package/.agents/skills/faceless-explainer/references/visual-design.md +146 -0
  103. package/.agents/skills/faceless-explainer/scripts/assemble-index.mjs +570 -0
  104. package/.agents/skills/faceless-explainer/scripts/audio.mjs +260 -0
  105. package/.agents/skills/faceless-explainer/scripts/build-frame.mjs +536 -0
  106. package/.agents/skills/faceless-explainer/scripts/captions.mjs +508 -0
  107. package/.agents/skills/faceless-explainer/scripts/lib/assets.mjs +55 -0
  108. package/.agents/skills/faceless-explainer/scripts/lib/dimensions.mjs +45 -0
  109. package/.agents/skills/faceless-explainer/scripts/lib/storyboard.mjs +249 -0
  110. package/.agents/skills/faceless-explainer/scripts/lib/tokens.mjs +204 -0
  111. package/.agents/skills/faceless-explainer/scripts/lib/transition-registry.mjs +38 -0
  112. package/.agents/skills/faceless-explainer/scripts/lib/transitions.json +71 -0
  113. package/.agents/skills/faceless-explainer/scripts/transitions.mjs +320 -0
  114. package/.agents/skills/faceless-explainer/sub-agents/frame-worker.md +75 -0
  115. package/.agents/skills/flockposter/LICENSE +17 -0
  116. package/.agents/skills/flockposter/README.md +72 -0
  117. package/.agents/skills/flockposter/SKILL.md +562 -0
  118. package/.agents/skills/flockposter/examples/cli-instagram-reel.sh +21 -0
  119. package/.agents/skills/flockposter/examples/cli-multi-platform.json +69 -0
  120. package/.agents/skills/flockposter/examples/cli-tiktok-upload-only.sh +22 -0
  121. package/.agents/skills/flockposter/examples/cli-x-thread.sh +17 -0
  122. package/.agents/skills/flockposter/examples/cli-youtube-short.sh +21 -0
  123. package/.agents/skills/flockposter/examples/public-api-instagram-reel.json +28 -0
  124. package/.agents/skills/general-video/SKILL.md +143 -0
  125. package/.agents/skills/hyperframes/SKILL.md +160 -0
  126. package/.agents/skills/hyperframes-animation/SKILL.md +84 -0
  127. package/.agents/skills/hyperframes-animation/adapters/animate-text.md +64 -0
  128. package/.agents/skills/hyperframes-animation/adapters/animejs.md +114 -0
  129. package/.agents/skills/hyperframes-animation/adapters/css-animations.md +143 -0
  130. package/.agents/skills/hyperframes-animation/adapters/gsap-easing-and-stagger.md +118 -0
  131. package/.agents/skills/hyperframes-animation/adapters/gsap-timeline-and-labels.md +96 -0
  132. package/.agents/skills/hyperframes-animation/adapters/gsap-transforms-and-perf.md +96 -0
  133. package/.agents/skills/hyperframes-animation/adapters/gsap.md +105 -0
  134. package/.agents/skills/hyperframes-animation/adapters/html-in-canvas-patterns.md +507 -0
  135. package/.agents/skills/hyperframes-animation/adapters/lottie.md +117 -0
  136. package/.agents/skills/hyperframes-animation/adapters/three.md +131 -0
  137. package/.agents/skills/hyperframes-animation/adapters/typegpu.md +178 -0
  138. package/.agents/skills/hyperframes-animation/adapters/waapi.md +101 -0
  139. package/.agents/skills/hyperframes-animation/blueprints/comparison-split.md +27 -0
  140. package/.agents/skills/hyperframes-animation/blueprints/constellation-hub.md +44 -0
  141. package/.agents/skills/hyperframes-animation/blueprints/cta-morph-press.md +28 -0
  142. package/.agents/skills/hyperframes-animation/blueprints/cursor-ui-demo.md +57 -0
  143. package/.agents/skills/hyperframes-animation/blueprints/dataviz-countup.md +46 -0
  144. package/.agents/skills/hyperframes-animation/blueprints/device-surface-showcase.md +53 -0
  145. package/.agents/skills/hyperframes-animation/blueprints/grid-card-assemble.md +66 -0
  146. package/.agents/skills/hyperframes-animation/blueprints/kinetic-type-beats.md +78 -0
  147. package/.agents/skills/hyperframes-animation/blueprints/logo-assemble-lockup.md +69 -0
  148. package/.agents/skills/hyperframes-animation/blueprints/overwhelm-surround.md +28 -0
  149. package/.agents/skills/hyperframes-animation/blueprints/spatial-pan-stations.md +37 -0
  150. package/.agents/skills/hyperframes-animation/blueprints/ticker-takeover.md +29 -0
  151. package/.agents/skills/hyperframes-animation/blueprints/titlecard-reveal.md +42 -0
  152. package/.agents/skills/hyperframes-animation/blueprints/typewriter-reveal.md +51 -0
  153. package/.agents/skills/hyperframes-animation/blueprints/video-text-pivot.md +30 -0
  154. package/.agents/skills/hyperframes-animation/blueprints-index.md +146 -0
  155. package/.agents/skills/hyperframes-animation/examples/assets/avatars/02.avif +0 -0
  156. package/.agents/skills/hyperframes-animation/examples/assets/brands/github.avif +0 -0
  157. package/.agents/skills/hyperframes-animation/examples/assets/brands/nvidia.avif +0 -0
  158. package/.agents/skills/hyperframes-animation/examples/assets/brands/visa.avif +0 -0
  159. package/.agents/skills/hyperframes-animation/examples/assets/brands/zoominfo.avif +0 -0
  160. package/.agents/skills/hyperframes-animation/examples/brand-reveal-assemble-zoom.html +382 -0
  161. package/.agents/skills/hyperframes-animation/examples/comparison-split-cards.html +649 -0
  162. package/.agents/skills/hyperframes-animation/examples/concept-demo-decode-pan.html +520 -0
  163. package/.agents/skills/hyperframes-animation/examples/cta-morph-press.html +468 -0
  164. package/.agents/skills/hyperframes-animation/examples/cta-orbit-collapse.html +1298 -0
  165. package/.agents/skills/hyperframes-animation/examples/demo-page-scroll-spotlight.html +759 -0
  166. package/.agents/skills/hyperframes-animation/examples/hook-counter-burst.html +729 -0
  167. package/.agents/skills/hyperframes-animation/examples/messaging-multi-phrase.html +352 -0
  168. package/.agents/skills/hyperframes-animation/examples/metric-video-text-pivot.html +779 -0
  169. package/.agents/skills/hyperframes-animation/examples/problem-mockup-overwhelm.html +1374 -0
  170. package/.agents/skills/hyperframes-animation/examples/proof-logo-chain.html +861 -0
  171. package/.agents/skills/hyperframes-animation/examples/takeover-ticker-displace.html +347 -0
  172. package/.agents/skills/hyperframes-animation/examples/workflow-approve-press.html +606 -0
  173. package/.agents/skills/hyperframes-animation/rules/3d-page-scroll.md +227 -0
  174. package/.agents/skills/hyperframes-animation/rules/3d-text-depth-layers.md +297 -0
  175. package/.agents/skills/hyperframes-animation/rules/ai-tracking-box.md +382 -0
  176. package/.agents/skills/hyperframes-animation/rules/ambient-glow-bloom.md +305 -0
  177. package/.agents/skills/hyperframes-animation/rules/asr-keyword-glow.md +286 -0
  178. package/.agents/skills/hyperframes-animation/rules/avatar-cloud-network.md +371 -0
  179. package/.agents/skills/hyperframes-animation/rules/camera-cursor-tracking.md +246 -0
  180. package/.agents/skills/hyperframes-animation/rules/card-morph-anchor.md +267 -0
  181. package/.agents/skills/hyperframes-animation/rules/center-outward-expansion.md +227 -0
  182. package/.agents/skills/hyperframes-animation/rules/context-sensitive-cursor.md +257 -0
  183. package/.agents/skills/hyperframes-animation/rules/coordinate-target-zoom.md +332 -0
  184. package/.agents/skills/hyperframes-animation/rules/counting-dynamic-scale.md +283 -0
  185. package/.agents/skills/hyperframes-animation/rules/css-marker-patterns.md +373 -0
  186. package/.agents/skills/hyperframes-animation/rules/cursor-click-ripple.md +262 -0
  187. package/.agents/skills/hyperframes-animation/rules/depth-of-field-blur.md +313 -0
  188. package/.agents/skills/hyperframes-animation/rules/depth-scatter-assemble.md +303 -0
  189. package/.agents/skills/hyperframes-animation/rules/discrete-text-sequence.md +273 -0
  190. package/.agents/skills/hyperframes-animation/rules/dynamic-content-sequencing.md +307 -0
  191. package/.agents/skills/hyperframes-animation/rules/gsap-effects.md +299 -0
  192. package/.agents/skills/hyperframes-animation/rules/hacker-flip-3d.md +223 -0
  193. package/.agents/skills/hyperframes-animation/rules/kinetic-beat-slam.md +183 -0
  194. package/.agents/skills/hyperframes-animation/rules/motion-blur-streak.md +328 -0
  195. package/.agents/skills/hyperframes-animation/rules/multi-phase-camera.md +273 -0
  196. package/.agents/skills/hyperframes-animation/rules/orbit-3d-entry.md +301 -0
  197. package/.agents/skills/hyperframes-animation/rules/physics-press-reaction.md +350 -0
  198. package/.agents/skills/hyperframes-animation/rules/press-release-spring.md +296 -0
  199. package/.agents/skills/hyperframes-animation/rules/reactive-displacement.md +277 -0
  200. package/.agents/skills/hyperframes-animation/rules/scale-swap-transition.md +298 -0
  201. package/.agents/skills/hyperframes-animation/rules/sine-wave-loop.md +278 -0
  202. package/.agents/skills/hyperframes-animation/rules/split-tilt-cards.md +277 -0
  203. package/.agents/skills/hyperframes-animation/rules/spring-pop-entrance.md +273 -0
  204. package/.agents/skills/hyperframes-animation/rules/stat-bars-and-fills.md +156 -0
  205. package/.agents/skills/hyperframes-animation/rules/svg-icon-enrichment.md +329 -0
  206. package/.agents/skills/hyperframes-animation/rules/svg-path-draw.md +274 -0
  207. package/.agents/skills/hyperframes-animation/rules/vertical-spring-ticker.md +239 -0
  208. package/.agents/skills/hyperframes-animation/rules/viewport-change.md +349 -0
  209. package/.agents/skills/hyperframes-animation/rules-index.md +86 -0
  210. package/.agents/skills/hyperframes-animation/scripts/animation-map.mjs +606 -0
  211. package/.agents/skills/hyperframes-animation/scripts/package-loader.mjs +288 -0
  212. package/.agents/skills/hyperframes-animation/scripts/package-loader.test.mjs +62 -0
  213. package/.agents/skills/hyperframes-animation/techniques.md +507 -0
  214. package/.agents/skills/hyperframes-animation/transitions/TRANSITION-REGISTRY.md +167 -0
  215. package/.agents/skills/hyperframes-animation/transitions/catalog.md +127 -0
  216. package/.agents/skills/hyperframes-animation/transitions/css-3d.md +12 -0
  217. package/.agents/skills/hyperframes-animation/transitions/css-blur.md +51 -0
  218. package/.agents/skills/hyperframes-animation/transitions/css-cover.md +43 -0
  219. package/.agents/skills/hyperframes-animation/transitions/css-destruction.md +95 -0
  220. package/.agents/skills/hyperframes-animation/transitions/css-dissolve.md +66 -0
  221. package/.agents/skills/hyperframes-animation/transitions/css-distortion.md +45 -0
  222. package/.agents/skills/hyperframes-animation/transitions/css-grid.md +10 -0
  223. package/.agents/skills/hyperframes-animation/transitions/css-light.md +49 -0
  224. package/.agents/skills/hyperframes-animation/transitions/css-mechanical.md +30 -0
  225. package/.agents/skills/hyperframes-animation/transitions/css-other.md +25 -0
  226. package/.agents/skills/hyperframes-animation/transitions/css-push.md +41 -0
  227. package/.agents/skills/hyperframes-animation/transitions/css-radial.md +37 -0
  228. package/.agents/skills/hyperframes-animation/transitions/css-scale.md +24 -0
  229. package/.agents/skills/hyperframes-animation/transitions/overview.md +153 -0
  230. package/.agents/skills/hyperframes-cli/SKILL.md +113 -0
  231. package/.agents/skills/hyperframes-cli/references/doctor-browser.md +45 -0
  232. package/.agents/skills/hyperframes-cli/references/init-and-scaffold.md +55 -0
  233. package/.agents/skills/hyperframes-cli/references/lambda.md +132 -0
  234. package/.agents/skills/hyperframes-cli/references/lint-validate-inspect.md +121 -0
  235. package/.agents/skills/hyperframes-cli/references/preview-render.md +149 -0
  236. package/.agents/skills/hyperframes-cli/references/upgrade-info-misc.md +75 -0
  237. package/.agents/skills/hyperframes-core/SKILL.md +78 -0
  238. package/.agents/skills/hyperframes-core/references/composition-patterns.md +263 -0
  239. package/.agents/skills/hyperframes-core/references/data-attributes.md +70 -0
  240. package/.agents/skills/hyperframes-core/references/determinism-rules.md +68 -0
  241. package/.agents/skills/hyperframes-core/references/full-screen-motion.md +62 -0
  242. package/.agents/skills/hyperframes-core/references/minimal-composition.md +66 -0
  243. package/.agents/skills/hyperframes-core/references/script-format.md +49 -0
  244. package/.agents/skills/hyperframes-core/references/storyboard-format.md +95 -0
  245. package/.agents/skills/hyperframes-core/references/sub-compositions.md +237 -0
  246. package/.agents/skills/hyperframes-core/references/subagent-dispatch.md +41 -0
  247. package/.agents/skills/hyperframes-core/references/tailwind.md +125 -0
  248. package/.agents/skills/hyperframes-core/references/tracks-and-clips.md +76 -0
  249. package/.agents/skills/hyperframes-core/references/variables-and-media.md +90 -0
  250. package/.agents/skills/hyperframes-creative/SKILL.md +70 -0
  251. package/.agents/skills/hyperframes-creative/frame-presets/biennale-yellow/FRAME.md +289 -0
  252. package/.agents/skills/hyperframes-creative/frame-presets/biennale-yellow/caption-skin.html +221 -0
  253. package/.agents/skills/hyperframes-creative/frame-presets/biennale-yellow/frame-showcase.html +1214 -0
  254. package/.agents/skills/hyperframes-creative/frame-presets/blockframe/FRAME.md +275 -0
  255. package/.agents/skills/hyperframes-creative/frame-presets/blockframe/caption-skin.html +224 -0
  256. package/.agents/skills/hyperframes-creative/frame-presets/blockframe/frame-showcase.html +1347 -0
  257. package/.agents/skills/hyperframes-creative/frame-presets/blue-professional/FRAME.md +307 -0
  258. package/.agents/skills/hyperframes-creative/frame-presets/blue-professional/caption-skin.html +223 -0
  259. package/.agents/skills/hyperframes-creative/frame-presets/blue-professional/frame-showcase.html +1372 -0
  260. package/.agents/skills/hyperframes-creative/frame-presets/bold-poster/FRAME.md +275 -0
  261. package/.agents/skills/hyperframes-creative/frame-presets/bold-poster/caption-skin.html +230 -0
  262. package/.agents/skills/hyperframes-creative/frame-presets/bold-poster/frame-showcase.html +1140 -0
  263. package/.agents/skills/hyperframes-creative/frame-presets/broadside/FRAME.md +284 -0
  264. package/.agents/skills/hyperframes-creative/frame-presets/broadside/caption-skin.html +225 -0
  265. package/.agents/skills/hyperframes-creative/frame-presets/broadside/frame-showcase.html +1166 -0
  266. package/.agents/skills/hyperframes-creative/frame-presets/capsule/FRAME.md +284 -0
  267. package/.agents/skills/hyperframes-creative/frame-presets/capsule/caption-skin.html +224 -0
  268. package/.agents/skills/hyperframes-creative/frame-presets/capsule/frame-showcase.html +1465 -0
  269. package/.agents/skills/hyperframes-creative/frame-presets/cartesian/FRAME.md +278 -0
  270. package/.agents/skills/hyperframes-creative/frame-presets/cartesian/caption-skin.html +222 -0
  271. package/.agents/skills/hyperframes-creative/frame-presets/cartesian/frame-showcase.html +1263 -0
  272. package/.agents/skills/hyperframes-creative/frame-presets/claude/FRAME.md +277 -0
  273. package/.agents/skills/hyperframes-creative/frame-presets/claude/caption-skin.html +224 -0
  274. package/.agents/skills/hyperframes-creative/frame-presets/claude/frame-showcase.html +1439 -0
  275. package/.agents/skills/hyperframes-creative/frame-presets/cobalt-grid/FRAME.md +265 -0
  276. package/.agents/skills/hyperframes-creative/frame-presets/cobalt-grid/caption-skin.html +238 -0
  277. package/.agents/skills/hyperframes-creative/frame-presets/cobalt-grid/frame-showcase.html +1468 -0
  278. package/.agents/skills/hyperframes-creative/frame-presets/coral/FRAME.md +314 -0
  279. package/.agents/skills/hyperframes-creative/frame-presets/coral/caption-skin.html +226 -0
  280. package/.agents/skills/hyperframes-creative/frame-presets/coral/frame-showcase.html +1268 -0
  281. package/.agents/skills/hyperframes-creative/frame-presets/creative-mode/FRAME.md +333 -0
  282. package/.agents/skills/hyperframes-creative/frame-presets/creative-mode/caption-skin.html +227 -0
  283. package/.agents/skills/hyperframes-creative/frame-presets/creative-mode/frame-showcase.html +1330 -0
  284. package/.agents/skills/hyperframes-creative/frame-presets/daisy-days/FRAME.md +274 -0
  285. package/.agents/skills/hyperframes-creative/frame-presets/daisy-days/caption-skin.html +230 -0
  286. package/.agents/skills/hyperframes-creative/frame-presets/daisy-days/frame-showcase.html +1444 -0
  287. package/.agents/skills/hyperframes-creative/frame-presets/editorial-forest/FRAME.md +265 -0
  288. package/.agents/skills/hyperframes-creative/frame-presets/editorial-forest/caption-skin.html +223 -0
  289. package/.agents/skills/hyperframes-creative/frame-presets/editorial-forest/frame-showcase.html +1273 -0
  290. package/.agents/skills/hyperframes-creative/palettes/bold-energetic.md +14 -0
  291. package/.agents/skills/hyperframes-creative/palettes/clean-corporate.md +14 -0
  292. package/.agents/skills/hyperframes-creative/palettes/dark-premium.md +14 -0
  293. package/.agents/skills/hyperframes-creative/palettes/jewel-rich.md +14 -0
  294. package/.agents/skills/hyperframes-creative/palettes/monochrome.md +14 -0
  295. package/.agents/skills/hyperframes-creative/palettes/nature-earth.md +14 -0
  296. package/.agents/skills/hyperframes-creative/palettes/neon-electric.md +14 -0
  297. package/.agents/skills/hyperframes-creative/palettes/pastel-soft.md +14 -0
  298. package/.agents/skills/hyperframes-creative/palettes/warm-editorial.md +14 -0
  299. package/.agents/skills/hyperframes-creative/references/audio-reactive.md +76 -0
  300. package/.agents/skills/hyperframes-creative/references/beat-direction.md +164 -0
  301. package/.agents/skills/hyperframes-creative/references/composition-patterns.md +199 -0
  302. package/.agents/skills/hyperframes-creative/references/data-in-motion.md +19 -0
  303. package/.agents/skills/hyperframes-creative/references/design-adherence.md +19 -0
  304. package/.agents/skills/hyperframes-creative/references/design-picker.md +123 -0
  305. package/.agents/skills/hyperframes-creative/references/design-spec.md +55 -0
  306. package/.agents/skills/hyperframes-creative/references/house-style.md +73 -0
  307. package/.agents/skills/hyperframes-creative/references/motion-principles.md +150 -0
  308. package/.agents/skills/hyperframes-creative/references/narration.md +92 -0
  309. package/.agents/skills/hyperframes-creative/references/prompt-expansion.md +68 -0
  310. package/.agents/skills/hyperframes-creative/references/typography.md +218 -0
  311. package/.agents/skills/hyperframes-creative/references/video-composition.md +63 -0
  312. package/.agents/skills/hyperframes-creative/references/visual-styles.md +457 -0
  313. package/.agents/skills/hyperframes-creative/scripts/contrast-report.mjs +353 -0
  314. package/.agents/skills/hyperframes-creative/scripts/extract-audio-data.py +188 -0
  315. package/.agents/skills/hyperframes-creative/scripts/package-loader.mjs +288 -0
  316. package/.agents/skills/hyperframes-creative/scripts/package-loader.test.mjs +62 -0
  317. package/.agents/skills/hyperframes-creative/templates/design-picker.html +1432 -0
  318. package/.agents/skills/hyperframes-keyframes/SKILL.md +237 -0
  319. package/.agents/skills/hyperframes-keyframes/agents/openai.yaml +4 -0
  320. package/.agents/skills/hyperframes-keyframes/references/keyframe-patterns.md +106 -0
  321. package/.agents/skills/motion-graphics/SKILL.md +172 -0
  322. package/.agents/skills/motion-graphics/agents/builder.md +40 -0
  323. package/.agents/skills/motion-graphics/agents/director.md +53 -0
  324. package/.agents/skills/motion-graphics/agents/finalize.md +17 -0
  325. package/.agents/skills/motion-graphics/catalog-map.md +40 -0
  326. package/.agents/skills/motion-graphics/categories/asset-fusion/module.md +37 -0
  327. package/.agents/skills/motion-graphics/categories/charts/module.md +21 -0
  328. package/.agents/skills/motion-graphics/categories/kinetic-type/module.md +19 -0
  329. package/.agents/skills/motion-graphics/categories/logo-reveal/module.md +17 -0
  330. package/.agents/skills/motion-graphics/categories/lower-thirds/module.md +16 -0
  331. package/.agents/skills/motion-graphics/categories/maps/bake-basemap.mjs +273 -0
  332. package/.agents/skills/motion-graphics/categories/maps/module.md +61 -0
  333. package/.agents/skills/motion-graphics/categories/news/module.md +56 -0
  334. package/.agents/skills/motion-graphics/categories/stat/module.md +21 -0
  335. package/.agents/skills/motion-graphics/categories/tweet/module.md +16 -0
  336. package/.agents/skills/motion-graphics/categories/webpage/module.md +21 -0
  337. package/.agents/skills/motion-graphics/grounding/PROTOCOL.md +64 -0
  338. package/.agents/skills/motion-graphics/grounding/locate.mjs +227 -0
  339. package/.agents/skills/motion-graphics/phases/source/guide.md +21 -0
  340. package/.agents/skills/motion-graphics/references/builder-contract.md +38 -0
  341. package/.agents/skills/motion-graphics/references/motion-vocabulary.md +43 -0
  342. package/.agents/skills/motion-graphics/references/shot-plan-ir.md +54 -0
  343. package/.agents/skills/motion-graphics/samples/asset-fusion/_ref-circle-highlight.html +306 -0
  344. package/.agents/skills/product-launch-video/SKILL.md +208 -0
  345. package/.agents/skills/product-launch-video/references/cut-catalog.md +220 -0
  346. package/.agents/skills/product-launch-video/references/motion-language.md +156 -0
  347. package/.agents/skills/product-launch-video/references/story-design.md +373 -0
  348. package/.agents/skills/product-launch-video/references/visual-design.md +126 -0
  349. package/.agents/skills/product-launch-video/scripts/assemble-index.mjs +570 -0
  350. package/.agents/skills/product-launch-video/scripts/audio.mjs +260 -0
  351. package/.agents/skills/product-launch-video/scripts/build-frame.mjs +536 -0
  352. package/.agents/skills/product-launch-video/scripts/captions.mjs +508 -0
  353. package/.agents/skills/product-launch-video/scripts/lib/assets.mjs +55 -0
  354. package/.agents/skills/product-launch-video/scripts/lib/dimensions.mjs +45 -0
  355. package/.agents/skills/product-launch-video/scripts/lib/pad-frame-duration.mjs +36 -0
  356. package/.agents/skills/product-launch-video/scripts/lib/pad-frame-duration.test.mjs +76 -0
  357. package/.agents/skills/product-launch-video/scripts/lib/storyboard.mjs +249 -0
  358. package/.agents/skills/product-launch-video/scripts/lib/tokens.mjs +204 -0
  359. package/.agents/skills/product-launch-video/scripts/lib/transition-registry.mjs +38 -0
  360. package/.agents/skills/product-launch-video/scripts/lib/transitions.json +71 -0
  361. package/.agents/skills/product-launch-video/scripts/stage-assets.mjs +39 -0
  362. package/.agents/skills/product-launch-video/scripts/transitions.mjs +327 -0
  363. package/.agents/skills/product-launch-video/sub-agents/frame-worker.md +75 -0
  364. package/.agents/skills/slideshow/SKILL.md +550 -0
  365. package/.agents/skills/slideshow/references/standalone-harness.md +1020 -0
  366. package/.agents/skills/talking-head-recut/NOTICE.md +39 -0
  367. package/.agents/skills/talking-head-recut/SKILL.md +1195 -0
  368. package/.agents/skills/talking-head-recut/assets/vendor/gsap.min.js +10 -0
  369. package/.agents/skills/talking-head-recut/references/DESIGN_INDEX.md +145 -0
  370. package/.agents/skills/talking-head-recut/references/frames/clean.html +92 -0
  371. package/.agents/skills/talking-head-recut/references/frames/hairline.html +171 -0
  372. package/.agents/skills/talking-head-recut/references/frames/polaroid.html +131 -0
  373. package/.agents/skills/talking-head-recut/references/layouts/overlay.html +164 -0
  374. package/.agents/skills/talking-head-recut/references/layouts/pip.html +143 -0
  375. package/.agents/skills/talking-head-recut/references/layouts/split.html +121 -0
  376. package/.agents/skills/talking-head-recut/references/layouts/stack.html +109 -0
  377. package/.agents/skills/talking-head-recut/references/styles/academic.html +172 -0
  378. package/.agents/skills/talking-head-recut/references/styles/audit.html +170 -0
  379. package/.agents/skills/talking-head-recut/references/styles/editorial.html +189 -0
  380. package/.agents/skills/talking-head-recut/references/styles/geom.html +181 -0
  381. package/.agents/skills/talking-head-recut/references/styles/minimal.html +130 -0
  382. package/.agents/skills/talking-head-recut/references/styles/spotlight.html +142 -0
  383. package/.agents/skills/talking-head-recut/references/styles/swiss.html +188 -0
  384. package/.agents/skills/talking-head-recut/references/styles/terminal.html +196 -0
  385. package/.agents/skills/talking-head-recut/references/styles/whiteboard.html +170 -0
  386. package/.agents/skills/talking-head-recut/references/styles/xhs.html +206 -0
  387. package/.agents/skills/vidfarm-media/SKILL.md +85 -0
  388. package/.agents/skills/vidfarm-media/references/tts.md +54 -0
  389. package/.agents/skills/vidfarm-media/scripts/audio.mjs +628 -0
  390. package/.agents/skills/vidfarm-media/scripts/wait-bgm.mjs +31 -0
  391. package/.agents/skills/website-to-video/SKILL.md +145 -0
  392. package/.agents/skills/website-to-video/assets/sfx/CREDITS.md +35 -0
  393. package/.agents/skills/website-to-video/assets/sfx/manifest.json +97 -0
  394. package/.agents/skills/website-to-video/references/beat-builder-guide.md +263 -0
  395. package/.agents/skills/website-to-video/references/capabilities.md +713 -0
  396. package/.agents/skills/website-to-video/references/step-0-capture.md +55 -0
  397. package/.agents/skills/website-to-video/references/step-1-design.md +333 -0
  398. package/.agents/skills/website-to-video/references/step-2-brief.md +178 -0
  399. package/.agents/skills/website-to-video/references/step-3-storyboard.md +572 -0
  400. package/.agents/skills/website-to-video/references/step-4-vo.md +225 -0
  401. package/.agents/skills/website-to-video/references/step-5-build.md +483 -0
  402. package/.agents/skills/website-to-video/references/step-6-validate.md +341 -0
  403. package/.agents/skills/website-to-video/scripts/w2h-verify.mjs +759 -0
  404. package/SKILL.director.md +37 -0
  405. package/SKILL.platform.md +6 -1
  406. package/demo/dist/app.css +1 -1
  407. package/demo/dist/app.js +369 -85
  408. package/dist/src/app.js +630 -140
  409. package/dist/src/cli.js +529 -12
  410. package/dist/src/composition-runtime.js +262 -3
  411. package/dist/src/config.js +13 -0
  412. package/dist/src/devcli/doctor.js +192 -0
  413. package/dist/src/devcli/hyperframes-cli.js +118 -0
  414. package/dist/src/devcli/skills.js +476 -0
  415. package/dist/src/devcli/stills.js +249 -0
  416. package/dist/src/editor-chat.js +256 -0
  417. package/dist/src/frontend/homepage-client.js +50 -1
  418. package/dist/src/frontend/homepage-shared.js +197 -0
  419. package/dist/src/frontend/homepage-store.js +10 -1
  420. package/dist/src/frontend/homepage-view.js +43 -5
  421. package/dist/src/homepage.js +51 -18
  422. package/dist/src/hyperframes/composition.js +5 -5
  423. package/dist/src/services/composition-lint.js +199 -0
  424. package/dist/src/services/hyperframes.js +67 -13
  425. package/dist/src/services/serverless-records.js +9 -0
  426. package/package.json +2 -1
  427. package/public/assets/homepage-client-app.js +23 -23
@@ -0,0 +1,713 @@
1
+ # HyperFrames — Complete Capabilities Inventory
2
+
3
+ Everything possible in HyperFrames as of today's workspace, synthesized from direct source reads of all 7 packages, 16 skills, and the full registry.
4
+
5
+ > **How to read this file.** Scan the **Table of Contents** below first. **Do NOT read this file linearly** — it is a 700+ line inventory; reading top-to-bottom every session wastes context. When the storyboard or a specific beat needs a particular capability (HTML-in-Canvas, shader transitions, audio-reactive, dynamic counters, etc.), jump straight to that section.
6
+
7
+ You are NOT limited to what was captured from the website. You can create shaders from scratch, search for and download registry blocks, build Three.js scenes, write custom WebGL effects, use any web API — anything a browser can render.
8
+
9
+ For implementation patterns (working code), see `techniques.md`. This file is the WHAT; techniques.md is the HOW.
10
+
11
+ ## Essential Rules
12
+
13
+ - **Deterministic:** No `Math.random()`, no `Date.now()`, no `requestAnimationFrame`, no `repeat: -1`. The render engine seeks to exact timestamps.
14
+ - **Timeline contract:** `window.__timelines["composition-id"] = tl` must be set synchronously. The timeline length defines the composition duration.
15
+ - **Sub-compositions:** External `.html` files loaded via `data-composition-src`. Auto-nested timelines, scoped CSS, scoped scripts.
16
+ - **Linter:** 60+ rules. Run `npx hyperframes lint` before render. Catches missing timelines, overlapping clips, broken paths, GSAP errors.
17
+
18
+ ## Table of Contents
19
+
20
+ | # | Section | What it covers |
21
+ | --- | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
22
+ | 1 | **Composition fundamentals** | Data attributes, timeline contract, resolution presets (1080p, 4K, portrait, square, custom) |
23
+ | 2 | **Animation engines (6 adapters)** | GSAP + 15 plugins, Anime.js v4, CSS @keyframes, WAAPI, Lottie (lottie-web + dotlottie), Three.js (hf-seek event) |
24
+ | 3 | **Shader transitions (14 WebGL)** | domain-warp, ridged-burn, whip-pan, sdf-iris, ripple-waves, gravitational-lens, cinematic-zoom, chromatic-split, swirl-vortex, thermal-distortion, flash-through-white, cross-warp-morph, light-leak, glitch — plus custom GLSL |
25
+ | 4 | **CSS scene transitions (30+)** | Push/slide, scale/zoom, radial/clip, 3D flip, blur, dissolve, cover/blinds, light leak/burn, distortion/glitch, mechanical/shutter, grid dissolve, destruction/burn, VHS/gravity/morph — 6 timing presets |
26
+ | 5 | **Visual effects + textures** | Text markers (highlight, circle, burst, scribble, sketchout), grain/noise, light leaks, film burn, vignette, glow, paper texture, shimmer sweep |
27
+ | 6 | **Caption techniques** | Per-word karaoke, intensity tiers, 5 exit styles, 6 tone mappings, per-word styling triggers, 7 audio source formats, positioning helpers |
28
+ | 7 | **Audio-reactive animation** | Bass→scale, mid→shape, treble→glow; any GSAP property; band extraction script; banned patterns |
29
+ | 8 | **HTML-in-canvas** | Live DOM as GPU texture (drawElementImage), Three.js planes, WebGL shaders on HTML, 7 VFX blocks (iPhone/MacBook device, liquid, glass, magnetic, portal, shatter, text cursor) |
30
+ | 9 | **Three.js / WebGL custom scenes** | Full 3D: AnimationMixer, custom GLSL, post-processing, GLTF models, lights, cameras, materials — all deterministic via hf-seek |
31
+ | 10 | **SVG / canvas / variable fonts** | SVG path drawing, Canvas 2D procedural art, CSS 3D card, per-word type, variable font axes, character typing, velocity-matched cuts, MotionPath |
32
+ | 11 | **Media: video, audio, TTS** | Video compositing + frame injection, audio mixer (multi-track), Kokoro TTS (54 voices, 9 languages), Whisper/Groq/OpenAI transcription, background removal (u2net) |
33
+ | 12 | **Registry (51 blocks + 4 components + 8 examples)** | Social overlays (8), showcases (5), data viz (2), logo branding (1), 3D/VFX (7), shader transitions (14), transition galleries (13), components (grain, shimmer, pixelate, texture-mask), 8 starter examples |
34
+ | 13 | **CLI (25 commands)** | init, add, catalog, play, preview, publish, render (MP4/WebM/MOV/PNG, HDR, GPU, parallel), lint, validate, inspect, snapshot, capture, tts, transcribe, remove-background, doctor, and more |
35
+ | 14 | **Linter (60+ rules)** | Core, media, GSAP, captions, composition, adapters, textures, fonts — plus async URL checks |
36
+ | 15 | **Player web component** | `<hyperframes-player>` with seek/play/pause API, 11 events, media mirror, runtime auto-inject |
37
+ | 16 | **Engine + Producer** | MP4/WebM/MOV/PNG output, HDR (PQ/HLG), transparency (ProRes), GPU encoding (NVENC/VideoToolbox/VAAPI/QSV), parallel rendering, video frame injection |
38
+ | 17 | **Studio (in-browser NLE)** | Timeline editor, drag/resize clips, asset browser, render queue, lint modal, caption editor, element picker |
39
+ | 18 | **Determinism guarantees** | No Math.random, no Date.now, no RAF, no repeat:-1, no callbacks, synchronous construction |
40
+ | 19 | **Variables / parameterization** | Typed runtime variables (string, color, number, boolean, enum), CLI override, strict validation |
41
+ | 20 | **Sub-compositions** | External file or inline template, auto-nested timelines, scoped CSS, scoped scripts, variable inheritance |
42
+ | 21 | **Global runtime APIs** | 25+ window globals for timelines, player, variables, adapters, hooks |
43
+ | 22 | **Skills (16)** | hyperframes, cli, media, registry, contrast, animation-map, website-to-video, remotion, gsap, animejs, css-animations, waapi, lottie, three, tailwind, contribute-catalog |
44
+ | 23 | **References (15 docs)** | transitions, css-patterns, dynamic-techniques, motion-principles, typography, narration, captions, audio-reactive, transcript-guide, techniques, beat-direction, visual-styles, and more |
45
+ | 24 | **Documentation (27 pages)** | Guides + package docs covering rendering, HDR, html-in-canvas, performance, prompting, troubleshooting, etc. |
46
+
47
+ ---
48
+
49
+ ## 1. Composition fundamentals
50
+
51
+ ### Data attributes recognized by the runtime
52
+
53
+ - **Root composition:** `data-composition-id`, `data-start`, `data-duration`, `data-width`, `data-height`, `data-composition-src` (external sub-comp), `data-composition-duration`, `data-composition-variables` (JSON), `data-variable-values` (override)
54
+ - **Every clip:** `id`, `data-start`, `data-duration`, `data-track-index`, `class="clip"`, optional `data-media-start`, `data-volume`, `data-playback-start`
55
+ - **Sub-composition host:** `data-composition-id`, `data-composition-src` OR inline `<template id="${compId}-template">`
56
+ - **Parser also reads:** `data-type` (composition|text), `data-end`, `data-keyframes` (JSON), `data-x|y|scale|opacity`, `data-color|font-size|font-weight|font-family|text-shadow|outline|highlight*`, `data-layer` (z-index, deprecated for timeline but used for audio mixer layers), `data-resolution`, `data-composition-width|height`
57
+
58
+ ### Timeline contract
59
+
60
+ - `gsap.timeline({ paused: true })` registered on `window.__timelines["<composition-id>"]`
61
+ - Master clock (TransportClock + WebAudioTransport) drives the timeline via `tl.totalTime(t, false)` or `tl.seek(t, false)`
62
+ - Framework auto-nests sub-comp timelines
63
+ - Duration sourced from `data-duration` on root, not from GSAP length
64
+ - Synchronous timeline construction required (no async/await/setTimeout)
65
+ - Looping handled by `<hyperframes-player>`, not GSAP `repeat: -1`
66
+
67
+ ### Resolution presets
68
+
69
+ VALID_CANVAS_RESOLUTIONS: 1920×1080 default, 1080×1920 portrait, 1080×1080 square, 4K, 1440×2560, plus `normalizeResolutionFlag` for `--resolution` CLI flag.
70
+
71
+ ---
72
+
73
+ ## 2. Animation engines (6 deterministic frame adapters)
74
+
75
+ The runtime registers these adapters in order; each implements `discover()` / `seek({time})` / `pause` / `play?` / `revert`:
76
+
77
+ | Adapter | What it drives | How to load | Notable |
78
+ | ---------------------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
79
+ | GSAP (createGsapAdapter) | The primary timeline + all tweens registered on `window.__timelines[<id>]` | CDN `https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js` | Plugins via standard GSAP register; HyperFrames does NOT patch THREE.Clock (uses `__hfThreeTime` instead) |
80
+ | Anime.js v4 (createAnimeJsAdapter) | Anime instances pushed to `window.__hfAnime` | CDN `animejs@4.0.2/lib/anime.iife.min.js` or ESM | Adapter multiplies composition seconds by 1000 for ms |
81
+ | CSS animations (createCssAdapter) | Any element with computed `animation-name` | Declarative `@keyframes` | Falls back to negative `animation-delay` when WAAPI unavailable |
82
+ | WAAPI (createWaapiAdapter) | All Animation objects on document | `element.animate()` | Uses `document.getAnimations()` |
83
+ | Lottie (createLottieAdapter) | `window.__hfLottie` array; supports lottie-web + dotlottie-web | CDN `lottie.min.js` + `@lottiefiles/dotlottie-web` | `goToAndStop(time*1000)` or `setCurrentRawFrameValue` / `seek(%)` |
84
+ | Three.js (createThreeAdapter) | `window.__hfThreeTime` + dispatches `CustomEvent("hf-seek", {detail:{time}})` | ESM CDN `three@0.181.2/+esm` | Composition's render loop listens to `hf-seek`; pattern: `mixer.setTime(time)` |
85
+
86
+ ### GSAP plugins (documented patterns)
87
+
88
+ - **TextPlugin** — text mutation in `tl.call` (skills/gsap/references/effects.md)
89
+ - **MotionPathPlugin** — curve-constrained tweens (skills/hyperframes/references/techniques.md)
90
+ - **CustomEase** — bezier eases imported from Remotion-style timing
91
+ - **ScrollTrigger / Flip / SplitText / Draggable / Inertia / Observer / ScrambleText / CustomWiggle / CustomBounce / ScrollSmoother / GSDevTools** — work natively if loaded and tweens are on the registered paused timeline, but no special HyperFrames adapter
92
+ - Producer injects ScrollTrigger CDN automatically when needed (packages/producer/src/services/htmlCompiler.ts)
93
+
94
+ ---
95
+
96
+ ## 3. Shader transitions — @hyperframes/shader-transitions
97
+
98
+ 14 named WebGL fragment shaders. All share the same uniforms: `u_from`, `u_to`, `u_progress`, `u_resolution`, `u_accent`, `u_accent_dark`, `u_accent_bright`.
99
+
100
+ ### The 14 shaders
101
+
102
+ | Name | Visual | Notes |
103
+ | ------------------- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
104
+ | domain-warp | Multi-octave FBM warps both scenes oppositely; organic dissolve edge with accent flash | Uses NQ noise bundle |
105
+ | ridged-burn | Ridged multifractal mask reveals B; accent → bright → white burn ramp; sparks | NQ |
106
+ | whip-pan | 10-sample horizontal motion blur + lateral crossfade | No noise |
107
+ | sdf-iris | Aspect-corrected circle SDF expansion + accent-tinted glow rings | — |
108
+ | ripple-waves | Radial standing-wave UV displacement + tinted crossfade | — |
109
+ | gravitational-lens | Pinch pull toward center + R/B chromatic separation | — |
110
+ | cinematic-zoom | 12 RGB-offset radial zoom blur samples (chromatic zoom streak) | — |
111
+ | chromatic-split | R/B radial channel shift outward / inward; G fixed | Distinct from CSS chromatic aberration |
112
+ | swirl-vortex | CCW swirl with FBM noise; reciprocal on incoming | NQ |
113
+ | thermal-distortion | Vertical sin + FBM horizontal displacement; warm haze | NQ |
114
+ | flash-through-white | Fade through white midpoint — a visible white flash between scenes | No accent. Use only when the brand specifically calls for a white-flash beat boundary; this is NOT a neutral "default" transition. |
115
+ | cross-warp-morph | FBM vector field displaces both scenes; third FBM biases irregular wipe | NQ |
116
+ | light-leak | Fixed off-frame leak with exponential falloff + accent warmth + ridge flare | Hard-coded leak anchor |
117
+ | glitch | Line displacement + RGB lateral split + scan modulation + posterization + flicker | Deterministic |
118
+
119
+ ### Public API
120
+
121
+ ```js
122
+ HyperShader.init({
123
+ bgColor: "#0b0f14",
124
+ accentColor: "#f59e42",
125
+ scenes: ["scene1", "scene2"],
126
+ transitions: [{ time: 3, shader: "sdf-iris", duration: 0.65, ease: "power2.inOut" }],
127
+ timeline: gsap.timeline({ paused: true }),
128
+ compositionId: "main",
129
+ previewCaptureFps: 30,
130
+ });
131
+ ```
132
+
133
+ - Capability probe: `isHtmlInCanvasCaptureSupported()` (Chrome layoutSubtree/drawElementImage)
134
+ - Tuning: `?__hf_shader_capture_scale=` (0.25–1), `?__hf_shader_loading=` (internal|player|none)
135
+ - Cache: IndexedDB for PNG snapshots; max 2 textured transitions live at once
136
+ - Fallback (`applyFallbackTransition`): smoothstep opacity tween when capture / texImage2D fails
137
+ - Engine mode skips GL/capture when `window.__HF_VIRTUAL_TIME__` set (producer uses metadata)
138
+
139
+ You can also **write custom GLSL shaders from scratch** — any fragment shader works with the standard uniforms.
140
+
141
+ ---
142
+
143
+ ## 4. CSS scene transitions (30+ named patterns)
144
+
145
+ Documented in skills/hyperframes/references/transitions/ across 14 category files. All GSAP-driven, none mixable with shader transitions in same composition.
146
+
147
+ ### By category
148
+
149
+ | Category | Patterns |
150
+ | -------------------------------- | ------------------------------------------------------------------------------------------------ |
151
+ | Push / slide (css-push.md) | Push slide, vertical push, elastic push, squeeze |
152
+ | Scale / zoom (css-scale.md) | Zoom through, zoom out, scale-up swap |
153
+ | Radial / clip (css-radial.md) | Circle iris, diamond iris, diagonal split |
154
+ | 3D (css-3d.md) | 3D card flip, hinge door |
155
+ | Blur (css-blur.md) | Crossfade, blur crossfade, focus pull |
156
+ | Dissolve (css-dissolve.md) | Color dip (gap-to-black), staggered color blocks (2-block, 5-block) |
157
+ | Cover (css-cover.md) | Horizontal blinds, vertical blinds (variable strip counts: 6 / 12 / 20) |
158
+ | Light (css-light.md) | Light leak overlays, overexposure burn, film burn |
159
+ | Distortion (css-distortion.md) | Glitch (CSS — RGB layer jitter), chromatic aberration, ripple |
160
+ | Mechanical (css-mechanical.md) | Shutter (two-half), clock wipe (9-point rotating wedge) |
161
+ | Grid (css-grid.md) | Grid dissolve (12 or 120 cells), grid pixelate wipe |
162
+ | Destruction (css-destruction.md) | Page burn (SVG clip-path + canvas char rim) |
163
+ | Other (css-other.md) | VHS tape (strip-based seeded jitter), gravity drop, morph circle, blur through, directional blur |
164
+ | Rejected | Star iris, tilt-shift, lens flare (don't use — non-CSS-realistic) |
165
+
166
+ ### Timing presets
167
+
168
+ | Preset | duration | ease |
169
+ | -------- | -------- | ---------------------- |
170
+ | snappy | 0.2s | power4.inOut |
171
+ | smooth | 0.4s | power2.inOut |
172
+ | gentle | 0.6s | sine.inOut |
173
+ | dramatic | 0.5s | power3.in → power3.out |
174
+ | instant | 0.15s | expo.inOut |
175
+ | luxe | 0.7s | power1.inOut |
176
+
177
+ ---
178
+
179
+ ## 5. Visual effects + textures
180
+
181
+ ### Marker/emphasis patterns (css-patterns.md)
182
+
183
+ | Mode | What it does | Implementation |
184
+ | --------- | --------------------------------- | ----------------------------------------- |
185
+ | highlight | Yellow bar wipes behind text | CSS bar + GSAP scaleX 0→1 |
186
+ | circle | Hand-drawn red ring around word | CSS border ellipse + back.out scale |
187
+ | burst | 12 radial spikes from word center | DOM line array, --len/--angle vars |
188
+ | scribble | Wavy underline drawn over time | SVG `<path>` quadratic + stroke-dash GSAP |
189
+ | sketchout | Cross-hatch x-out over text | Two 2px rotated lines |
190
+
191
+ ### Grain / noise
192
+
193
+ - **grain-overlay** (registry component): SVG feTurbulence data-URL + CSS keyframe jitter, `steps(1)`, default opacity 0.15
194
+ - **Layered radial-gradient grain** (preferred pattern): no SVG, no canvas-taint, fast everywhere
195
+
196
+ ### Light / film
197
+
198
+ - Light leak transitions (CSS + shader variants)
199
+ - Overexposure burn — `brightness()` ramp + flash overlay
200
+ - Film burn — multi-layer amber/orange/red radials
201
+ - Vignette — radial-gradient overlay
202
+ - Paper texture (in registry/examples/warm-grain/)
203
+
204
+ ### Glow
205
+
206
+ - Caption text glow: textShadow radius keyed to treble bands (always on active words only, never parents)
207
+ - Radial glow backgrounds: CSS gradients / blurred blobs
208
+
209
+ ---
210
+
211
+ ## 6. Caption techniques
212
+
213
+ ### Animation styles
214
+
215
+ - Baseline: per-word karaoke highlight (every energy level)
216
+ - Intensity tiers: accent + glow + 15% scale (high energy) → 3% scale (low energy)
217
+ - Exits by energy (dynamic-techniques.md): scatter, drop, collapse, fade+slide, fade
218
+ - Tone mappings (captions.md): scale-pop `back.out(1.7)`, fade+slide `power3.out`, typewriter, bounce, `elastic.out`, word-by-word
219
+
220
+ ### Per-word styling triggers
221
+
222
+ - Brand/product names
223
+ - ALL CAPS
224
+ - Numbers / stats
225
+ - Emotional keywords
226
+ - CTAs
227
+ - Marker highlight modes (5 listed above)
228
+
229
+ ### Audio sources for caption timing
230
+
231
+ | Source | Format | Granularity |
232
+ | ------------------------------------------ | -------- | ----------------- |
233
+ | hyperframes transcribe (local whisper.cpp) | JSON | Word-level |
234
+ | OpenAI verbose_json | JSON | Word-level |
235
+ | Groq verbose_json | JSON | Word-level |
236
+ | Manually authored | JSON | Word-level |
237
+ | SRT | text | Phrase-level only |
238
+ | VTT | text | Phrase-level only |
239
+ | hyperframes tts → transcribe chain | wav→json | Word-level |
240
+
241
+ ### Positioning helpers
242
+
243
+ - Landscape: bottom 80–120px centered
244
+ - Portrait: ~600–700px from bottom
245
+ - `window.__hyperframes.fitTextFontSize(text, {maxWidth, fontFamily, fontWeight})` for dynamic sizing
246
+
247
+ ---
248
+
249
+ ## 7. Audio-reactive animation
250
+
251
+ ### Data shape
252
+
253
+ ```js
254
+ window.AUDIO_DATA = {
255
+ fps: 30,
256
+ totalFrames: 900,
257
+ frames: [{ bands: [0.42, 0.18, ...] }] // bands normalized 0–1 per band across track
258
+ };
259
+ ```
260
+
261
+ Index 0 = bass, higher = treble. Bands range 0–1, normalized across full track length.
262
+
263
+ ### Mappings documented
264
+
265
+ | Band | Property |
266
+ | --------------------- | ---------------------------- |
267
+ | Bass (bands[0–1]) | scale (pulse) |
268
+ | Mid (bands[4–8]) | borderRadius, width |
269
+ | Treble (bands[12–14]) | textShadow, boxShadow (glow) |
270
+ | Overall amplitude | opacity, y, backgroundColor |
271
+
272
+ Any GSAP-tweenable property is fair game — including clipPath, filter, SVG attrs, CSS variables.
273
+
274
+ ### Extraction
275
+
276
+ ```bash
277
+ python3 .../extract-audio-data.py audio.mp3 --fps 30 --bands 8
278
+ ```
279
+
280
+ Pre-extracted only — no Web Audio at render time.
281
+
282
+ ### Banned in audio-reactive
283
+
284
+ EQ bars, spectrum UI, generic waveforms, note clip-art, generic particles, rainbow cycling, white strobe on beats, abstract pulsing orbs.
285
+
286
+ ---
287
+
288
+ ## 8. HTML-in-canvas
289
+
290
+ Documented in skills/hyperframes/references/html-in-canvas-patterns.md (504 lines).
291
+
292
+ ### Capability
293
+
294
+ - Chrome's experimental `layoutSubtree` + `drawElementImage` rasterizes live DOM into canvas
295
+ - Feature detection: `isHtmlInCanvasCaptureSupported()`
296
+ - Used by shader-transitions for scene textures
297
+ - Combined with Three.js: `CanvasTexture` + post-processing
298
+
299
+ ### Available patterns
300
+
301
+ - HTML on a Three.js plane (displacement, distortion, liquid sim)
302
+ - HTML in shaders (texture sampling for VFX)
303
+ - Recursive HTML-in-canvas-in-shader-in-HTML
304
+
305
+ ### Experimental VFX blocks using this
306
+
307
+ - `vfx-iphone-device` (GLTF iPhone + MacBook, HTML screens)
308
+ - `vfx-liquid-background` (liquid sim displaces HTML)
309
+ - `vfx-liquid-glass`
310
+ - `vfx-magnetic`
311
+ - `vfx-portal`
312
+ - `vfx-shatter`
313
+ - `vfx-text-cursor` (chromatic edges, canvas post)
314
+
315
+ ---
316
+
317
+ ## 9. Three.js / WebGL custom scenes
318
+
319
+ ### Integration pattern
320
+
321
+ ```js
322
+ window.addEventListener("hf-seek", (e) => {
323
+ const time = e.detail.time;
324
+ mixer.setTime(time);
325
+ shaderUniforms.u_time.value = time;
326
+ renderer.render(scene, camera);
327
+ });
328
+ ```
329
+
330
+ - Load: `import * as THREE from "https://cdn.jsdelivr.net/npm/three@0.181.2/+esm"`
331
+ - Deterministic: every frame must derive from `time`, never `requestAnimationFrame` / `Date.now()`
332
+ - Includes: AnimationMixer, custom GLSL shaders, post-processing, GLTF models, lights, cameras, materials
333
+
334
+ ---
335
+
336
+ ## 10. SVG / canvas / variable fonts (other authored techniques)
337
+
338
+ (From skills/hyperframes/references/techniques.md)
339
+
340
+ | Technique | Mechanism |
341
+ | ------------------------ | ------------------------------------------------------------------------------------ |
342
+ | SVG path drawing | `strokeDasharray` + `getTotalLength()` + GSAP stroke offset |
343
+ | Canvas 2D procedural art | Seeded hash function + `tl.to` proxy `{time}` onUpdate |
344
+ | CSS 3D card | GSAP `rotationY` + `perspective: 900` |
345
+ | Per-word kinetic type | GSAP timings array, sliding decay |
346
+ | Variable font axes | Animate CSS vars → `font-variation-settings: "opsz" var(--opsz), "wght" var(--wght)` |
347
+ | Character typing | `tl.call` text mutation + `steps(1)` cursor blink |
348
+ | Velocity-matched cuts | Match outgoing blur/translate velocity to incoming for seamless beats |
349
+ | MotionPathPlugin | `gsap.registerPlugin(MotionPathPlugin)` + path string |
350
+
351
+ ---
352
+
353
+ ## 11. Media: video, audio, TTS
354
+
355
+ ### Video compositing
356
+
357
+ - `<video muted playsinline data-start="..." data-duration="..." data-track-index="..." src="...">`
358
+ - HyperFrames extracts frames at render via videoFrameInjector (avoids unreliable headless `<video>` playback)
359
+ - Linter forbids `<video>` with audio at the same time — split into separate `<video muted>` + `<audio>`
360
+ - Video frame extraction uses FFmpeg
361
+ - HDR videos: PQ or HLG transfer detection + x265 with mastering metadata
362
+
363
+ ### Audio mixer
364
+
365
+ - `<audio id="..." data-start="..." data-duration="..." data-volume="0.8" data-track-index="2" src="...">`
366
+ - Multiple tracks mixed with `amix normalize=0` + per-track adelay + volume
367
+ - Master audioGain from EngineConfig
368
+ - Output: AAC 192kbps
369
+
370
+ ### TTS (Kokoro-82M, local)
371
+
372
+ - 54 bundled voices with prefixes: `a` American EN, `b` British EN, `e` Spanish, `f` French, `h` Hindi, `i` Italian, `j` Japanese, `p` Brazilian Portuguese, `z` Mandarin
373
+ - Default voice: `af_heart`
374
+ - Speed: 0.1–3.0 (default 1.0)
375
+ - Languages: en-us, en-gb, es, fr-fr, hi, it, pt-br, ja, zh (non-EN needs system espeak-ng)
376
+ - Output: WAV; no pitch/volume CLI flags
377
+ - No API key required
378
+
379
+ ### Transcription
380
+
381
+ - Whisper.cpp models: tiny, base, small, medium, large-v3, small.en, medium.en (default small)
382
+ - Groq API: whisper-large-v3 with word granularities
383
+ - OpenAI API: whisper-1 verbose_json
384
+ - Imports: SRT, VTT, JSON formats
385
+ - Quality gates: music-token detection, garbage cleaning, retry with medium.en
386
+
387
+ ### Background removal
388
+
389
+ - u2net ONNX models
390
+ - Devices: auto / cpu / coreml / cuda
391
+ - Quality presets: fast / balanced / best
392
+ - Outputs: transparent WebM, ProRes MOV, PNG sequence
393
+ - Optional dual output (foreground + extracted background)
394
+
395
+ ---
396
+
397
+ ## 12. Registry — 51 blocks + 4 components + 8 examples
398
+
399
+ ### Blocks by category
400
+
401
+ **Social overlays (8):** instagram-follow, tiktok-follow, yt-lower-third, x-post, reddit-post, spotify-card, macos-notification, blue-sweater-intro-video
402
+
403
+ **Showcases (5):** app-showcase (3D phones), north-korea-locked-down (map + annotation), apple-money-count (counter + SFX), vpn-youtube-spot (app-store scroll), nyc-paris-flight (map + plane path)
404
+
405
+ **Data viz (2):** data-chart (animated bar+line, NYT-style), flowchart + flowchart-vertical (decision tree with SVG connectors, typing correction)
406
+
407
+ **Logo / branding (1):** logo-outro (build + glow + tagline + URL pill)
408
+
409
+ **3D / experimental VFX (8):** ui-3d-reveal, vfx-iphone-device (GLTF), vfx-liquid-background, vfx-liquid-glass, vfx-magnetic, vfx-portal, vfx-shatter, vfx-text-cursor
410
+
411
+ **Single shader transitions (14):** one block per named shader — domain-warp-dissolve, ridged-burn, whip-pan, sdf-iris, ripple-waves, gravitational-lens, cinematic-zoom, chromatic-radial-split, glitch, swirl-vortex, thermal-distortion, flash-through-white, cross-warp-morph, light-leak
412
+
413
+ **Transition galleries (13 showcase pieces):** transitions-3d, transitions-blur, transitions-cover, transitions-destruction, transitions-dissolve, transitions-distortion, transitions-grid, transitions-light, transitions-mechanical, transitions-other, transitions-push, transitions-radial, transitions-scale
414
+
415
+ ### Components (4 reusable snippets)
416
+
417
+ - **grain-overlay** — SVG feTurbulence + CSS keyframes
418
+ - **shimmer-sweep** — Light sweep gradient mask on text
419
+ - **grid-pixelate-wipe** — Grid squares stagger fade scene wipe
420
+ - **texture-mask-text** — Luminance-masked letterforms with 66 mask PNGs (Masonry, Stone, Ground/Road, Wood, Metal, Organic/Soft texture categories)
421
+
422
+ ### Examples (8 starter projects)
423
+
424
+ warm-grain, play-mode, swiss-grid, vignelli, decision-tree, kinetic-type, product-promo, nyt-graph
425
+
426
+ Install: `npx hyperframes add <name>` for blocks/components, `hyperframes init <dir> --example <name>` for examples.
427
+
428
+ ---
429
+
430
+ ## 13. CLI — 25 commands
431
+
432
+ | Command | Purpose |
433
+ | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
434
+ | init | Scaffold project from template/example (interactive or --non-interactive) |
435
+ | add | Install registry block / component |
436
+ | catalog | Browse registry blocks/components (--type, --tag, --json, --human-friendly picker) |
437
+ | play | Lightweight browser player (default port 3003) |
438
+ | preview | Studio dev server (port 3002; --force-new, --list, --kill-all) |
439
+ | publish | Zip + upload + return hyperframes.dev URL |
440
+ | render | Render to MP4 / WebM / MOV / PNG sequence — flags: --fps 24/30/60, --quality draft/standard/high, --workers, --docker, --hdr/--sdr, --crf, --video-bitrate, --gpu, --browser-gpu auto/software/hardware, --max-concurrent-renders 1-10, --variables JSON, --variables-file PATH, --strict-variables, --resolution preset |
441
+ | lint | Static lint (--json, --verbose) |
442
+ | validate | Bundle + headless Chrome + console + contrast (--contrast default true, --timeout 3000) |
443
+ | inspect / layout | Visual layout audit (overflow detection at N timestamps; --samples 9, --at, --tolerance 2, --max-issues 80) |
444
+ | info | Print project metadata |
445
+ | compositions | List compositions (root + sub-comps) |
446
+ | benchmark | 5 preset configs × N runs (--runs 3) |
447
+ | browser | Manage Chrome (ensure/path/clear) |
448
+ | remove-background | u2net + FFmpeg → transparent video |
449
+ | transcribe | whisper.cpp or import SRT/VTT/JSON |
450
+ | tts | Kokoro-82M (--voice, --speed, --lang, --list) |
451
+ | docs | Print bundled markdown topics (data-attributes, examples, rendering, gsap, troubleshooting, compositions) |
452
+ | doctor | Environment checklist (Node, CPU, memory, disk, FFmpeg, FFprobe, Chrome, Docker) |
453
+ | upgrade | npm update check + optional global install |
454
+ | skills | Run `vidfarm skills add <name>` (installs from vidfarm's pinned skill mirror) |
455
+ | telemetry | enable/disable/status |
456
+ | snapshot | PNG screenshots at timeline timestamps |
457
+ | capture | Capture URL → site assets + screenshots + design tokens (uses Puppeteer + optional Gemini vision) |
458
+
459
+ ### Website capture (`hyperframes capture <url>`)
460
+
461
+ Detects these libraries on captured sites (for context labeling): GSAP / ScrollTrigger, Three.js, Lottie, Anime.js, PixiJS, Babylon.js, Rive, Matter.js, Lenis, Framer Motion, Tailwind CSS, WebGL (shader fingerprinting). Captured outputs feed the website-to-video skill workflow.
462
+
463
+ ---
464
+
465
+ ## 14. Linter — 60+ rules
466
+
467
+ Across 8 files in packages/core/src/lint/rules/:
468
+
469
+ | Rule file | Catches |
470
+ | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
471
+ | core | Missing composition-id, missing dimensions, missing timeline registry, registry mismatch, invalid script syntax, scoped-CSS issues, non-deterministic code |
472
+ | media | Duplicate media id, video missing muted, video nested in timed element, placeholder URLs, base64 prohibited, missing src/start/id, imperative play()/pause()/seek() |
473
+ | gsap | Overlapping tweens, exit missing hard kill, GSAP animating .clip element, unscoped selectors, CSS transform conflict, missing GSAP script, infinite repeat (repeat: -1), repeat ceil overshoot, scene layer visibility kill, audio-reactive single-tween-per-group |
474
+ | captions | Caption exit missing kill, text overflow risk, transcript not inline, parse error, container position, scale mismatch, textShadow on parent container |
475
+ | composition | File too large, dense tracks, missing class="clip", deprecated data-layer/data-end, split attribute selectors, external script deps, RAF in composition, invalid variable JSON |
476
+ | adapters | Missing Lottie script, missing Three script |
477
+ | textures | Drop-shadow on text, class missing base, text missing mask, unknown texture class |
478
+ | fonts | Google Fonts import (use @font-face), font-family without @font-face |
479
+
480
+ Plus async URL checks (`lintMediaUrls`, `lintScriptUrls` — HEAD probes).
481
+
482
+ `validateCompositionGsap` also forbids: `Math.random`, `Date.now`, `new Date`, `setTimeout`, `setInterval`, `requestAnimationFrame`, `repeat: -1`.
483
+
484
+ **Note:** `onUpdate` callbacks, `tl.call()`, and GSAP event callbacks (`onComplete`, `onStart`, etc.) are NOT banned by the linter — they are required for canvas/WebGL rendering and character-by-character typing patterns. The linter only catches the determinism violations listed above.
485
+
486
+ ---
487
+
488
+ ## 15. Player — `<hyperframes-player>` web component
489
+
490
+ ### Attributes
491
+
492
+ `src`, `srcdoc`, `width`, `height`, `controls`, `muted`, `volume`, `poster`, `playback-rate`, `audio-src`, `shader-capture-scale`, `shader-loading` (internal|player|none), `loop`, `autoplay`, `speed-presets`
493
+
494
+ ### Public API
495
+
496
+ `seek(t)` (synchronous when same-origin — uses `iframe.contentWindow.__player.seek` directly), `play()`, `pause()`, `currentTime`, `duration`, `paused`, `ready`, `playbackRate`, `iframeElement`
497
+
498
+ ### Events
499
+
500
+ `ready`, `timeupdate`, `play`, `pause`, `ended`, `volumechange`, `ratechange`, `shadertransitionstate`, `playbackerror`, `error`, `audioownershipchange`
501
+
502
+ ### Media mirror
503
+
504
+ Parent audio/video elements with `data-start` are proxied; `_mirrorParentMediaTime` corrects drift; `_audioOwner` promotes to parent if autoplay blocked.
505
+
506
+ ### Runtime auto-inject
507
+
508
+ Loads `RUNTIME_CDN_URL` (`@hyperframes/core/dist/hyperframe.runtime.iife.js`) if missing `__hf`/`__player` but timelines exist.
509
+
510
+ ---
511
+
512
+ ## 16. Engine + Producer — rendering pipeline
513
+
514
+ ### Output formats
515
+
516
+ mp4, webm, mov, png-sequence — with HDR (PQ / HLG / SDR / auto-detect), transparency (ProRes MOV / WebM / PNG), or standard 8-bit SDR
517
+
518
+ ### Encoding controls
519
+
520
+ - `--fps`: 24 / 30 / 60
521
+ - `--quality`: draft / standard / high
522
+ - `--crf`: integer (mutually exclusive with `--video-bitrate`)
523
+ - `--video-bitrate`: e.g. `8M`
524
+ - `--gpu`: NVENC, VideoToolbox, VAAPI, QSV
525
+ - `--browser-gpu`: auto / software / hardware
526
+ - `--workers`: parallel render workers
527
+ - `--max-concurrent-renders`: 1–10 (sets `PRODUCER_MAX_CONCURRENT_RENDERS`)
528
+ - `--resolution`: preset (1080p, 4k, portrait, etc.)
529
+ - `--docker`: render inside Dockerfile.test image (reproducibility)
530
+ - `--hdr` / `--sdr`: force HDR or SDR pipeline
531
+
532
+ ### Engine subsystems
533
+
534
+ - Frame capture: BeginFrame on Linux headless-shell (fast, no alpha) or `Page.captureScreenshot` (alpha + supersample)
535
+ - Video frame injector: pre-extracts video to images, swaps `<video>` for `<img>` during capture (LRU cache by path + byte budget)
536
+ - Audio mixer: FFmpeg-based; per-track delay, volume, master gain, AAC 192k output
537
+ - Chunk encoder: H.264 / H.265 / VP9 / ProRes presets with optional GPU
538
+ - Streaming encoder: `streamingEncodeMaxDurationSeconds` for long renders
539
+ - HDR compositing: `rgba16float` WebGPU readback (headed Chrome), PQ OETF helpers
540
+ - Layer compositor: groups DOM by z-order; splits HDR elements into separate layers
541
+ - Alpha blit: matrix3d affine extraction, `blitRgba8OverRgb48le`, `blitRgb48leAffine`
542
+ - Parallel coordinator: concurrency, coresPerWorker, minParallelFrames, largeRenderThreshold
543
+ - Browser pool: optional with timeout configs
544
+
545
+ ### Producer-only
546
+
547
+ - `RenderConfig` with `hdrMode` (auto / force-hdr / force-sdr), `outputResolution` mapped to `deviceScaleFactor`
548
+ - File server injects `HF_EARLY_STUB`, `HF_BRIDGE_SCRIPT`, virtual-time so `window.__hf` bridges `window.__player.renderSeek`
549
+ - HDR-aware shader transition compositing via `window.__hf.transitions` metadata
550
+
551
+ ---
552
+
553
+ ## 17. Studio — in-browser NLE
554
+
555
+ Full editor in packages/studio/:
556
+
557
+ - **NLELayout**: NLE preview + timeline + controls
558
+ - **Timeline**: clip rendering, drag to move (`data-start`), resize (`data-duration`), `data-track-index` reassignment, asset drop, file drop
559
+ - **PlayerControls**: scrub, play, pause, frame step (`stepFrameTime`), `STUDIO_PREVIEW_FPS`
560
+ - **useTimelinePlayer**: resolves `__player` / `__timeline` / `__timelines`
561
+ - **LeftSidebar**: compositions list, asset browser
562
+ - **RenderQueue + useRenderQueue**: queue multiple renders
563
+ - **LintModal**: in-app lint output
564
+ - **MediaPreview + AudioWaveform**: waveform rendering
565
+ - **CaptionOverlay, CaptionTimeline, CaptionPropertyPanel**: caption editor
566
+ - **useCaptionSync**: word-level sync
567
+ - **useElementPicker**: click-to-inspect picker mode
568
+ - Built with Tailwind v3 (separate from Tailwind v4 browser runtime used by compositions).
569
+
570
+ ---
571
+
572
+ ## 18. Determinism guarantees
573
+
574
+ - No `Math.random()` (use seeded PRNGs; mulberry32 is the pattern in skills)
575
+ - No `Date.now()` / `new Date()`
576
+ - No `setTimeout` / `setInterval` in timeline construction
577
+ - No `requestAnimationFrame` (timeline-driven; engine seeks per frame)
578
+ - No `repeat: -1` (calculate exact repeats: `Math.ceil(duration / cycleDuration) - 1`)
579
+ - No `onComplete`/`onStart`/`onRepeat` callbacks (engine doesn't fire them). **Exception:** `onUpdate` and `tl.call()` ARE supported — they're required for canvas/WebGL rendering, character-by-character typing, and counter patterns. See §10 (Canvas 2D procedural art) for the documented pattern.
580
+ - No `gsap.set` on clips from later scenes (use `tl.set(selector, vars, position)`)
581
+ - Synchronous timeline construction (no async)
582
+ - Master clock can clamp at composition end
583
+
584
+ ---
585
+
586
+ ## 19. Variables / parameterization
587
+
588
+ Compositions support typed runtime variables:
589
+
590
+ ```html
591
+ <html
592
+ data-composition-variables='[
593
+ {"name":"brand","type":"string","default":"Stripe"},
594
+ {"name":"primary","type":"color","default":"#635BFF"},
595
+ {"name":"duration","type":"number","default":15},
596
+ {"name":"darkMode","type":"boolean","default":false},
597
+ {"name":"layout","type":"enum","options":["hero","split","stacked"]}
598
+ ]'
599
+ ></html>
600
+ ```
601
+
602
+ Access via `window.__hyperframes.getVariables()`. Override at render time:
603
+
604
+ ```bash
605
+ npx hyperframes render --variables '{"brand":"Linear","primary":"#5E6AD2"}'
606
+ npx hyperframes render --variables-file vars.json
607
+ npx hyperframes render --strict-variables # error if unused / mismatched
608
+ ```
609
+
610
+ `validateVariables()` checks values against declarations at the CLI/tooling boundary.
611
+
612
+ ---
613
+
614
+ ## 20. Sub-compositions
615
+
616
+ Two loading mechanisms:
617
+
618
+ - **External file:** `data-composition-src="compositions/act-1.html"` — fetched at runtime
619
+ - **Inline template:** `<template id="<id>-template">` — extracted by `loadInlineTemplateCompositions`
620
+
621
+ Each sub-comp:
622
+
623
+ - Has its own `data-composition-id`
624
+ - Has its own `window.__timelines[<id>]`
625
+ - Auto-nested into the root timeline
626
+ - Scoped CSS via `scopeCssToComposition` (`[data-composition-id="<id>"]` selector)
627
+ - Wrapped scripts via `wrapScopedCompositionScript`
628
+ - Reads `data-variable-values` merged with own defaults into `window.__hfVariablesByComp[<id>]`
629
+ - External scripts load with `EXTERNAL_SCRIPT_LOAD_TIMEOUT_MS` timeout. Failed loads emit `external_composition_load_failed` / `external_composition_script_load_issue` diagnostics.
630
+
631
+ ---
632
+
633
+ ## 21. Global runtime APIs (`window.*`)
634
+
635
+ | Global | Purpose |
636
+ | ------------------------------------- | ----------------------------------------------------------------------- |
637
+ | `__hyperframes` | `{ fitTextFontSize, getVariables }` |
638
+ | `__timelines` | `{ [compositionId]: GsapTimeline }` |
639
+ | `__player` | Internal player bridge: seek, play, pause, renderSeek, etc. |
640
+ | `__clipManifest` | Computed clip array (for Studio) |
641
+ | `__playerReady` | Resolved when player ready |
642
+ | `__renderReady` | Resolved when ready for render capture |
643
+ | `__HF_PARITY_MODE` | Engine parity flag |
644
+ | `__HF_FPS` | Render FPS hint |
645
+ | `__HF_MAX_DURATION_SEC` | Engine clamp |
646
+ | `__HF_VIRTUAL_TIME__` | Set by engine in render mode (shader-transitions switches paths) |
647
+ | `__hfThreeTime` | Current time for Three.js adapter |
648
+ | `__HF_PICKER_API` | Element picker hook for Studio |
649
+ | `__hfAnime` | Array of Anime.js instances |
650
+ | `__hfLottie` | Array of Lottie animations |
651
+ | `__hfVariables` | Resolved root variables |
652
+ | `__hfVariablesByComp` | Per-composition variable map |
653
+ | `__hfRuntimeTeardown` | Cleanup function |
654
+ | `__tailwindReady` | Tailwind browser build ready (gates capture) |
655
+ | `__hf.transitions` | Shader transition metadata (read by producer for HDR-aware compositing) |
656
+ | `__beforeTimeline`, `__afterTimeline` | Optional user hooks |
657
+ | `__afterRender`, `__beforeRender` | Optional user hooks |
658
+ | `gsap`, `THREE`, `anime`, `lottie` | Library globals |
659
+
660
+ Control bridge actions: play, pause, seek, set-muted, set-playback-rate, enable-pick-mode, disable-pick-mode, set-volume, set-media-output-muted.
661
+
662
+ ---
663
+
664
+ ## 22. Skills available — 16
665
+
666
+ | Skill | Purpose |
667
+ | ------------------------- | ----------------------------------------------------------------------- |
668
+ | hyperframes | Core framework skill (composition authoring) |
669
+ | hyperframes-cli | All CLI commands as an agent skill |
670
+ | vidfarm-media | Media workflows (TTS, transcribe, captions integration) |
671
+ | hyperframes-registry | Installing blocks/components |
672
+ | hyperframes-contrast | WCAG audit (scripts/contrast-report.mjs) |
673
+ | hyperframes-animation-map | Per-tween bbox + flags report |
674
+ | website-to-video | Capture → DESIGN.md → brief → storyboard+script → VO → build → validate |
675
+ | remotion-to-hyperframes | Migration patterns + API map + CustomEase |
676
+ | gsap | GSAP API + plugins reference |
677
+ | animejs | Anime.js v4 patterns |
678
+ | css-animations | @keyframes patterns |
679
+ | waapi | Web Animations API |
680
+ | lottie | Lottie integration |
681
+ | three | Three.js + deterministic seek |
682
+ | tailwind | Tailwind browser runtime v4 |
683
+ | contribute-catalog | Adding blocks to registry |
684
+
685
+ ---
686
+
687
+ ## 23. References inventory (skills/hyperframes/references/)
688
+
689
+ 16 reference docs covering:
690
+
691
+ - text-effects.md — 24 named text animation effects (per-character, per-word, per-line, whole) — vocabulary reference for the separate `pixel-point/animate-text` skill (load it via `npx skills add pixel-point/animate-text` or `/animate-text`). Specs live in that upstream skill, not in this repo.
692
+ - transitions.md + transitions/catalog.md + 14 category subfiles
693
+ - css-patterns.md (marker patterns)
694
+ - dynamic-techniques.md (caption animation)
695
+ - motion-principles.md (easing as emotion, choreography)
696
+ - typography.md (banned-font list, pairing rules, variable fonts)
697
+ - narration.md (script + VO pacing)
698
+ - captions.md (caption authoring contract)
699
+ - audio-reactive.md (band mappings + extraction)
700
+ - transcript-guide.md (whisper, Groq, OpenAI workflows)
701
+ - techniques.md (the big technique catalog — SVG, canvas 2D, 3D, kinetic, lottie, variable fonts, MotionPath, audio-reactive)
702
+ - beat-direction.md, design-picker.md, prompt-expansion.md, video-composition.md
703
+ - visual-styles.md (8 named visual styles: Swiss Pulse, Velvet Standard, Deconstructed, Maximalist Type, Data Drift, Soft Signal, Folk Frequency, Shadow Cut — available via the `visual-style` skill)
704
+
705
+ ---
706
+
707
+ ## 24. Documentation pages (docs/)
708
+
709
+ 27 mdx pages in docs/guides/ and docs/packages/:
710
+
711
+ **Guides:** 4k-rendering, claude-design, common-mistakes, deploy, gsap-animation, hdr, html-in-canvas, hyperframes-vs-remotion, open-design, performance, prompting, remove-background, rendering, timeline-editing, troubleshooting, video-editor-cheatsheet, website-to-video, etc.
712
+
713
+ **Packages:** cli.mdx, core.mdx, engine.mdx, player.mdx, producer.mdx, studio.mdx