agentcut 0.0.0-stage → 0.1.1

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 (248) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -2
  3. package/dist/bridge.d.ts +45 -0
  4. package/dist/bridge.js +691 -0
  5. package/dist/bridge.js.map +1 -0
  6. package/dist/config.d.ts +13 -0
  7. package/dist/config.js +50 -0
  8. package/dist/config.js.map +1 -0
  9. package/dist/index.d.ts +2 -0
  10. package/dist/index.js +35 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/log.d.ts +1 -0
  13. package/dist/log.js +14 -0
  14. package/dist/log.js.map +1 -0
  15. package/dist/studio/agents/claude.d.ts +7 -0
  16. package/dist/studio/agents/claude.js +155 -0
  17. package/dist/studio/agents/claude.js.map +1 -0
  18. package/dist/studio/agents/codex.d.ts +4 -0
  19. package/dist/studio/agents/codex.js +169 -0
  20. package/dist/studio/agents/codex.js.map +1 -0
  21. package/dist/studio/agents/index.d.ts +8 -0
  22. package/dist/studio/agents/index.js +50 -0
  23. package/dist/studio/agents/index.js.map +1 -0
  24. package/dist/studio/agents/types.d.ts +131 -0
  25. package/dist/studio/agents/types.js +11 -0
  26. package/dist/studio/agents/types.js.map +1 -0
  27. package/dist/studio/bundler.d.ts +29 -0
  28. package/dist/studio/bundler.js +136 -0
  29. package/dist/studio/bundler.js.map +1 -0
  30. package/dist/studio/chat.d.ts +147 -0
  31. package/dist/studio/chat.js +681 -0
  32. package/dist/studio/chat.js.map +1 -0
  33. package/dist/studio/cli.d.ts +2 -0
  34. package/dist/studio/cli.js +194 -0
  35. package/dist/studio/cli.js.map +1 -0
  36. package/dist/studio/components.d.ts +4 -0
  37. package/dist/studio/components.js +36 -0
  38. package/dist/studio/components.js.map +1 -0
  39. package/dist/studio/host.d.ts +105 -0
  40. package/dist/studio/host.js +634 -0
  41. package/dist/studio/host.js.map +1 -0
  42. package/dist/studio/http.d.ts +21 -0
  43. package/dist/studio/http.js +240 -0
  44. package/dist/studio/http.js.map +1 -0
  45. package/dist/studio/music.d.ts +35 -0
  46. package/dist/studio/music.js +130 -0
  47. package/dist/studio/music.js.map +1 -0
  48. package/dist/studio/proc.d.ts +11 -0
  49. package/dist/studio/proc.js +69 -0
  50. package/dist/studio/proc.js.map +1 -0
  51. package/dist/studio/projects.d.ts +84 -0
  52. package/dist/studio/projects.js +369 -0
  53. package/dist/studio/projects.js.map +1 -0
  54. package/dist/studio/render.d.ts +24 -0
  55. package/dist/studio/render.js +197 -0
  56. package/dist/studio/render.js.map +1 -0
  57. package/dist/studio/reveal.d.ts +7 -0
  58. package/dist/studio/reveal.js +49 -0
  59. package/dist/studio/reveal.js.map +1 -0
  60. package/dist/studio/schema.d.ts +4152 -0
  61. package/dist/studio/schema.js +358 -0
  62. package/dist/studio/schema.js.map +1 -0
  63. package/dist/studio/tools.d.ts +2 -0
  64. package/dist/studio/tools.js +165 -0
  65. package/dist/studio/tools.js.map +1 -0
  66. package/dist/studio/voice.d.ts +150 -0
  67. package/dist/studio/voice.js +434 -0
  68. package/dist/studio/voice.js.map +1 -0
  69. package/dist/studio/workspace.d.ts +31 -0
  70. package/dist/studio/workspace.js +187 -0
  71. package/dist/studio/workspace.js.map +1 -0
  72. package/package.json +50 -4
  73. package/template/AGENTS.md +13 -0
  74. package/template/components/CATALOG.md +1306 -0
  75. package/template/components/README.md +61 -0
  76. package/template/components/STYLES.md +246 -0
  77. package/template/components/arcade-title/ArcadeTitle.tsx +860 -0
  78. package/template/components/arcade-title/meta.json +28 -0
  79. package/template/components/aurora/Aurora.tsx +63 -0
  80. package/template/components/aurora/meta.json +28 -0
  81. package/template/components/bar-wipe-title/BarWipeTitle.tsx +94 -0
  82. package/template/components/bar-wipe-title/meta.json +29 -0
  83. package/template/components/before-after/BeforeAfter.tsx +89 -0
  84. package/template/components/before-after/meta.json +233 -0
  85. package/template/components/bento-grid/BentoGrid.tsx +202 -0
  86. package/template/components/bento-grid/meta.json +25 -0
  87. package/template/components/blur-in-title/BlurInTitle.tsx +121 -0
  88. package/template/components/blur-in-title/meta.json +32 -0
  89. package/template/components/catalog.json +8730 -0
  90. package/template/components/catalog.ts +103 -0
  91. package/template/components/chat-thread/ChatThread.tsx +128 -0
  92. package/template/components/chat-thread/meta.json +24 -0
  93. package/template/components/checklist/Checklist.tsx +129 -0
  94. package/template/components/checklist/meta.json +25 -0
  95. package/template/components/confetti/Confetti.tsx +109 -0
  96. package/template/components/confetti/meta.json +28 -0
  97. package/template/components/countdown/Countdown.tsx +166 -0
  98. package/template/components/countdown/meta.json +28 -0
  99. package/template/components/cut-and-paste/CutAndPaste.tsx +654 -0
  100. package/template/components/cut-and-paste/meta.json +29 -0
  101. package/template/components/decode-text/DecodeText.tsx +97 -0
  102. package/template/components/decode-text/meta.json +29 -0
  103. package/template/components/editorial-quote/EditorialQuote.tsx +122 -0
  104. package/template/components/editorial-quote/meta.json +28 -0
  105. package/template/components/glitch-title/GlitchTitle.tsx +171 -0
  106. package/template/components/glitch-title/meta.json +32 -0
  107. package/template/components/halftone-wave/HalftoneWave.tsx +106 -0
  108. package/template/components/halftone-wave/meta.json +28 -0
  109. package/template/components/highlighter/Highlighter.tsx +142 -0
  110. package/template/components/highlighter/meta.json +28 -0
  111. package/template/components/hook-card/HookCard.tsx +552 -0
  112. package/template/components/hook-card/meta.json +304 -0
  113. package/template/components/index.ts +149 -0
  114. package/template/components/iris-wipe/IrisWipe.tsx +76 -0
  115. package/template/components/iris-wipe/meta.json +24 -0
  116. package/template/components/kinetic-poster/KineticPoster.tsx +437 -0
  117. package/template/components/kinetic-poster/meta.json +31 -0
  118. package/template/components/kinetic-punch/KineticPunch.tsx +80 -0
  119. package/template/components/kinetic-punch/meta.json +30 -0
  120. package/template/components/lava-lamp/LavaLamp.tsx +92 -0
  121. package/template/components/lava-lamp/meta.json +28 -0
  122. package/template/components/letter-cascade/LetterCascade.tsx +102 -0
  123. package/template/components/letter-cascade/meta.json +29 -0
  124. package/template/components/lib.ts +179 -0
  125. package/template/components/light-leak/LightLeakTransition.tsx +43 -0
  126. package/template/components/light-leak/meta.json +74 -0
  127. package/template/components/line-diagram/LineDiagram.tsx +205 -0
  128. package/template/components/line-diagram/meta.json +217 -0
  129. package/template/components/list-card/ListCard.tsx +104 -0
  130. package/template/components/list-card/meta.json +232 -0
  131. package/template/components/logo-sting/LogoSting.tsx +129 -0
  132. package/template/components/logo-sting/meta.json +29 -0
  133. package/template/components/looks.tsx +1447 -0
  134. package/template/components/lower-third/LowerThird.tsx +100 -0
  135. package/template/components/lower-third/meta.json +24 -0
  136. package/template/components/marquee/Marquee.tsx +100 -0
  137. package/template/components/marquee/meta.json +30 -0
  138. package/template/components/notification/Notification.tsx +115 -0
  139. package/template/components/notification/meta.json +27 -0
  140. package/template/components/outline-fill/OutlineFill.tsx +106 -0
  141. package/template/components/outline-fill/meta.json +28 -0
  142. package/template/components/panel-sweep/PanelSweep.tsx +86 -0
  143. package/template/components/panel-sweep/meta.json +25 -0
  144. package/template/components/prompt-box/PromptBox.tsx +131 -0
  145. package/template/components/prompt-box/meta.json +24 -0
  146. package/template/components/props.ts +73 -0
  147. package/template/components/quote-card/QuoteCard.tsx +71 -0
  148. package/template/components/quote-card/meta.json +216 -0
  149. package/template/components/shape-shift/ShapeShift.tsx +420 -0
  150. package/template/components/shape-shift/meta.json +31 -0
  151. package/template/components/slide-zoom-message/SlideZoomMessage.tsx +179 -0
  152. package/template/components/slide-zoom-message/meta.json +199 -0
  153. package/template/components/social-post/SocialPost.tsx +185 -0
  154. package/template/components/social-post/meta.json +30 -0
  155. package/template/components/split-flap/SplitFlap.tsx +191 -0
  156. package/template/components/split-flap/meta.json +29 -0
  157. package/template/components/spotlight-grid/SpotlightGrid.tsx +84 -0
  158. package/template/components/spotlight-grid/meta.json +25 -0
  159. package/template/components/stat-counter/StatCounter.tsx +117 -0
  160. package/template/components/stat-counter/meta.json +27 -0
  161. package/template/components/sticker-badge/StickerBadge.tsx +46 -0
  162. package/template/components/sticker-badge/meta.json +220 -0
  163. package/template/components/sticker-slam/StickerSlam.tsx +941 -0
  164. package/template/components/sticker-slam/meta.json +34 -0
  165. package/template/components/style-layer.tsx +233 -0
  166. package/template/components/styles.json +762 -0
  167. package/template/components/styles.ts +113 -0
  168. package/template/components/target-lock/TargetLock.tsx +662 -0
  169. package/template/components/target-lock/meta.json +32 -0
  170. package/template/components/text-reveal/TextReveal.tsx +99 -0
  171. package/template/components/text-reveal/meta.json +28 -0
  172. package/template/components/tile-wipe/TileWipe.tsx +75 -0
  173. package/template/components/tile-wipe/meta.json +24 -0
  174. package/template/components/type-zoom/TypeZoom.tsx +103 -0
  175. package/template/components/type-zoom/meta.json +27 -0
  176. package/template/components/types.ts +66 -0
  177. package/template/components/typewriter/Typewriter.tsx +112 -0
  178. package/template/components/typewriter/meta.json +29 -0
  179. package/template/components/word-pop/WordPop.tsx +59 -0
  180. package/template/components/word-pop/meta.json +237 -0
  181. package/template/components/word-stack/WordStack.tsx +122 -0
  182. package/template/components/word-stack/meta.json +27 -0
  183. package/template/components/word-swap/WordSwap.tsx +127 -0
  184. package/template/components/word-swap/meta.json +30 -0
  185. package/template/presets/charcoal-sketch/PROMPT.md +48 -0
  186. package/template/presets/charcoal-sketch/assets/paper/grain-0.png +0 -0
  187. package/template/presets/charcoal-sketch/assets/paper/grain-1.png +0 -0
  188. package/template/presets/charcoal-sketch/assets/paper/grain-2.png +0 -0
  189. package/template/presets/charcoal-sketch/assets/paper/sketch-paper.jpg +0 -0
  190. package/template/presets/charcoal-sketch/assets/paper/smudge.png +0 -0
  191. package/template/presets/charcoal-sketch/poster.jpg +0 -0
  192. package/template/presets/charcoal-sketch/preset.json +17 -0
  193. package/template/presets/charcoal-sketch/preview.mp4 +0 -0
  194. package/template/presets/charcoal-sketch/scenes/Grain.tsx +23 -0
  195. package/template/presets/charcoal-sketch/scenes/Paper.tsx +17 -0
  196. package/template/presets/charcoal-sketch/scenes/examples/Agents.tsx +100 -0
  197. package/template/presets/charcoal-sketch/scenes/examples/Approvals.tsx +110 -0
  198. package/template/presets/charcoal-sketch/scenes/examples/Blog.tsx +105 -0
  199. package/template/presets/charcoal-sketch/scenes/examples/EndCard.tsx +41 -0
  200. package/template/presets/charcoal-sketch/scenes/examples/Hook.tsx +130 -0
  201. package/template/presets/charcoal-sketch/scenes/examples/Ideas.tsx +92 -0
  202. package/template/presets/charcoal-sketch/scenes/examples/Posting.tsx +128 -0
  203. package/template/presets/charcoal-sketch/scenes/lib/painfix.tsx +119 -0
  204. package/template/presets/charcoal-sketch/scenes/lib/sketch.tsx +291 -0
  205. package/template/presets/charcoal-sketch/scripts/build_layers.example.py +193 -0
  206. package/template/presets/charcoal-sketch/scripts/duck_music.py +34 -0
  207. package/template/presets/charcoal-sketch/scripts/make_textures.py +93 -0
  208. package/template/presets/punk-cut-paper/PROMPT.md +37 -0
  209. package/template/presets/punk-cut-paper/assets/paper/desk-cream.jpg +0 -0
  210. package/template/presets/punk-cut-paper/assets/paper/grain-overlay.png +0 -0
  211. package/template/presets/punk-cut-paper/assets/paper/halftone-black.png +0 -0
  212. package/template/presets/punk-cut-paper/assets/paper/halftone-red.png +0 -0
  213. package/template/presets/punk-cut-paper/assets/paper/halftone-yellow.png +0 -0
  214. package/template/presets/punk-cut-paper/assets/paper/kraft.jpg +0 -0
  215. package/template/presets/punk-cut-paper/assets/paper/newsprint.jpg +0 -0
  216. package/template/presets/punk-cut-paper/assets/paper/paper-cream.jpg +0 -0
  217. package/template/presets/punk-cut-paper/assets/paper/paper-white.jpg +0 -0
  218. package/template/presets/punk-cut-paper/assets/paper/tape.png +0 -0
  219. package/template/presets/punk-cut-paper/build_layers.example.py +150 -0
  220. package/template/presets/punk-cut-paper/poster.jpg +0 -0
  221. package/template/presets/punk-cut-paper/preset.json +15 -0
  222. package/template/presets/punk-cut-paper/preview.mp4 +0 -0
  223. package/template/presets/punk-cut-paper/scenes/Backdrop.tsx +76 -0
  224. package/template/presets/punk-cut-paper/scenes/Motif.tsx +376 -0
  225. package/template/presets/punk-cut-paper/scenes/Photo.tsx +73 -0
  226. package/template/presets/punk-cut-paper/scenes/Ransom.tsx +119 -0
  227. package/template/presets/punk-cut-paper/scenes/Xerox.tsx +31 -0
  228. package/template/presets/punk-cut-paper/scenes/lib/punk.tsx +208 -0
  229. package/template/runtime/composition.tsx +920 -0
  230. package/template/runtime/helpers.tsx +228 -0
  231. package/template/runtime/index.tsx +22 -0
  232. package/template/runtime/types.ts +248 -0
  233. package/template/skill/SKILL.md +149 -0
  234. package/template/skill/references/browser-export.md +61 -0
  235. package/template/skill/references/components.md +38 -0
  236. package/template/skill/references/craft.md +53 -0
  237. package/template/skill/references/cursor.md +91 -0
  238. package/template/skill/references/footage.md +73 -0
  239. package/template/skill/references/format.md +140 -0
  240. package/template/skill/references/presets.md +56 -0
  241. package/template/skill/references/sound.md +128 -0
  242. package/template/starter/.studio/chat.json +1 -0
  243. package/template/starter/assets/.keep +0 -0
  244. package/template/starter/layers.json +46 -0
  245. package/template/starter/notes.md +4 -0
  246. package/template/starter/project.json +13 -0
  247. package/template/starter/renders/.keep +0 -0
  248. package/template/starter/scenes/Title.tsx +38 -0
