@bydiorama/motion 0.0.0-stage → 0.4.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 (354) hide show
  1. package/CREDITS.md +62 -0
  2. package/LICENSE +21 -0
  3. package/README.md +142 -2
  4. package/catalog.json +4697 -0
  5. package/dist/npm/brief/brief.d.ts +28 -0
  6. package/dist/npm/brief/brief.js +159 -0
  7. package/dist/npm/brief/types.d.ts +75 -0
  8. package/dist/npm/brief/types.js +2 -0
  9. package/dist/npm/browser/motion.js +1039 -0
  10. package/dist/npm/browser/page.js +4821 -0
  11. package/dist/npm/browser/wizard.js +1511 -0
  12. package/dist/npm/build/design.d.ts +54 -0
  13. package/dist/npm/build/design.js +91 -0
  14. package/dist/npm/build/index.d.ts +39 -0
  15. package/dist/npm/build/index.js +66 -0
  16. package/dist/npm/build/iso.d.ts +41 -0
  17. package/dist/npm/build/iso.js +71 -0
  18. package/dist/npm/catalog.d.ts +24 -0
  19. package/dist/npm/catalog.js +23 -0
  20. package/dist/npm/cli/browser.d.ts +26 -0
  21. package/dist/npm/cli/browser.js +66 -0
  22. package/dist/npm/cli/capture.d.ts +26 -0
  23. package/dist/npm/cli/capture.js +94 -0
  24. package/dist/npm/cli/files.d.ts +14 -0
  25. package/dist/npm/cli/files.js +87 -0
  26. package/dist/npm/cli/frames.d.ts +27 -0
  27. package/dist/npm/cli/frames.js +125 -0
  28. package/dist/npm/cli/guard.d.ts +23 -0
  29. package/dist/npm/cli/guard.js +158 -0
  30. package/dist/npm/cli/library.d.ts +2 -0
  31. package/dist/npm/cli/library.js +55 -0
  32. package/dist/npm/cli/main.d.ts +17 -0
  33. package/dist/npm/cli/main.js +964 -0
  34. package/dist/npm/cli/motion.d.ts +2 -0
  35. package/dist/npm/cli/motion.js +6 -0
  36. package/dist/npm/cli/record.d.ts +36 -0
  37. package/dist/npm/cli/record.js +142 -0
  38. package/dist/npm/cli/review.d.ts +45 -0
  39. package/dist/npm/cli/review.js +139 -0
  40. package/dist/npm/cli/schema.d.ts +852 -0
  41. package/dist/npm/cli/schema.js +120 -0
  42. package/dist/npm/cli/server.d.ts +17 -0
  43. package/dist/npm/cli/server.js +135 -0
  44. package/dist/npm/core/ease.d.ts +39 -0
  45. package/dist/npm/core/ease.js +176 -0
  46. package/dist/npm/core/frame.d.ts +52 -0
  47. package/dist/npm/core/frame.js +60 -0
  48. package/dist/npm/core/shapes.d.ts +8 -0
  49. package/dist/npm/core/shapes.js +88 -0
  50. package/dist/npm/core/stagger.d.ts +19 -0
  51. package/dist/npm/core/stagger.js +77 -0
  52. package/dist/npm/core/tap.d.ts +19 -0
  53. package/dist/npm/core/tap.js +42 -0
  54. package/dist/npm/core/track.d.ts +4 -0
  55. package/dist/npm/core/track.js +23 -0
  56. package/dist/npm/dom/mount.d.ts +127 -0
  57. package/dist/npm/dom/mount.js +950 -0
  58. package/dist/npm/dom/page.d.ts +37 -0
  59. package/dist/npm/dom/page.js +77 -0
  60. package/dist/npm/dom/soundtrack.d.ts +13 -0
  61. package/dist/npm/dom/soundtrack.js +37 -0
  62. package/dist/npm/dom/stage.css.d.ts +1 -0
  63. package/dist/npm/dom/stage.css.js +44 -0
  64. package/dist/npm/dom/tokens.d.ts +10 -0
  65. package/dist/npm/dom/tokens.js +38 -0
  66. package/dist/npm/dom/ui-themes.css.d.ts +8 -0
  67. package/dist/npm/dom/ui-themes.css.js +9 -0
  68. package/dist/npm/film/beats.d.ts +64 -0
  69. package/dist/npm/film/beats.js +282 -0
  70. package/dist/npm/film/pace.d.ts +94 -0
  71. package/dist/npm/film/pace.js +396 -0
  72. package/dist/npm/film/resolve.d.ts +16 -0
  73. package/dist/npm/film/resolve.js +997 -0
  74. package/dist/npm/film/tempo.d.ts +19 -0
  75. package/dist/npm/film/tempo.js +34 -0
  76. package/dist/npm/film/tune.d.ts +17 -0
  77. package/dist/npm/film/tune.js +68 -0
  78. package/dist/npm/film/types.d.ts +416 -0
  79. package/dist/npm/film/types.js +16 -0
  80. package/dist/npm/index.d.ts +18 -0
  81. package/dist/npm/index.js +11 -0
  82. package/dist/npm/primitives/blur.d.ts +14 -0
  83. package/dist/npm/primitives/blur.js +59 -0
  84. package/dist/npm/primitives/canvas.d.ts +5 -0
  85. package/dist/npm/primitives/canvas.js +13 -0
  86. package/dist/npm/primitives/el/box.d.ts +2 -0
  87. package/dist/npm/primitives/el/box.js +24 -0
  88. package/dist/npm/primitives/el/frames.d.ts +15 -0
  89. package/dist/npm/primitives/el/frames.js +71 -0
  90. package/dist/npm/primitives/el/html.d.ts +2 -0
  91. package/dist/npm/primitives/el/html.js +14 -0
  92. package/dist/npm/primitives/el/image.d.ts +2 -0
  93. package/dist/npm/primitives/el/image.js +43 -0
  94. package/dist/npm/primitives/el/slot.d.ts +2 -0
  95. package/dist/npm/primitives/el/slot.js +25 -0
  96. package/dist/npm/primitives/el/text.d.ts +2 -0
  97. package/dist/npm/primitives/el/text.js +13 -0
  98. package/dist/npm/primitives/el/video.d.ts +6 -0
  99. package/dist/npm/primitives/el/video.js +179 -0
  100. package/dist/npm/primitives/fx/counter-roll.d.ts +2 -0
  101. package/dist/npm/primitives/fx/counter-roll.js +32 -0
  102. package/dist/npm/primitives/fx/depth-drift.d.ts +2 -0
  103. package/dist/npm/primitives/fx/depth-drift.js +44 -0
  104. package/dist/npm/primitives/fx/grid-ripple.d.ts +2 -0
  105. package/dist/npm/primitives/fx/grid-ripple.js +59 -0
  106. package/dist/npm/primitives/fx/odometer.d.ts +2 -0
  107. package/dist/npm/primitives/fx/odometer.js +80 -0
  108. package/dist/npm/primitives/fx/pan-across.d.ts +17 -0
  109. package/dist/npm/primitives/fx/pan-across.js +76 -0
  110. package/dist/npm/primitives/fx/path-draw.d.ts +2 -0
  111. package/dist/npm/primitives/fx/path-draw.js +105 -0
  112. package/dist/npm/primitives/fx/pin-drop.d.ts +2 -0
  113. package/dist/npm/primitives/fx/pin-drop.js +92 -0
  114. package/dist/npm/primitives/fx/shape-morph.d.ts +2 -0
  115. package/dist/npm/primitives/fx/shape-morph.js +65 -0
  116. package/dist/npm/primitives/fx/slow-push.d.ts +13 -0
  117. package/dist/npm/primitives/fx/slow-push.js +56 -0
  118. package/dist/npm/primitives/fx/stagger-fill.d.ts +2 -0
  119. package/dist/npm/primitives/fx/stagger-fill.js +33 -0
  120. package/dist/npm/primitives/index.d.ts +4 -0
  121. package/dist/npm/primitives/index.js +78 -0
  122. package/dist/npm/primitives/rig/browser-window.d.ts +2 -0
  123. package/dist/npm/primitives/rig/browser-window.js +142 -0
  124. package/dist/npm/primitives/rig/camera.d.ts +36 -0
  125. package/dist/npm/primitives/rig/camera.js +81 -0
  126. package/dist/npm/primitives/rig/footage-plane.d.ts +27 -0
  127. package/dist/npm/primitives/rig/footage-plane.js +257 -0
  128. package/dist/npm/primitives/rig/layer-stack.d.ts +39 -0
  129. package/dist/npm/primitives/rig/layer-stack.js +276 -0
  130. package/dist/npm/primitives/rig/orbit-ring.d.ts +2 -0
  131. package/dist/npm/primitives/rig/orbit-ring.js +59 -0
  132. package/dist/npm/primitives/rig/tab-stack.d.ts +9 -0
  133. package/dist/npm/primitives/rig/tab-stack.js +143 -0
  134. package/dist/npm/primitives/scene/bar-chart.d.ts +2 -0
  135. package/dist/npm/primitives/scene/bar-chart.js +83 -0
  136. package/dist/npm/primitives/scene/bento-grid.d.ts +49 -0
  137. package/dist/npm/primitives/scene/bento-grid.js +293 -0
  138. package/dist/npm/primitives/scene/grid-wall.d.ts +18 -0
  139. package/dist/npm/primitives/scene/grid-wall.js +110 -0
  140. package/dist/npm/primitives/scene/line-chart.d.ts +2 -0
  141. package/dist/npm/primitives/scene/line-chart.js +121 -0
  142. package/dist/npm/primitives/scene/logo-reveal.d.ts +2 -0
  143. package/dist/npm/primitives/scene/logo-reveal.js +117 -0
  144. package/dist/npm/primitives/scene/marquee-wall.d.ts +2 -0
  145. package/dist/npm/primitives/scene/marquee-wall.js +82 -0
  146. package/dist/npm/primitives/scene/post-carousel.d.ts +16 -0
  147. package/dist/npm/primitives/scene/post-carousel.js +195 -0
  148. package/dist/npm/primitives/scene/strip-cycle.d.ts +49 -0
  149. package/dist/npm/primitives/scene/strip-cycle.js +237 -0
  150. package/dist/npm/primitives/split.d.ts +34 -0
  151. package/dist/npm/primitives/split.js +105 -0
  152. package/dist/npm/primitives/texture/beat-field.d.ts +13 -0
  153. package/dist/npm/primitives/texture/beat-field.js +113 -0
  154. package/dist/npm/primitives/texture/gradient-drift.d.ts +2 -0
  155. package/dist/npm/primitives/texture/gradient-drift.js +56 -0
  156. package/dist/npm/primitives/texture/grain.d.ts +2 -0
  157. package/dist/npm/primitives/texture/grain.js +54 -0
  158. package/dist/npm/primitives/texture/halftone-field.d.ts +2 -0
  159. package/dist/npm/primitives/texture/halftone-field.js +36 -0
  160. package/dist/npm/primitives/texture/signal-field.d.ts +4 -0
  161. package/dist/npm/primitives/texture/signal-field.js +107 -0
  162. package/dist/npm/primitives/texture/vignette.d.ts +2 -0
  163. package/dist/npm/primitives/texture/vignette.js +23 -0
  164. package/dist/npm/primitives/transition/band-sweep.d.ts +22 -0
  165. package/dist/npm/primitives/transition/band-sweep.js +111 -0
  166. package/dist/npm/primitives/transition/beat-cut.d.ts +2 -0
  167. package/dist/npm/primitives/transition/beat-cut.js +10 -0
  168. package/dist/npm/primitives/transition/blur-dissolve.d.ts +2 -0
  169. package/dist/npm/primitives/transition/blur-dissolve.js +28 -0
  170. package/dist/npm/primitives/transition/camera-travel.d.ts +2 -0
  171. package/dist/npm/primitives/transition/camera-travel.js +69 -0
  172. package/dist/npm/primitives/transition/cover-reveal.d.ts +2 -0
  173. package/dist/npm/primitives/transition/cover-reveal.js +52 -0
  174. package/dist/npm/primitives/transition/curtain.d.ts +2 -0
  175. package/dist/npm/primitives/transition/curtain.js +40 -0
  176. package/dist/npm/primitives/transition/dive-in.d.ts +2 -0
  177. package/dist/npm/primitives/transition/dive-in.js +52 -0
  178. package/dist/npm/primitives/transition/fly-past.d.ts +2 -0
  179. package/dist/npm/primitives/transition/fly-past.js +87 -0
  180. package/dist/npm/primitives/transition/iris.d.ts +2 -0
  181. package/dist/npm/primitives/transition/iris.js +38 -0
  182. package/dist/npm/primitives/transition/overlay.d.ts +4 -0
  183. package/dist/npm/primitives/transition/overlay.js +24 -0
  184. package/dist/npm/primitives/transition/push.d.ts +2 -0
  185. package/dist/npm/primitives/transition/push.js +35 -0
  186. package/dist/npm/primitives/transition/signal-wipe.d.ts +2 -0
  187. package/dist/npm/primitives/transition/signal-wipe.js +67 -0
  188. package/dist/npm/primitives/transition/slant-wipe.d.ts +2 -0
  189. package/dist/npm/primitives/transition/slant-wipe.js +30 -0
  190. package/dist/npm/primitives/transition/stack-over.d.ts +2 -0
  191. package/dist/npm/primitives/transition/stack-over.js +38 -0
  192. package/dist/npm/primitives/transition/step-wipe.d.ts +2 -0
  193. package/dist/npm/primitives/transition/step-wipe.js +29 -0
  194. package/dist/npm/primitives/transition/strip-wipe.d.ts +40 -0
  195. package/dist/npm/primitives/transition/strip-wipe.js +121 -0
  196. package/dist/npm/primitives/transition/whip-pan.d.ts +2 -0
  197. package/dist/npm/primitives/transition/whip-pan.js +45 -0
  198. package/dist/npm/primitives/type/block-reveal.d.ts +2 -0
  199. package/dist/npm/primitives/type/block-reveal.js +61 -0
  200. package/dist/npm/primitives/type/char-cascade.d.ts +2 -0
  201. package/dist/npm/primitives/type/char-cascade.js +45 -0
  202. package/dist/npm/primitives/type/echo.d.ts +2 -0
  203. package/dist/npm/primitives/type/echo.js +57 -0
  204. package/dist/npm/primitives/type/fill-text.d.ts +14 -0
  205. package/dist/npm/primitives/type/fill-text.js +82 -0
  206. package/dist/npm/primitives/type/mask-reveal.d.ts +2 -0
  207. package/dist/npm/primitives/type/mask-reveal.js +58 -0
  208. package/dist/npm/primitives/type/scramble.d.ts +2 -0
  209. package/dist/npm/primitives/type/scramble.js +34 -0
  210. package/dist/npm/primitives/type/scribble-highlight.d.ts +2 -0
  211. package/dist/npm/primitives/type/scribble-highlight.js +84 -0
  212. package/dist/npm/primitives/type/shimmer.d.ts +2 -0
  213. package/dist/npm/primitives/type/shimmer.js +35 -0
  214. package/dist/npm/primitives/type/tracking-in.d.ts +2 -0
  215. package/dist/npm/primitives/type/tracking-in.js +37 -0
  216. package/dist/npm/primitives/type/typed-title.d.ts +2 -0
  217. package/dist/npm/primitives/type/typed-title.js +33 -0
  218. package/dist/npm/primitives/type/word-build.d.ts +2 -0
  219. package/dist/npm/primitives/type/word-build.js +44 -0
  220. package/dist/npm/primitives/type/word-roller.d.ts +2 -0
  221. package/dist/npm/primitives/type/word-roller.js +80 -0
  222. package/dist/npm/primitives/types.d.ts +183 -0
  223. package/dist/npm/primitives/types.js +5 -0
  224. package/dist/npm/primitives/ui/cursor-click.d.ts +4 -0
  225. package/dist/npm/primitives/ui/cursor-click.js +68 -0
  226. package/dist/npm/primitives/ui/page-scroll.d.ts +17 -0
  227. package/dist/npm/primitives/ui/page-scroll.js +98 -0
  228. package/dist/npm/review/fft.d.ts +4 -0
  229. package/dist/npm/review/fft.js +71 -0
  230. package/dist/npm/review/measure.d.ts +170 -0
  231. package/dist/npm/review/measure.js +577 -0
  232. package/dist/npm/tokens.d.ts +50 -0
  233. package/dist/npm/tokens.js +49 -0
  234. package/dist/npm/version.d.ts +1 -0
  235. package/dist/npm/version.js +1 -0
  236. package/examples/builder.film.mjs +18 -0
  237. package/films/feature-announcement.film.json +70 -0
  238. package/library/narratives/app-demo.md +64 -0
  239. package/library/narratives/brand-identity.md +78 -0
  240. package/library/narratives/capability-through-type.md +53 -0
  241. package/library/narratives/data-story.md +59 -0
  242. package/library/narratives/explainer.md +64 -0
  243. package/library/narratives/feature-announcement.md +68 -0
  244. package/library/narratives/infinite-loop.md +28 -0
  245. package/library/narratives/platform-launch.md +81 -0
  246. package/library/narratives/social-teaser.md +45 -0
  247. package/library/narratives/title-sequence.md +55 -0
  248. package/library/narratives/website-launch.md +65 -0
  249. package/library/primitives/fx/card-arrangements.md +26 -0
  250. package/library/primitives/fx/counter-roll.md +27 -0
  251. package/library/primitives/fx/depth-drift.md +32 -0
  252. package/library/primitives/fx/grid-ripple.md +58 -0
  253. package/library/primitives/fx/letter-interleave.md +26 -0
  254. package/library/primitives/fx/marquee-highlight.md +27 -0
  255. package/library/primitives/fx/mosaic-fill.md +23 -0
  256. package/library/primitives/fx/odometer.md +44 -0
  257. package/library/primitives/fx/pan-across.md +63 -0
  258. package/library/primitives/fx/path-draw.md +54 -0
  259. package/library/primitives/fx/pin-drop.md +51 -0
  260. package/library/primitives/fx/radial-burst.md +33 -0
  261. package/library/primitives/fx/shape-morph.md +45 -0
  262. package/library/primitives/fx/slow-push.md +63 -0
  263. package/library/primitives/fx/stagger-fill.md +28 -0
  264. package/library/primitives/rig/browser-window.md +113 -0
  265. package/library/primitives/rig/flip-ticker.md +26 -0
  266. package/library/primitives/rig/footage-plane.md +90 -0
  267. package/library/primitives/rig/layer-stack.md +168 -0
  268. package/library/primitives/rig/orbit-ring.md +43 -0
  269. package/library/primitives/rig/rolodex.md +31 -0
  270. package/library/primitives/rig/tab-stack.md +116 -0
  271. package/library/primitives/rig/tumbling-object.md +27 -0
  272. package/library/primitives/scene/bar-chart.md +49 -0
  273. package/library/primitives/scene/bento-grid.md +74 -0
  274. package/library/primitives/scene/end-card.md +28 -0
  275. package/library/primitives/scene/grid-wall.md +61 -0
  276. package/library/primitives/scene/hero-object.md +33 -0
  277. package/library/primitives/scene/kinetic-headline.md +34 -0
  278. package/library/primitives/scene/line-chart.md +47 -0
  279. package/library/primitives/scene/logo-reveal.md +53 -0
  280. package/library/primitives/scene/marquee-wall.md +33 -0
  281. package/library/primitives/scene/mosaic.md +28 -0
  282. package/library/primitives/scene/post-carousel.md +68 -0
  283. package/library/primitives/scene/specimen-grid.md +28 -0
  284. package/library/primitives/scene/stat-with-evidence.md +34 -0
  285. package/library/primitives/scene/strip-cycle.md +122 -0
  286. package/library/primitives/scene/zoomed-ui.md +29 -0
  287. package/library/primitives/texture/ascii.md +22 -0
  288. package/library/primitives/texture/beat-field.md +85 -0
  289. package/library/primitives/texture/depth-fade.md +23 -0
  290. package/library/primitives/texture/dither.md +27 -0
  291. package/library/primitives/texture/gradient-drift.md +50 -0
  292. package/library/primitives/texture/grain.md +39 -0
  293. package/library/primitives/texture/halftone-field.md +26 -0
  294. package/library/primitives/texture/signal-field.md +61 -0
  295. package/library/primitives/texture/vignette.md +53 -0
  296. package/library/primitives/transition/band-sweep.md +63 -0
  297. package/library/primitives/transition/beat-cut.md +27 -0
  298. package/library/primitives/transition/blur-dissolve.md +36 -0
  299. package/library/primitives/transition/camera-travel.md +57 -0
  300. package/library/primitives/transition/collapse-to-anchor.md +27 -0
  301. package/library/primitives/transition/cover-reveal.md +47 -0
  302. package/library/primitives/transition/curtain.md +42 -0
  303. package/library/primitives/transition/dive-in.md +51 -0
  304. package/library/primitives/transition/fly-past.md +51 -0
  305. package/library/primitives/transition/iris.md +49 -0
  306. package/library/primitives/transition/layout-locked-swap.md +28 -0
  307. package/library/primitives/transition/light-dark-flip.md +27 -0
  308. package/library/primitives/transition/push.md +47 -0
  309. package/library/primitives/transition/signal-wipe.md +52 -0
  310. package/library/primitives/transition/slant-wipe.md +44 -0
  311. package/library/primitives/transition/stack-over.md +51 -0
  312. package/library/primitives/transition/step-wipe.md +32 -0
  313. package/library/primitives/transition/strip-wipe.md +80 -0
  314. package/library/primitives/transition/torn-edge.md +26 -0
  315. package/library/primitives/transition/whip-pan.md +47 -0
  316. package/library/primitives/transition/zoom-through-letter.md +27 -0
  317. package/library/primitives/type/accent-number.md +22 -0
  318. package/library/primitives/type/block-reveal.md +41 -0
  319. package/library/primitives/type/char-cascade.md +65 -0
  320. package/library/primitives/type/echo.md +44 -0
  321. package/library/primitives/type/fill-text.md +63 -0
  322. package/library/primitives/type/focus-blur.md +22 -0
  323. package/library/primitives/type/inline-chips.md +27 -0
  324. package/library/primitives/type/mask-reveal.md +65 -0
  325. package/library/primitives/type/parting.md +23 -0
  326. package/library/primitives/type/per-word-restyle.md +28 -0
  327. package/library/primitives/type/scramble.md +26 -0
  328. package/library/primitives/type/scribble-highlight.md +47 -0
  329. package/library/primitives/type/shimmer.md +39 -0
  330. package/library/primitives/type/split-flap.md +26 -0
  331. package/library/primitives/type/style-multiply.md +23 -0
  332. package/library/primitives/type/tracking-in.md +40 -0
  333. package/library/primitives/type/typed-title.md +27 -0
  334. package/library/primitives/type/word-build.md +37 -0
  335. package/library/primitives/type/word-roller.md +52 -0
  336. package/library/primitives/type/writing-ticker.md +27 -0
  337. package/library/primitives/ui/collab-cursors.md +27 -0
  338. package/library/primitives/ui/cursor-click.md +61 -0
  339. package/library/primitives/ui/page-scroll.md +58 -0
  340. package/library/primitives/ui/prompt-typing.md +29 -0
  341. package/library/primitives/ui/streamed-result.md +23 -0
  342. package/library/primitives/ui/tour-hold.md +27 -0
  343. package/library/styles/brand-system.md +49 -0
  344. package/library/styles/clean-explainer.md +42 -0
  345. package/library/styles/dark-showcase.md +48 -0
  346. package/library/styles/editorial-type.md +37 -0
  347. package/library/styles/kinetic-poster.md +54 -0
  348. package/library/styles/product-ui.md +44 -0
  349. package/library/styles/studio-loop.md +41 -0
  350. package/library.json +1467 -0
  351. package/package.json +64 -4
  352. package/schema/film.schema.json +1316 -0
  353. package/showcase/vendor/DIALKIT-LICENSE +21 -0
  354. package/src/studio/theme/fonts/OFL.txt +94 -0
package/CREDITS.md ADDED
@@ -0,0 +1,62 @@
1
+ # Credits
2
+
3
+ This library is written from scratch, but some files ship with it that are not
4
+ ours, and some of its numbers come from elsewhere. This page names them.
5
+
6
+ ## Bundled material
7
+
8
+ Each item below keeps its own licence. The licence text travels with the file,
9
+ as the licence requires.
10
+
11
+ - **[DialKit](https://github.com/joshpuckett/dialkit)** — © 2026 Josh Puckett,
12
+ MIT. The studio's parameter panel and timeline dock. The studio imports the
13
+ `dialkit` package (a dev dependency, bundled when the studio is served); the
14
+ showcase ships its stylesheet as `showcase/vendor/dialkit.min.css` and loads
15
+ its script from a CDN at a pinned version. Licence:
16
+ `showcase/vendor/DIALKIT-LICENSE`.
17
+ - **[Aspekta](https://github.com/ivodolenc/aspekta)** — © 2025 Ivo Dolenc,
18
+ SIL Open Font License 1.1. The one typeface of the studio, the wizard and
19
+ the bundled stage themes. Redistributed as
20
+ `src/studio/theme/fonts/AspektaVF.woff2` (and embedded from it into the
21
+ stage themes) with the licence text beside it:
22
+ `src/studio/theme/fonts/OFL.txt`. The font stays under the OFL; the MIT
23
+ licence of this repository does not cover it.
24
+
25
+ ## From bydiorama/ui
26
+
27
+ **[bydiorama/ui](https://github.com/bydiorama/ui)** — © 2026 Diorama
28
+ (bydiorama), MIT, the same owner and licence as this repository.
29
+
30
+ - `src/dom/ui-themes.css.ts` and `src/studio/theme/graphite.css.ts` are
31
+ generated from its token resolver by `scripts/ui-theme.ts`.
32
+ - `src/studio/fade.ts` ports its Fade component to plain DOM, with the
33
+ perceptual ramp tables copied verbatim.
34
+ - The `ui.*` easing curves are its `--ui-ease-*` tokens.
35
+
36
+ Some of those tokens (`--ui-press-scale`, `--ui-stagger-step`, the hit-area
37
+ sizes) encode values ui adapted from
38
+ [jakubkrehel/skills](https://github.com/jakubkrehel/skills) (© 2026 Jakub
39
+ Krehel, MIT). See ui's [CREDITS.md](https://github.com/bydiorama/ui/blob/main/CREDITS.md).
40
+
41
+ ## Tools, not shipped
42
+
43
+ Dev dependencies in `package.json` and `requirements.txt` (TypeScript,
44
+ esbuild, Playwright, yaml, PyYAML) and the ffmpeg the render commands call
45
+ are used under their own licences. None of their files are in this
46
+ repository.
47
+
48
+ ## References
49
+
50
+ Library entries describe patterns, not sources (see `docs/MAINTENANCE.md`).
51
+ The films and pages that informed them are watched, turned into generic
52
+ observations and let go; no footage, frames, artwork or wording from them is
53
+ in this repository.
54
+
55
+ ## Trademarks
56
+
57
+ Every name above is used **nominatively**, to say what this work uses or
58
+ draws on. Product and company names are the trademarks of their owners, and a
59
+ copyright licence grants no trademark rights: MIT licenses the code, not the
60
+ name. Nothing here implies sponsorship, endorsement or affiliation. "Diorama"
61
+ and "bydiorama" name the authors of this repository; the MIT licence does not
62
+ grant their use as a mark either.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Diorama (bydiorama)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,143 @@
1
- # Temporary Holding Version
1
+ # Motion Library
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![validate](https://github.com/bydiorama/motion/actions/workflows/validate.yml/badge.svg)](https://github.com/bydiorama/motion/actions/workflows/validate.yml)
4
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5
+
6
+ Our own vocabulary for making motion videos with code. It is the reference that the motion skills read.
7
+
8
+ A video = **one narrative + one style + brand input**.
9
+
10
+ | Layer | What it is | Folder |
11
+ |---|---|---|
12
+ | Primitive | One move: an effect, a transition, a text animation, a 3D rig, a scene type | `library/primitives/<group>/` |
13
+ | Style | Our named look: a set of preferred primitives, timing and surface | `library/styles/` |
14
+ | Narrative | A story structure: beats in order, with a share of time each | `library/narratives/` |
15
+
16
+ The runtime turns this vocabulary into films:
17
+
18
+ | Part | What it is | Where |
19
+ |---|---|---|
20
+ | Film | A video as JSON: scenes of layers, each layer a primitive with props and params. An agent writes it | `films/<name>.film.json` |
21
+ | Tune | A person's overrides and pinned notes, kept beside the film. The agent reads it back | `films/<name>.tune.json` |
22
+ | Runtime | Resolves a film (checks, timing, tokens) and draws any frame from its time alone | `src/` |
23
+ | Studio | DialKit panel and timeline for directing a film; writes only the tune | `motion preview` |
24
+ | Catalog | What a film may use: primitives, params, tokens, eases. Generated | `catalog.json`, `schema/film.schema.json` |
25
+
26
+ Other parts:
27
+
28
+ - `INDEX.md`: one line per entry. Generated. Start here.
29
+ - `tokens.yaml`: global timing and easing defaults. Styles override them.
30
+ - `recipes/`: code for primitives, one file per slug, all with the same interface.
31
+ - `examples/`: example storyboards (what a director skill outputs).
32
+ - `templates/`: starting files for new entries.
33
+ - `showcase/`: a short film about the library, built from its own entries.
34
+ - `tools/`: validation, index building, recipe checking, showcase build.
35
+ - `.github/workflows/validate.yml`: runs the checks on every pull request.
36
+ - `docs/DESIGN.md`: why the library is built this way.
37
+ - `docs/MAINTENANCE.md`: how to add references, change entries and release versions.
38
+
39
+ ## npm package
40
+
41
+ The package exposes the `motion` CLI, the ESM runtime at `@bydiorama/motion`, and film authoring helpers at `@bydiorama/motion/build`. It requires Node 22.18 or later and includes TypeScript declarations.
42
+
43
+ To install from a release checkout before publication:
44
+
45
+ ```sh
46
+ pnpm install --frozen-lockfile
47
+ npm pack --pack-destination dist
48
+ # In the project where you want to use Motion
49
+ npm install /path/to/motion/dist/bydiorama-motion-0.4.0.tgz
50
+ npx motion catalog
51
+ ```
52
+
53
+ After publication, install by name with `npm install @bydiorama/motion`. Try the included film with `npx motion validate node_modules/@bydiorama/motion/films/feature-announcement.film.json`.
54
+
55
+ ## Daily commands
56
+
57
+ ```bash
58
+ python3 tools/new_entry.py primitive fx/my-effect # start a new entry
59
+ python3 tools/validate.py # check everything
60
+ python3 tools/build_index.py # refresh INDEX.md
61
+ python3 tools/check_recipe.py type/word-build # test one recipe in Chrome
62
+ python3 tools/build_showcase.py # rebuild showcase/index.html
63
+ ```
64
+
65
+ Setup: `pip install -r requirements.txt` (Python 3.10+). Recipe checks also need Chrome.
66
+
67
+ ## Use it in Claude Code
68
+
69
+ The repository is also a Claude Code plugin. It brings the `motion-film` skill, which writes, checks and revises films, and the `motion` command, to any project. Install it once:
70
+
71
+ ```
72
+ /plugin install motion --marketplace bydiorama/motion
73
+ ```
74
+
75
+ On Claude Code before 2.1.275, add the marketplace first:
76
+
77
+ ```
78
+ /plugin marketplace add bydiorama/motion
79
+ /plugin install motion@diorama-motion
80
+ ```
81
+
82
+ Then ask for a video, or paste a brief from the wizard. Claude writes `films/<name>.film.json` in your project and runs `motion` (validate, pace, stills, check), and you direct it with `motion preview films/<name>.film.json`. Run `/motion:motion-film` to call the skill by name.
83
+
84
+ - **First session:** a SessionStart hook installs the runtime's packages (`dependencies` in `package.json`) with npm into the plugin's data folder, which takes about ten seconds, once. Node 22.18 or later.
85
+ - **Drawing:** stills, check and render need a Chromium. Pass `--browser` (or set `MOTION_CHROMIUM`) to use your Chrome, Brave or Edge, or let Claude install Playwright's Chromium. `render` and `beats` also need ffmpeg.
86
+ - **Updates:** the plugin has no version number, so it follows `main`. Turn on auto-update for the `diorama-motion` marketplace in `/plugin`, or run `/plugin marketplace update diorama-motion`.
87
+ - **Claude Code only:** claude.ai and Cowork don't install plugins that ship a `bin/` folder.
88
+
89
+ The plugin is this whole repository: `.claude-plugin/` holds the manifest and the marketplace, `hooks/hooks.json` the setup hook (`scripts/plugin-setup.mjs`), and `bin/motion` the command. Check changes with `claude plugin validate .`.
90
+
91
+ ## Use it in ChatGPT
92
+
93
+ Select **Diorama Motion** in ChatGPT and paste a Motion brief, or attach a film and its studio notes. The plugin returns an editable `.film.json`. It includes the drawable catalog, narrative and style library, film schema, craft guide and an example. In sessions with Node and file access it can check film structure and timing. Use the local Motion CLI for the studio, footage capture and MP4 rendering.
94
+
95
+ To build the private plugin ZIP from a checkout, run `pnpm install --frozen-lockfile` and `python3 scripts/package-chatgpt.py`. The result is `dist/diorama-motion.zip`. The builder takes the references and film checker from the same checkout as the CLI.
96
+
97
+ ## Start with a brief
98
+
99
+ ```bash
100
+ node bin/motion.mjs wizard # questions in the browser, at http://127.0.0.1:4322
101
+ node bin/motion.mjs wizard --out wizard.html # the same page as one file you can share
102
+ node bin/motion.mjs brief answers.json # the same brief from saved answers, no browser
103
+ ```
104
+
105
+ The wizard asks one question per screen: video type (product, brand, motion graphics or social, eleven in all), feel, message, what's on screen, moves, length, formats, and whether an agent or a chat assistant will make it. The look follows from the video type. Video types, feels and moves have thumbnails drawn by the runtime itself (`src/wizard/previews.ts`): the selected one plays, the rest hold a still. It then writes a Markdown brief to copy into Claude or ChatGPT. The brief has the beats with timings, the moves that can be drawn (and the ones in the library that can't be drawn yet), timing tokens, a starter film that validates, and what "done" means. The same answers always give the same brief: the wizard and `motion brief` call one pure function (`src/brief/brief.ts`).
106
+
107
+ Agents working in this repository use the `motion-film` skill (`.claude/skills/motion-film/`). It sets the order of work: read the brief and catalog, plan beats, write, validate, look at stills, check, hand over to the studio, then answer notes.
108
+
109
+ ## Films
110
+
111
+ ```bash
112
+ pnpm install # Node 24+
113
+ node bin/motion.mjs catalog # what a film may use (read this first)
114
+ node bin/motion.mjs validate films/showcase.film.json # errors with paths, hints and "did you mean"
115
+ node bin/motion.mjs preview films/showcase.film.json # studio at http://127.0.0.1:4321
116
+ node bin/motion.mjs stills films/showcase.film.json # key frames and a contact sheet
117
+ node bin/motion.mjs check films/showcase.film.json # frames repeat exactly, nothing off stage (--loop: the seam)
118
+ node bin/motion.mjs make examples/builder.film.mjs # a film written as a script: checked, then written as JSON
119
+ node bin/motion.mjs capture https://example.com --sections # a 2× screenshot per section, banners hidden
120
+ node bin/motion.mjs record http://localhost:5173 --duration 4 --out footage.mp4 # a live page as footage, frame-exact (--marks: element boxes per frame)
121
+ node bin/motion.mjs review films/showcase.film.json # wiggle, judder, jumps, floating, flicker in the render
122
+ node bin/motion.mjs render films/showcase.film.json # MP4 and a report (needs ffmpeg)
123
+ node bin/motion.mjs bake films/showcase.film.json # write agreed tuning into the film
124
+ pnpm verify # type-check, tests, catalog, films
125
+ ```
126
+
127
+ Commands that draw (`stills`, `check`, `render`, `capture`, `record`) use Playwright's Chromium. Without it, point them at any installed Chromium-based browser: `--browser "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"`, or set `MOTION_CHROMIUM` once. Films with `el/video` or `rig/footage-plane` need ffmpeg, which pulls the frames each layer shows; `render` and `review` need it too.
128
+
129
+ The studio is one screen: scenes on the left, each with a still and its intent, the stage with a transport under it (Space plays, ←/→ step a frame, Shift steps a second, [ and ] jump between scenes), an inspector with Tune, Notes and Issues on the right, and the DialKit timeline along the bottom.
130
+
131
+ Agents write the film and never the tune. People direct in the studio: every dial is generated from the film and the catalog, dragging a scene clip sets its length, and notes pinned to a moment are stored for the agent. Overrides address scenes and layers by id, so they survive the agent rewriting the film; an override whose target is gone is reported, not dropped.
132
+
133
+ The studio is drawn in bydiorama/ui's Graphite theme (Aspekta, no chroma). Films read `--ui-*` tokens too: pass a ui theme with `--css` and the stage uses its colours, fonts and easing curves (`ui.default`, `ui.spring`, …). A film can also set `"theme": { "ui": "zero" }` (or `graphite`, `hockney`): the stage then carries that bundled ui theme and Aspekta itself, in the studio, in stills and in renders. The demo films and the wizard's thumbnails are drawn this way. `node scripts/ui-theme.ts` regenerates the studio theme and the bundled stage themes from the ui token resolver.
134
+
135
+ ## The one rule
136
+
137
+ Entries describe **patterns, not sources**. No links, no brand names, no "seen in". References are inspiration: they are watched, broken into generic observations, and then thrown away. See `docs/MAINTENANCE.md`.
138
+
139
+ ## Licence
140
+
141
+ MIT, © 2026 Diorama (bydiorama). See [LICENSE](LICENSE).
142
+
143
+ Two bundled files keep their own licences: the DialKit stylesheet (MIT, `showcase/vendor/DIALKIT-LICENSE`) and the Aspekta typeface (SIL Open Font License 1.1, `src/studio/theme/fonts/OFL.txt`). [CREDITS.md](CREDITS.md) lists everything this repository bundles or draws on.