@@ -0,0 +1,304 @@
1
+ {
2
+ "id": "hook-card",
3
+ "name": "Hook Card",
4
+ "category": "Talking Head",
5
+ "durationInFrames": 105,
6
+ "layer": "overlay",
7
+ "stillAt": 0.6,
8
+ "description": "The opening title of a talking-head video, laid out around the speaker the project style's way: split with a torn or ruled seam, a taped photo, a terminal window or a rounded inset.",
9
+ "useWhen": "The first 2–4 s of a talking-head or creator video, a section opener, a big promise. Layouts that frame the speaker (top, stack, collage, window, hud, frame, tv, inset) leave a hole: give the speaker's video clip this box for the hook's duration (split the clip at the hook's end). Mobile — top/stack: {x:0,y:split/100,width:1,height:1-split/100}; collage: {x:0.11,y:0.45,width:0.78,height:0.41}; window: {x:0.07,y:0.47,width:0.86,height:0.42}; hud: {x:0.06,y:0.45,width:0.88,height:0.45}; frame: {x:0.1,y:0.44,width:0.8,height:0.46}; tv: {x:0.13,y:0.45,width:0.74,height:0.34} with radius 44; inset: {x:0.08,y:0.47,width:0.84,height:0.43} with radius 36. Wide — top/stack: {x:split/100,y:0,width:1-split/100,height:1}; collage: {x:0.53,y:0.14,width:0.38,height:0.72}; window: {x:0.5,y:0.2,width:0.44,height:0.66}; hud: {x:0.5,y:0.14,width:0.44,height:0.72}; frame: {x:0.52,y:0.14,width:0.4,height:0.72}; tv: {x:0.53,y:0.16,width:0.36,height:0.56} with radius 44; inset: {x:0.52,y:0.12,width:0.4,height:0.76} with radius 36. \"full\" covers the frame; \"card\" floats over full-frame footage. Mark the accent with *stars*.",
10
+ "tags": [
11
+ "hook",
12
+ "title",
13
+ "talking head",
14
+ "creator",
15
+ "split",
16
+ "intro"
17
+ ],
18
+ "props": {
19
+ "kicker": {
20
+ "type": "text",
21
+ "label": "Kicker",
22
+ "default": "Claude Code just got",
23
+ "help": "Small line above (empty for none)."
24
+ },
25
+ "lines": {
26
+ "type": "lines",
27
+ "label": "Headline",
28
+ "default": [
29
+ "Mods"
30
+ ],
31
+ "max": 3
32
+ },
33
+ "sub": {
34
+ "type": "text",
35
+ "label": "Sub line",
36
+ "default": "*5* to install now",
37
+ "help": "*Starred* words get the accent chip."
38
+ },
39
+ "tagline": {
40
+ "type": "text",
41
+ "label": "Tagline",
42
+ "default": "five mods that feel *illegal*",
43
+ "help": "A phrase on the seam, under the photo or on the window bar (empty for none)."
44
+ },
45
+ "layout": {
46
+ "type": "select",
47
+ "label": "Layout",
48
+ "default": "top",
49
+ "options": [
50
+ {
51
+ "value": "top",
52
+ "label": "Split, torn/ruled seam"
53
+ },
54
+ {
55
+ "value": "stack",
56
+ "label": "Split, centered"
57
+ },
58
+ {
59
+ "value": "collage",
60
+ "label": "Taped photo"
61
+ },
62
+ {
63
+ "value": "window",
64
+ "label": "Terminal window"
65
+ },
66
+ {
67
+ "value": "hud",
68
+ "label": "HUD brackets"
69
+ },
70
+ {
71
+ "value": "frame",
72
+ "label": "Thin frame"
73
+ },
74
+ {
75
+ "value": "tv",
76
+ "label": "90s TV set"
77
+ },
78
+ {
79
+ "value": "inset",
80
+ "label": "Rounded inset"
81
+ },
82
+ {
83
+ "value": "full",
84
+ "label": "Full frame"
85
+ },
86
+ {
87
+ "value": "card",
88
+ "label": "Card over video"
89
+ }
90
+ ]
91
+ },
92
+ "split": {
93
+ "type": "number",
94
+ "label": "Split",
95
+ "default": 54,
96
+ "min": 30,
97
+ "max": 75,
98
+ "step": 1,
99
+ "unit": "%",
100
+ "help": "Where the speaker starts (top and stack)."
101
+ },
102
+ "align": {
103
+ "type": "select",
104
+ "label": "Align",
105
+ "default": "left",
106
+ "options": [
107
+ {
108
+ "value": "left",
109
+ "label": "Left"
110
+ },
111
+ {
112
+ "value": "center",
113
+ "label": "Center"
114
+ }
115
+ ]
116
+ },
117
+ "size": {
118
+ "type": "number",
119
+ "label": "Size",
120
+ "default": 22,
121
+ "min": 6,
122
+ "max": 34,
123
+ "step": 0.5,
124
+ "unit": "% of frame"
125
+ },
126
+ "look": {
127
+ "type": "select",
128
+ "style": "look",
129
+ "label": "Look",
130
+ "default": "ink",
131
+ "options": [
132
+ {
133
+ "value": "ink",
134
+ "label": "Ink (bold borders)"
135
+ },
136
+ {
137
+ "value": "paper",
138
+ "label": "Cut paper"
139
+ },
140
+ {
141
+ "value": "notebook",
142
+ "label": "Notebook"
143
+ },
144
+ {
145
+ "value": "crt",
146
+ "label": "Terminal"
147
+ },
148
+ {
149
+ "value": "neon",
150
+ "label": "Neon (cyberpunk)"
151
+ },
152
+ {
153
+ "value": "line",
154
+ "label": "Line (black & white)"
155
+ },
156
+ {
157
+ "value": "vhs",
158
+ "label": "VHS (90s tape)"
159
+ },
160
+ {
161
+ "value": "clean",
162
+ "label": "Clean"
163
+ }
164
+ ],
165
+ "help": "The graphic language. Follows the project style."
166
+ },
167
+ "font": {
168
+ "type": "select",
169
+ "style": "font",
170
+ "label": "Headline font",
171
+ "default": "archivo",
172
+ "options": [
173
+ {
174
+ "value": "archivo",
175
+ "label": "Archivo Black"
176
+ },
177
+ {
178
+ "value": "condensed",
179
+ "label": "Anton"
180
+ },
181
+ {
182
+ "value": "grotesk",
183
+ "label": "Space Grotesk"
184
+ },
185
+ {
186
+ "value": "caveat",
187
+ "label": "Caveat"
188
+ },
189
+ {
190
+ "value": "pixel",
191
+ "label": "VT323"
192
+ },
193
+ {
194
+ "value": "tech",
195
+ "label": "Orbitron"
196
+ },
197
+ {
198
+ "value": "heavy",
199
+ "label": "Montserrat"
200
+ },
201
+ {
202
+ "value": "retro",
203
+ "label": "Bungee"
204
+ },
205
+ {
206
+ "value": "sans",
207
+ "label": "Inter"
208
+ },
209
+ {
210
+ "value": "display",
211
+ "label": "Bricolage"
212
+ },
213
+ {
214
+ "value": "serif",
215
+ "label": "Instrument Serif"
216
+ },
217
+ {
218
+ "value": "fraunces",
219
+ "label": "Fraunces"
220
+ },
221
+ {
222
+ "value": "wide",
223
+ "label": "Unbounded"
224
+ }
225
+ ]
226
+ },
227
+ "accent": {
228
+ "type": "color",
229
+ "style": "accent",
230
+ "label": "Accent",
231
+ "default": "#ff3d8b"
232
+ },
233
+ "panel": {
234
+ "type": "color",
235
+ "style": "panel",
236
+ "label": "Card",
237
+ "default": "#ffffff"
238
+ },
239
+ "panelText": {
240
+ "type": "color",
241
+ "style": "panelText",
242
+ "label": "Card text",
243
+ "default": "#111111"
244
+ },
245
+ "line": {
246
+ "type": "color",
247
+ "style": "line",
248
+ "label": "Ink",
249
+ "default": "#111111",
250
+ "help": "Borders, hard shadows, pen strokes."
251
+ },
252
+ "backdrop": {
253
+ "type": "color",
254
+ "style": "backdrop",
255
+ "label": "Backdrop",
256
+ "default": "#ffe14d",
257
+ "help": "Full-frame and split backgrounds."
258
+ },
259
+ "onVideo": {
260
+ "type": "color",
261
+ "style": "text",
262
+ "label": "Text on video",
263
+ "default": "#ffffff"
264
+ }
265
+ },
266
+ "examples": [
267
+ {
268
+ "name": "Split hook",
269
+ "props": {}
270
+ },
271
+ {
272
+ "name": "Centered stack",
273
+ "props": {
274
+ "layout": "stack",
275
+ "kicker": "",
276
+ "lines": [
277
+ "Mods"
278
+ ],
279
+ "sub": "*5* to install now"
280
+ }
281
+ },
282
+ {
283
+ "name": "Terminal window",
284
+ "props": {
285
+ "layout": "window",
286
+ "look": "crt",
287
+ "font": "pixel",
288
+ "tagline": ""
289
+ }
290
+ },
291
+ {
292
+ "name": "Full frame",
293
+ "props": {
294
+ "layout": "full",
295
+ "kicker": "What it costs you",
296
+ "lines": [
297
+ "Per *month*"
298
+ ],
299
+ "sub": "",
300
+ "tagline": ""
301
+ }
302
+ }
303
+ ]
304
+ }
@@ -0,0 +1,149 @@
1
+ // The registry. Add a component: create its folder (Component.tsx + meta.json), add its meta to
2
+ // catalog.ts and its component to COMPONENTS below. The studio preview, the browser export, the
3
+ // gallery, the inspector form and Claude's catalog all read from here.
4
+ import { createElement, type ComponentType } from "react";
5
+ import type { MotionBaseProps, MotionComponent, PropValues } from "./types";
6
+
7
+ import { COMPONENT_METAS } from "./catalog";
8
+ import { useMotionFonts } from "./lib";
9
+ import { LightLeakTransition } from "./light-leak/LightLeakTransition";
10
+ import { LowerThird } from "./lower-third/LowerThird";
11
+ import { PromptBox } from "./prompt-box/PromptBox";
12
+ import { SlideZoomMessage } from "./slide-zoom-message/SlideZoomMessage";
13
+ import { StatCounter } from "./stat-counter/StatCounter";
14
+ import { TextReveal } from "./text-reveal/TextReveal";
15
+ import { BlurInTitle } from "./blur-in-title/BlurInTitle";
16
+ import { LetterCascade } from "./letter-cascade/LetterCascade";
17
+ import { Typewriter } from "./typewriter/Typewriter";
18
+ import { WordSwap } from "./word-swap/WordSwap";
19
+ import { BarWipeTitle } from "./bar-wipe-title/BarWipeTitle";
20
+ import { KineticPunch } from "./kinetic-punch/KineticPunch";
21
+ import { DecodeText } from "./decode-text/DecodeText";
22
+ import { OutlineFill } from "./outline-fill/OutlineFill";
23
+ import { EditorialQuote } from "./editorial-quote/EditorialQuote";
24
+ import { Highlighter } from "./highlighter/Highlighter";
25
+ import { LogoSting } from "./logo-sting/LogoSting";
26
+ import { Marquee } from "./marquee/Marquee";
27
+ import { Aurora } from "./aurora/Aurora";
28
+ import { LavaLamp } from "./lava-lamp/LavaLamp";
29
+ import { SpotlightGrid } from "./spotlight-grid/SpotlightGrid";
30
+ import { IrisWipe } from "./iris-wipe/IrisWipe";
31
+ import { PanelSweep } from "./panel-sweep/PanelSweep";
32
+ import { TileWipe } from "./tile-wipe/TileWipe";
33
+ import { Notification } from "./notification/Notification";
34
+ import { ChatThread } from "./chat-thread/ChatThread";
35
+ import { StickerSlam } from "./sticker-slam/StickerSlam";
36
+ import { GlitchTitle } from "./glitch-title/GlitchTitle";
37
+ import { SplitFlap } from "./split-flap/SplitFlap";
38
+ import { Countdown } from "./countdown/Countdown";
39
+ import { WordStack } from "./word-stack/WordStack";
40
+ import { TypeZoom } from "./type-zoom/TypeZoom";
41
+ import { HalftoneWave } from "./halftone-wave/HalftoneWave";
42
+ import { BentoGrid } from "./bento-grid/BentoGrid";
43
+ import { SocialPost } from "./social-post/SocialPost";
44
+ import { Checklist } from "./checklist/Checklist";
45
+ import { Confetti } from "./confetti/Confetti";
46
+ import { KineticPoster } from "./kinetic-poster/KineticPoster";
47
+ import { ArcadeTitle } from "./arcade-title/ArcadeTitle";
48
+ import { CutAndPaste } from "./cut-and-paste/CutAndPaste";
49
+ import { TargetLock } from "./target-lock/TargetLock";
50
+ import { ShapeShift } from "./shape-shift/ShapeShift";
51
+ import { HookCard } from "./hook-card/HookCard";
52
+ import { WordPop } from "./word-pop/WordPop";
53
+ import { StickerBadge } from "./sticker-badge/StickerBadge";
54
+ import { ListCard } from "./list-card/ListCard";
55
+ import { QuoteCard } from "./quote-card/QuoteCard";
56
+ import { BeforeAfter } from "./before-after/BeforeAfter";
57
+ import { LineDiagram } from "./line-diagram/LineDiagram";
58
+
59
+ type AnyComponent = ComponentType<MotionBaseProps & PropValues>;
60
+ const COMPONENTS: Record<string, unknown> = {
61
+ "text-reveal": TextReveal,
62
+ "slide-zoom-message": SlideZoomMessage,
63
+ "lower-third": LowerThird,
64
+ "stat-counter": StatCounter,
65
+ "prompt-box": PromptBox,
66
+ "light-leak": LightLeakTransition,
67
+ "blur-in-title": BlurInTitle,
68
+ "letter-cascade": LetterCascade,
69
+ "typewriter": Typewriter,
70
+ "word-swap": WordSwap,
71
+ "bar-wipe-title": BarWipeTitle,
72
+ "kinetic-punch": KineticPunch,
73
+ "decode-text": DecodeText,
74
+ "outline-fill": OutlineFill,
75
+ "editorial-quote": EditorialQuote,
76
+ "highlighter": Highlighter,
77
+ "logo-sting": LogoSting,
78
+ "marquee": Marquee,
79
+ "aurora": Aurora,
80
+ "lava-lamp": LavaLamp,
81
+ "spotlight-grid": SpotlightGrid,
82
+ "iris-wipe": IrisWipe,
83
+ "panel-sweep": PanelSweep,
84
+ "tile-wipe": TileWipe,
85
+ "notification": Notification,
86
+ "chat-thread": ChatThread,
87
+ "sticker-slam": StickerSlam,
88
+ "glitch-title": GlitchTitle,
89
+ "split-flap": SplitFlap,
90
+ "countdown": Countdown,
91
+ "word-stack": WordStack,
92
+ "type-zoom": TypeZoom,
93
+ "halftone-wave": HalftoneWave,
94
+ "bento-grid": BentoGrid,
95
+ "social-post": SocialPost,
96
+ "checklist": Checklist,
97
+ "confetti": Confetti,
98
+ "kinetic-poster": KineticPoster,
99
+ "arcade-title": ArcadeTitle,
100
+ "cut-and-paste": CutAndPaste,
101
+ "target-lock": TargetLock,
102
+ "shape-shift": ShapeShift,
103
+ "hook-card": HookCard,
104
+ "word-pop": WordPop,
105
+ "sticker-badge": StickerBadge,
106
+ "list-card": ListCard,
107
+ "quote-card": QuoteCard,
108
+ "before-after": BeforeAfter,
109
+ "line-diagram": LineDiagram,
110
+ };
111
+
112
+ /** Every component waits for the library's fonts, so previews, stills and exports never use a fallback. */
113
+ function withFonts(Component: AnyComponent, name: string): AnyComponent {
114
+ function WithFonts(props: MotionBaseProps & PropValues) {
115
+ useMotionFonts();
116
+ return createElement(Component, props);
117
+ }
118
+ WithFonts.displayName = `WithFonts(${name})`;
119
+ return WithFonts;
120
+ }
121
+
122
+ export const MOTION_COMPONENTS: Record<string, MotionComponent> = Object.fromEntries(
123
+ Object.entries(COMPONENT_METAS).map(([id, meta]) => [
124
+ id,
125
+ { meta, Component: withFonts(COMPONENTS[id] as AnyComponent, meta.name) },
126
+ ]),
127
+ );
128
+
129
+ export const COMPONENT_CATEGORIES = [
130
+ "Talking Head",
131
+ "Text & Titles",
132
+ "Overlays",
133
+ "Charts & Stats",
134
+ "AI & Product",
135
+ "Backgrounds",
136
+ "Transitions",
137
+ ] as const;
138
+
139
+ export { checkComponentProps, resolveComponentProps, styledPropKeys } from "./props";
140
+ export { getMotionStyle, MOTION_STYLES, STYLE_TOKENS } from "./styles";
141
+ export type { MotionStyle, StyleToken } from "./styles";
142
+ // The runtime calls this when a project has a style, so caption and text clips get the style's fonts.
143
+ export { loadMotionFonts, useMotionFonts } from "./lib";
144
+ // Called by the studio runtime for a project with a style: camera on footage, texture, captions.
145
+ export { StyleOverlay, StyledCaptions, styleCamera, styleLookProps } from "./style-layer";
146
+ export { hookSpeakerBox, type SpeakerBox } from "./hook-card/HookCard";
147
+
148
+ export { COMPONENT_METAS } from "./catalog";
149
+ export type { ComponentMeta, MotionBaseProps, MotionComponent, PropSpec, PropValues } from "./types";
@@ -0,0 +1,76 @@
1
+ import { useId } from "react";
2
+ import { AbsoluteFill, useCurrentFrame } from "remotion";
3
+ import { easeInOut, ramp } from "../lib";
4
+ import type { MotionBaseProps } from "../types";
5
+
6
+ type Props = MotionBaseProps & {
7
+ color: string;
8
+ accent: string;
9
+ rings: boolean;
10
+ originX: number;
11
+ originY: number;
12
+ shape: string;
13
+ };
14
+
15
+ /**
16
+ * A shape transition: colored circles (or diamonds) burst out from a point and cover the frame by
17
+ * the clip's midpoint, then a hole opens in them from the same point to reveal the next shot.
18
+ * Center the clip on the cut.
19
+ */
20
+ export function IrisWipe(props: Props) {
21
+ const frame = useCurrentFrame();
22
+ const { width, height, durationInFrames: d } = props;
23
+ const id = `iris${useId().replace(/[^a-zA-Z0-9]/g, "")}`;
24
+ const mid = d / 2;
25
+ const cx = (props.originX / 100) * width;
26
+ const cy = (props.originY / 100) * height;
27
+ // Far enough to cover the farthest corner from the origin.
28
+ const reach = Math.max(
29
+ Math.hypot(cx, cy),
30
+ Math.hypot(width - cx, cy),
31
+ Math.hypot(cx, height - cy),
32
+ Math.hypot(width - cx, height - cy),
33
+ ) * (props.shape === "diamond" ? 1.45 : 1.02);
34
+ const layers = props.rings ? [props.accent, props.color] : [props.color];
35
+ const lag = Math.max(2, d * 0.08);
36
+
37
+ const shapeAt = (r: number, fill: string, key: string) =>
38
+ props.shape === "diamond" ? (
39
+ <polygon key={key} points={`${cx},${cy - r} ${cx + r},${cy} ${cx},${cy + r} ${cx - r},${cy}`} fill={fill} />
40
+ ) : (
41
+ <circle key={key} cx={cx} cy={cy} r={r} fill={fill} />
42
+ );
43
+
44
+ // Opening: the last layer to land is the first to open.
45
+ const open = ramp(frame, mid, mid - 1, easeInOut);
46
+ const openLag = ramp(frame, mid + lag, mid - 1 - lag, easeInOut);
47
+
48
+ return (
49
+ <AbsoluteFill>
50
+ <svg width={width} height={height} style={{ position: "absolute", inset: 0 }}>
51
+ <defs>
52
+ <mask id={`${id}-hole`}>
53
+ <rect width={width} height={height} fill="white" />
54
+ {shapeAt(reach * open, "black", "hole")}
55
+ </mask>
56
+ <mask id={`${id}-hole2`}>
57
+ <rect width={width} height={height} fill="white" />
58
+ {shapeAt(reach * openLag, "black", "hole2")}
59
+ </mask>
60
+ </defs>
61
+ {layers.map((fill, i) => {
62
+ const delay = i * lag;
63
+ const grow = ramp(frame, delay, mid - delay, easeInOut);
64
+ if (grow <= 0) return null;
65
+ // Rings: the outer (accent) layer opens last, so it rims the reveal.
66
+ const mask = layers.length > 1 && i === 0 ? `url(#${id}-hole2)` : `url(#${id}-hole)`;
67
+ return (
68
+ <g key={i} mask={frame >= mid ? mask : undefined}>
69
+ {shapeAt(reach * grow, fill, `s${i}`)}
70
+ </g>
71
+ );
72
+ })}
73
+ </svg>
74
+ </AbsoluteFill>
75
+ );
76
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "id": "iris-wipe",
3
+ "name": "Iris Burst",
4
+ "category": "Transitions",
5
+ "description": "Colored circles or diamonds burst out from a point to cover the frame, then open a hole from the same point to reveal the next shot.",
6
+ "useWhen": "Playful, graphic cuts between scenes: from a clicked button to the next screen (set the origin to the click), between chapters, into a title card. Put it on a track above both clips and center it on the cut (from = cut frame − half its length).",
7
+ "durationInFrames": 30,
8
+ "layer": "overlay",
9
+ "tags": ["transition", "iris", "circle", "wipe", "reveal", "burst", "shape"],
10
+ "props": {
11
+ "color": { "type": "color", "label": "Color", "default": "#111111" },
12
+ "accent": { "type": "color", "label": "Ring color", "default": "#f97316" },
13
+ "rings": { "type": "boolean", "label": "Two rings", "default": true, "help": "An accent ring leads the main color in and trails it out." },
14
+ "originX": { "type": "number", "label": "Origin X", "default": 50, "min": 0, "max": 100, "step": 1, "unit": "%" },
15
+ "originY": { "type": "number", "label": "Origin Y", "default": 50, "min": 0, "max": 100, "step": 1, "unit": "%" },
16
+ "shape": { "type": "select", "label": "Shape", "default": "circle", "options": [{ "value": "circle", "label": "Circle" }, { "value": "diamond", "label": "Diamond" }] }
17
+ },
18
+ "examples": [
19
+ { "name": "Center burst", "props": {} },
20
+ { "name": "From a click", "props": { "originX": 78, "originY": 30, "color": "#2563eb", "accent": "#93c5fd" } },
21
+ { "name": "Diamond", "props": { "shape": "diamond", "color": "#fafafa", "accent": "#ec4899" } }
22
+ ],
23
+ "stillAt": 0.25
24
+ }