@json-render/remotion 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.
package/dist/server.js ADDED
@@ -0,0 +1,385 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/server.ts
21
+ var server_exports = {};
22
+ __export(server_exports, {
23
+ schema: () => schema,
24
+ standardComponentDefinitions: () => standardComponentDefinitions,
25
+ standardEffectDefinitions: () => standardEffectDefinitions,
26
+ standardTransitionDefinitions: () => standardTransitionDefinitions
27
+ });
28
+ module.exports = __toCommonJS(server_exports);
29
+
30
+ // src/schema.ts
31
+ var import_core = require("@json-render/core");
32
+ function remotionPromptTemplate(context) {
33
+ const { catalog, options } = context;
34
+ const { system = "You are a video timeline generator.", customRules = [] } = options;
35
+ const lines = [];
36
+ lines.push(system);
37
+ lines.push("");
38
+ lines.push("OUTPUT FORMAT:");
39
+ lines.push(
40
+ "Output JSONL (one JSON object per line) with patches to build a timeline spec."
41
+ );
42
+ lines.push(
43
+ "Each line is a JSON patch operation. Build the timeline incrementally."
44
+ );
45
+ lines.push("");
46
+ lines.push("Example output (each line is a separate JSON object):");
47
+ lines.push("");
48
+ lines.push(`{"op":"set","path":"/composition","value":{"id":"intro","fps":30,"width":1920,"height":1080,"durationInFrames":300}}
49
+ {"op":"set","path":"/tracks","value":[{"id":"main","name":"Main","type":"video","enabled":true},{"id":"overlay","name":"Overlay","type":"overlay","enabled":true}]}
50
+ {"op":"set","path":"/clips/0","value":{"id":"clip-1","trackId":"main","component":"TitleCard","props":{"title":"Welcome","subtitle":"Getting Started"},"from":0,"durationInFrames":90,"transitionIn":{"type":"fade","durationInFrames":15},"transitionOut":{"type":"fade","durationInFrames":15}}}
51
+ {"op":"set","path":"/clips/1","value":{"id":"clip-2","trackId":"main","component":"TitleCard","props":{"title":"Features"},"from":90,"durationInFrames":90}}
52
+ {"op":"set","path":"/audio","value":{"tracks":[]}}`);
53
+ lines.push("");
54
+ const catalogData = catalog;
55
+ if (catalogData.components) {
56
+ lines.push(
57
+ `AVAILABLE COMPONENTS (${Object.keys(catalogData.components).length}):`
58
+ );
59
+ lines.push("");
60
+ for (const [name, def] of Object.entries(catalogData.components)) {
61
+ const duration = def.defaultDuration ? ` [default: ${def.defaultDuration} frames]` : "";
62
+ lines.push(
63
+ `- ${name}: ${def.description || "No description"}${duration}`
64
+ );
65
+ }
66
+ lines.push("");
67
+ }
68
+ if (catalogData.transitions && Object.keys(catalogData.transitions).length > 0) {
69
+ lines.push("AVAILABLE TRANSITIONS:");
70
+ lines.push("");
71
+ for (const [name, def] of Object.entries(catalogData.transitions)) {
72
+ lines.push(`- ${name}: ${def.description || "No description"}`);
73
+ }
74
+ lines.push("");
75
+ }
76
+ lines.push("RULES:");
77
+ const baseRules = [
78
+ "Output ONLY JSONL patches - one JSON object per line, no markdown, no code fences",
79
+ "First set /composition with {id, fps:30, width:1920, height:1080, durationInFrames}",
80
+ "Then set /tracks array with video/overlay tracks",
81
+ "Then set each clip: /clips/0, /clips/1, etc.",
82
+ "Finally set /audio with {tracks:[]}",
83
+ "ONLY use components listed above",
84
+ "fps is always 30 (1 second = 30 frames, 10 seconds = 300 frames)",
85
+ `Clips on "main" track flow sequentially (from = previous clip's from + durationInFrames)`,
86
+ 'Overlay clips (LowerThird, TextOverlay) go on "overlay" track'
87
+ ];
88
+ const allRules = [...baseRules, ...customRules];
89
+ allRules.forEach((rule, i) => {
90
+ lines.push(`${i + 1}. ${rule}`);
91
+ });
92
+ return lines.join("\n");
93
+ }
94
+ var schema = (0, import_core.defineSchema)(
95
+ (s) => ({
96
+ // What the AI-generated SPEC looks like (timeline-based)
97
+ spec: s.object({
98
+ /** Composition settings */
99
+ composition: s.object({
100
+ /** Unique composition ID */
101
+ id: s.string(),
102
+ /** Frames per second */
103
+ fps: s.number(),
104
+ /** Width in pixels */
105
+ width: s.number(),
106
+ /** Height in pixels */
107
+ height: s.number(),
108
+ /** Total duration in frames */
109
+ durationInFrames: s.number()
110
+ }),
111
+ /** Timeline tracks (like layers in video editing) */
112
+ tracks: s.array(
113
+ s.object({
114
+ /** Unique track ID */
115
+ id: s.string(),
116
+ /** Track name for organization */
117
+ name: s.string(),
118
+ /** Track type: "video" | "audio" | "overlay" | "text" */
119
+ type: s.string(),
120
+ /** Whether track is muted/hidden */
121
+ enabled: s.boolean()
122
+ })
123
+ ),
124
+ /** Clips placed on the timeline */
125
+ clips: s.array(
126
+ s.object({
127
+ /** Unique clip ID */
128
+ id: s.string(),
129
+ /** Which track this clip belongs to */
130
+ trackId: s.string(),
131
+ /** Component type from catalog */
132
+ component: s.ref("catalog.components"),
133
+ /** Component props */
134
+ props: s.propsOf("catalog.components"),
135
+ /** Start frame (when clip begins) */
136
+ from: s.number(),
137
+ /** Duration in frames */
138
+ durationInFrames: s.number(),
139
+ /** Transition in effect */
140
+ transitionIn: s.object({
141
+ type: s.ref("catalog.transitions"),
142
+ durationInFrames: s.number()
143
+ }),
144
+ /** Transition out effect */
145
+ transitionOut: s.object({
146
+ type: s.ref("catalog.transitions"),
147
+ durationInFrames: s.number()
148
+ })
149
+ })
150
+ ),
151
+ /** Audio configuration */
152
+ audio: s.object({
153
+ /** Background music/audio clips */
154
+ tracks: s.array(
155
+ s.object({
156
+ id: s.string(),
157
+ src: s.string(),
158
+ from: s.number(),
159
+ durationInFrames: s.number(),
160
+ volume: s.number()
161
+ })
162
+ )
163
+ })
164
+ }),
165
+ // What the CATALOG must provide
166
+ catalog: s.object({
167
+ /** Video component definitions (scenes, overlays, etc.) */
168
+ components: s.map({
169
+ /** Zod schema for component props */
170
+ props: s.zod(),
171
+ /** Component type: "scene" | "overlay" | "text" | "image" | "video" */
172
+ type: s.string(),
173
+ /** Default duration in frames (can be overridden per clip) */
174
+ defaultDuration: s.number(),
175
+ /** Description for AI generation hints */
176
+ description: s.string()
177
+ }),
178
+ /** Transition effect definitions */
179
+ transitions: s.map({
180
+ /** Default duration in frames */
181
+ defaultDuration: s.number(),
182
+ /** Description for AI generation hints */
183
+ description: s.string()
184
+ }),
185
+ /** Effect definitions (filters, animations, etc.) */
186
+ effects: s.map({
187
+ /** Zod schema for effect params */
188
+ params: s.zod(),
189
+ /** Description for AI generation hints */
190
+ description: s.string()
191
+ })
192
+ })
193
+ }),
194
+ {
195
+ promptTemplate: remotionPromptTemplate
196
+ }
197
+ );
198
+
199
+ // src/catalog/definitions.ts
200
+ var import_zod = require("zod");
201
+ var standardComponentDefinitions = {
202
+ // ==========================================================================
203
+ // Scene Components (full-screen)
204
+ // ==========================================================================
205
+ TitleCard: {
206
+ props: import_zod.z.object({
207
+ title: import_zod.z.string(),
208
+ subtitle: import_zod.z.string().nullable(),
209
+ backgroundColor: import_zod.z.string().nullable(),
210
+ textColor: import_zod.z.string().nullable()
211
+ }),
212
+ type: "scene",
213
+ defaultDuration: 90,
214
+ description: "Full-screen title card with centered text. Use for intros, outros, and section breaks."
215
+ },
216
+ ImageSlide: {
217
+ props: import_zod.z.object({
218
+ src: import_zod.z.string(),
219
+ alt: import_zod.z.string(),
220
+ fit: import_zod.z.enum(["cover", "contain"]).nullable(),
221
+ backgroundColor: import_zod.z.string().nullable()
222
+ }),
223
+ type: "image",
224
+ defaultDuration: 150,
225
+ description: "Full-screen image display. Use for product shots, photos, and visual content."
226
+ },
227
+ SplitScreen: {
228
+ props: import_zod.z.object({
229
+ leftTitle: import_zod.z.string(),
230
+ rightTitle: import_zod.z.string(),
231
+ leftColor: import_zod.z.string().nullable(),
232
+ rightColor: import_zod.z.string().nullable()
233
+ }),
234
+ type: "scene",
235
+ defaultDuration: 120,
236
+ description: "Split screen with two sides. Use for comparisons or before/after."
237
+ },
238
+ QuoteCard: {
239
+ props: import_zod.z.object({
240
+ quote: import_zod.z.string(),
241
+ author: import_zod.z.string().nullable(),
242
+ backgroundColor: import_zod.z.string().nullable()
243
+ }),
244
+ type: "scene",
245
+ defaultDuration: 150,
246
+ description: "Quote display with attribution. Use for testimonials."
247
+ },
248
+ StatCard: {
249
+ props: import_zod.z.object({
250
+ value: import_zod.z.string(),
251
+ label: import_zod.z.string(),
252
+ prefix: import_zod.z.string().nullable(),
253
+ suffix: import_zod.z.string().nullable(),
254
+ backgroundColor: import_zod.z.string().nullable()
255
+ }),
256
+ type: "scene",
257
+ defaultDuration: 90,
258
+ description: "Large statistic display. Use for key metrics and numbers."
259
+ },
260
+ TypingText: {
261
+ props: import_zod.z.object({
262
+ text: import_zod.z.string(),
263
+ backgroundColor: import_zod.z.string().nullable(),
264
+ textColor: import_zod.z.string().nullable(),
265
+ fontSize: import_zod.z.number().nullable(),
266
+ fontFamily: import_zod.z.enum(["monospace", "sans-serif", "serif"]).nullable(),
267
+ showCursor: import_zod.z.boolean().nullable(),
268
+ cursorChar: import_zod.z.string().nullable(),
269
+ charsPerSecond: import_zod.z.number().nullable()
270
+ }),
271
+ type: "scene",
272
+ defaultDuration: 180,
273
+ description: "Terminal-style typing animation that reveals text character by character. Perfect for code demos, CLI commands, and dramatic text reveals."
274
+ },
275
+ // ==========================================================================
276
+ // Overlay Components
277
+ // ==========================================================================
278
+ LowerThird: {
279
+ props: import_zod.z.object({
280
+ name: import_zod.z.string(),
281
+ title: import_zod.z.string().nullable(),
282
+ backgroundColor: import_zod.z.string().nullable()
283
+ }),
284
+ type: "overlay",
285
+ defaultDuration: 120,
286
+ description: "Name/title overlay in lower third of screen. Use to identify speakers."
287
+ },
288
+ TextOverlay: {
289
+ props: import_zod.z.object({
290
+ text: import_zod.z.string(),
291
+ position: import_zod.z.enum(["top", "center", "bottom"]).nullable(),
292
+ fontSize: import_zod.z.enum(["small", "medium", "large"]).nullable()
293
+ }),
294
+ type: "overlay",
295
+ defaultDuration: 90,
296
+ description: "Simple text overlay. Use for captions and annotations."
297
+ },
298
+ LogoBug: {
299
+ props: import_zod.z.object({
300
+ position: import_zod.z.enum(["top-left", "top-right", "bottom-left", "bottom-right"]).nullable(),
301
+ opacity: import_zod.z.number().nullable()
302
+ }),
303
+ type: "overlay",
304
+ defaultDuration: 300,
305
+ description: "Corner logo watermark. Use for branding throughout video."
306
+ },
307
+ // ==========================================================================
308
+ // Video Components
309
+ // ==========================================================================
310
+ VideoClip: {
311
+ props: import_zod.z.object({
312
+ src: import_zod.z.string(),
313
+ startFrom: import_zod.z.number().nullable(),
314
+ volume: import_zod.z.number().nullable()
315
+ }),
316
+ type: "video",
317
+ defaultDuration: 150,
318
+ description: "Video file playback. Use for B-roll and footage."
319
+ }
320
+ };
321
+ var standardTransitionDefinitions = {
322
+ fade: {
323
+ defaultDuration: 15,
324
+ description: "Smooth fade in/out. Use for gentle transitions."
325
+ },
326
+ slideLeft: {
327
+ defaultDuration: 20,
328
+ description: "Slide from right to left. Use for forward progression."
329
+ },
330
+ slideRight: {
331
+ defaultDuration: 20,
332
+ description: "Slide from left to right. Use for backward progression."
333
+ },
334
+ slideUp: {
335
+ defaultDuration: 15,
336
+ description: "Slide from bottom to top. Use for overlays appearing."
337
+ },
338
+ slideDown: {
339
+ defaultDuration: 15,
340
+ description: "Slide from top to bottom. Use for overlays disappearing."
341
+ },
342
+ zoom: {
343
+ defaultDuration: 20,
344
+ description: "Zoom in/out effect. Use for emphasis."
345
+ },
346
+ wipe: {
347
+ defaultDuration: 15,
348
+ description: "Horizontal wipe. Use for scene changes."
349
+ },
350
+ none: {
351
+ defaultDuration: 0,
352
+ description: "No transition (hard cut)."
353
+ }
354
+ };
355
+ var standardEffectDefinitions = {
356
+ kenBurns: {
357
+ params: import_zod.z.object({
358
+ startScale: import_zod.z.number(),
359
+ endScale: import_zod.z.number(),
360
+ panX: import_zod.z.number().nullable(),
361
+ panY: import_zod.z.number().nullable()
362
+ }),
363
+ description: "Ken Burns pan and zoom effect for images."
364
+ },
365
+ pulse: {
366
+ params: import_zod.z.object({
367
+ intensity: import_zod.z.number()
368
+ }),
369
+ description: "Subtle pulsing scale effect for emphasis."
370
+ },
371
+ shake: {
372
+ params: import_zod.z.object({
373
+ intensity: import_zod.z.number()
374
+ }),
375
+ description: "Camera shake effect for energy."
376
+ }
377
+ };
378
+ // Annotate the CommonJS export names for ESM import in node:
379
+ 0 && (module.exports = {
380
+ schema,
381
+ standardComponentDefinitions,
382
+ standardEffectDefinitions,
383
+ standardTransitionDefinitions
384
+ });
385
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/server.ts","../src/schema.ts","../src/catalog/definitions.ts"],"sourcesContent":["/**\n * Server-safe exports for @json-render/remotion\n *\n * This entry point only exports schema and catalog definitions,\n * without any React or Remotion runtime dependencies.\n * Use this in server components, API routes, and build scripts.\n *\n * @example\n * ```ts\n * // In an API route or server component\n * import { schema, standardComponentDefinitions } from \"@json-render/remotion/server\";\n * ```\n */\n\n// Schema (no React dependencies)\nexport { schema, type RemotionSchema, type RemotionSpec } from \"./schema\";\n\n// Catalog definitions (no React dependencies)\nexport {\n standardComponentDefinitions,\n standardTransitionDefinitions,\n standardEffectDefinitions,\n type ComponentDefinition,\n type TransitionDefinition,\n type EffectDefinition,\n} from \"./catalog\";\n\n// Catalog types (type-only exports)\nexport type {\n FrameContext,\n VideoComponentContext,\n VideoComponentFn,\n VideoComponents,\n TransitionFn,\n BuiltInTransition,\n EffectFn,\n Effects,\n} from \"./catalog-types\";\n\n// Core types (re-exported for convenience)\nexport type { Spec } from \"@json-render/core\";\n","import { defineSchema, type PromptContext } from \"@json-render/core\";\n\n/**\n * Prompt template for Remotion timeline generation\n *\n * Uses JSONL patch format (same as React) but builds up a timeline spec structure.\n */\nfunction remotionPromptTemplate(context: PromptContext): string {\n const { catalog, options } = context;\n const { system = \"You are a video timeline generator.\", customRules = [] } =\n options;\n\n const lines: string[] = [];\n lines.push(system);\n lines.push(\"\");\n\n // Output format - JSONL patches\n lines.push(\"OUTPUT FORMAT:\");\n lines.push(\n \"Output JSONL (one JSON object per line) with patches to build a timeline spec.\",\n );\n lines.push(\n \"Each line is a JSON patch operation. Build the timeline incrementally.\",\n );\n lines.push(\"\");\n lines.push(\"Example output (each line is a separate JSON object):\");\n lines.push(\"\");\n lines.push(`{\"op\":\"set\",\"path\":\"/composition\",\"value\":{\"id\":\"intro\",\"fps\":30,\"width\":1920,\"height\":1080,\"durationInFrames\":300}}\n{\"op\":\"set\",\"path\":\"/tracks\",\"value\":[{\"id\":\"main\",\"name\":\"Main\",\"type\":\"video\",\"enabled\":true},{\"id\":\"overlay\",\"name\":\"Overlay\",\"type\":\"overlay\",\"enabled\":true}]}\n{\"op\":\"set\",\"path\":\"/clips/0\",\"value\":{\"id\":\"clip-1\",\"trackId\":\"main\",\"component\":\"TitleCard\",\"props\":{\"title\":\"Welcome\",\"subtitle\":\"Getting Started\"},\"from\":0,\"durationInFrames\":90,\"transitionIn\":{\"type\":\"fade\",\"durationInFrames\":15},\"transitionOut\":{\"type\":\"fade\",\"durationInFrames\":15}}}\n{\"op\":\"set\",\"path\":\"/clips/1\",\"value\":{\"id\":\"clip-2\",\"trackId\":\"main\",\"component\":\"TitleCard\",\"props\":{\"title\":\"Features\"},\"from\":90,\"durationInFrames\":90}}\n{\"op\":\"set\",\"path\":\"/audio\",\"value\":{\"tracks\":[]}}`);\n lines.push(\"\");\n\n // Components\n const catalogData = catalog as {\n components?: Record<\n string,\n { description?: string; defaultDuration?: number }\n >;\n transitions?: Record<string, { description?: string }>;\n effects?: Record<string, { description?: string }>;\n };\n\n if (catalogData.components) {\n lines.push(\n `AVAILABLE COMPONENTS (${Object.keys(catalogData.components).length}):`,\n );\n lines.push(\"\");\n for (const [name, def] of Object.entries(catalogData.components)) {\n const duration = def.defaultDuration\n ? ` [default: ${def.defaultDuration} frames]`\n : \"\";\n lines.push(\n `- ${name}: ${def.description || \"No description\"}${duration}`,\n );\n }\n lines.push(\"\");\n }\n\n // Transitions\n if (\n catalogData.transitions &&\n Object.keys(catalogData.transitions).length > 0\n ) {\n lines.push(\"AVAILABLE TRANSITIONS:\");\n lines.push(\"\");\n for (const [name, def] of Object.entries(catalogData.transitions)) {\n lines.push(`- ${name}: ${def.description || \"No description\"}`);\n }\n lines.push(\"\");\n }\n\n // Rules\n lines.push(\"RULES:\");\n const baseRules = [\n \"Output ONLY JSONL patches - one JSON object per line, no markdown, no code fences\",\n \"First set /composition with {id, fps:30, width:1920, height:1080, durationInFrames}\",\n \"Then set /tracks array with video/overlay tracks\",\n \"Then set each clip: /clips/0, /clips/1, etc.\",\n \"Finally set /audio with {tracks:[]}\",\n \"ONLY use components listed above\",\n \"fps is always 30 (1 second = 30 frames, 10 seconds = 300 frames)\",\n 'Clips on \"main\" track flow sequentially (from = previous clip\\'s from + durationInFrames)',\n 'Overlay clips (LowerThird, TextOverlay) go on \"overlay\" track',\n ];\n const allRules = [...baseRules, ...customRules];\n allRules.forEach((rule, i) => {\n lines.push(`${i + 1}. ${rule}`);\n });\n\n return lines.join(\"\\n\");\n}\n\n/**\n * The schema for @json-render/remotion\n *\n * This schema is fundamentally different from the React element tree schema.\n * It's timeline-based, designed for video composition:\n *\n * - Spec: A composition with tracks containing timed clips\n * - Catalog: Video components (scenes, overlays, etc.) and effects\n *\n * This demonstrates that json-render is truly agnostic - different renderers\n * can have completely different spec formats.\n */\nexport const schema = defineSchema(\n (s) => ({\n // What the AI-generated SPEC looks like (timeline-based)\n spec: s.object({\n /** Composition settings */\n composition: s.object({\n /** Unique composition ID */\n id: s.string(),\n /** Frames per second */\n fps: s.number(),\n /** Width in pixels */\n width: s.number(),\n /** Height in pixels */\n height: s.number(),\n /** Total duration in frames */\n durationInFrames: s.number(),\n }),\n\n /** Timeline tracks (like layers in video editing) */\n tracks: s.array(\n s.object({\n /** Unique track ID */\n id: s.string(),\n /** Track name for organization */\n name: s.string(),\n /** Track type: \"video\" | \"audio\" | \"overlay\" | \"text\" */\n type: s.string(),\n /** Whether track is muted/hidden */\n enabled: s.boolean(),\n }),\n ),\n\n /** Clips placed on the timeline */\n clips: s.array(\n s.object({\n /** Unique clip ID */\n id: s.string(),\n /** Which track this clip belongs to */\n trackId: s.string(),\n /** Component type from catalog */\n component: s.ref(\"catalog.components\"),\n /** Component props */\n props: s.propsOf(\"catalog.components\"),\n /** Start frame (when clip begins) */\n from: s.number(),\n /** Duration in frames */\n durationInFrames: s.number(),\n /** Transition in effect */\n transitionIn: s.object({\n type: s.ref(\"catalog.transitions\"),\n durationInFrames: s.number(),\n }),\n /** Transition out effect */\n transitionOut: s.object({\n type: s.ref(\"catalog.transitions\"),\n durationInFrames: s.number(),\n }),\n }),\n ),\n\n /** Audio configuration */\n audio: s.object({\n /** Background music/audio clips */\n tracks: s.array(\n s.object({\n id: s.string(),\n src: s.string(),\n from: s.number(),\n durationInFrames: s.number(),\n volume: s.number(),\n }),\n ),\n }),\n }),\n\n // What the CATALOG must provide\n catalog: s.object({\n /** Video component definitions (scenes, overlays, etc.) */\n components: s.map({\n /** Zod schema for component props */\n props: s.zod(),\n /** Component type: \"scene\" | \"overlay\" | \"text\" | \"image\" | \"video\" */\n type: s.string(),\n /** Default duration in frames (can be overridden per clip) */\n defaultDuration: s.number(),\n /** Description for AI generation hints */\n description: s.string(),\n }),\n /** Transition effect definitions */\n transitions: s.map({\n /** Default duration in frames */\n defaultDuration: s.number(),\n /** Description for AI generation hints */\n description: s.string(),\n }),\n /** Effect definitions (filters, animations, etc.) */\n effects: s.map({\n /** Zod schema for effect params */\n params: s.zod(),\n /** Description for AI generation hints */\n description: s.string(),\n }),\n }),\n }),\n {\n promptTemplate: remotionPromptTemplate,\n },\n);\n\n/**\n * Type for the Remotion schema\n */\nexport type RemotionSchema = typeof schema;\n\n/**\n * Infer the spec type from a catalog\n */\nexport type RemotionSpec<TCatalog> = typeof schema extends {\n createCatalog: (catalog: TCatalog) => { _specType: infer S };\n}\n ? S\n : never;\n","import { z } from \"zod\";\n\n/**\n * Standard component definitions for Remotion catalogs\n *\n * These can be used directly or extended with custom components.\n */\nexport const standardComponentDefinitions = {\n // ==========================================================================\n // Scene Components (full-screen)\n // ==========================================================================\n\n TitleCard: {\n props: z.object({\n title: z.string(),\n subtitle: z.string().nullable(),\n backgroundColor: z.string().nullable(),\n textColor: z.string().nullable(),\n }),\n type: \"scene\",\n defaultDuration: 90,\n description:\n \"Full-screen title card with centered text. Use for intros, outros, and section breaks.\",\n },\n\n ImageSlide: {\n props: z.object({\n src: z.string(),\n alt: z.string(),\n fit: z.enum([\"cover\", \"contain\"]).nullable(),\n backgroundColor: z.string().nullable(),\n }),\n type: \"image\",\n defaultDuration: 150,\n description:\n \"Full-screen image display. Use for product shots, photos, and visual content.\",\n },\n\n SplitScreen: {\n props: z.object({\n leftTitle: z.string(),\n rightTitle: z.string(),\n leftColor: z.string().nullable(),\n rightColor: z.string().nullable(),\n }),\n type: \"scene\",\n defaultDuration: 120,\n description:\n \"Split screen with two sides. Use for comparisons or before/after.\",\n },\n\n QuoteCard: {\n props: z.object({\n quote: z.string(),\n author: z.string().nullable(),\n backgroundColor: z.string().nullable(),\n }),\n type: \"scene\",\n defaultDuration: 150,\n description: \"Quote display with attribution. Use for testimonials.\",\n },\n\n StatCard: {\n props: z.object({\n value: z.string(),\n label: z.string(),\n prefix: z.string().nullable(),\n suffix: z.string().nullable(),\n backgroundColor: z.string().nullable(),\n }),\n type: \"scene\",\n defaultDuration: 90,\n description: \"Large statistic display. Use for key metrics and numbers.\",\n },\n\n TypingText: {\n props: z.object({\n text: z.string(),\n backgroundColor: z.string().nullable(),\n textColor: z.string().nullable(),\n fontSize: z.number().nullable(),\n fontFamily: z.enum([\"monospace\", \"sans-serif\", \"serif\"]).nullable(),\n showCursor: z.boolean().nullable(),\n cursorChar: z.string().nullable(),\n charsPerSecond: z.number().nullable(),\n }),\n type: \"scene\",\n defaultDuration: 180,\n description:\n \"Terminal-style typing animation that reveals text character by character. Perfect for code demos, CLI commands, and dramatic text reveals.\",\n },\n\n // ==========================================================================\n // Overlay Components\n // ==========================================================================\n\n LowerThird: {\n props: z.object({\n name: z.string(),\n title: z.string().nullable(),\n backgroundColor: z.string().nullable(),\n }),\n type: \"overlay\",\n defaultDuration: 120,\n description:\n \"Name/title overlay in lower third of screen. Use to identify speakers.\",\n },\n\n TextOverlay: {\n props: z.object({\n text: z.string(),\n position: z.enum([\"top\", \"center\", \"bottom\"]).nullable(),\n fontSize: z.enum([\"small\", \"medium\", \"large\"]).nullable(),\n }),\n type: \"overlay\",\n defaultDuration: 90,\n description: \"Simple text overlay. Use for captions and annotations.\",\n },\n\n LogoBug: {\n props: z.object({\n position: z\n .enum([\"top-left\", \"top-right\", \"bottom-left\", \"bottom-right\"])\n .nullable(),\n opacity: z.number().nullable(),\n }),\n type: \"overlay\",\n defaultDuration: 300,\n description: \"Corner logo watermark. Use for branding throughout video.\",\n },\n\n // ==========================================================================\n // Video Components\n // ==========================================================================\n\n VideoClip: {\n props: z.object({\n src: z.string(),\n startFrom: z.number().nullable(),\n volume: z.number().nullable(),\n }),\n type: \"video\",\n defaultDuration: 150,\n description: \"Video file playback. Use for B-roll and footage.\",\n },\n};\n\n/**\n * Standard transition definitions for Remotion catalogs\n */\nexport const standardTransitionDefinitions = {\n fade: {\n defaultDuration: 15,\n description: \"Smooth fade in/out. Use for gentle transitions.\",\n },\n slideLeft: {\n defaultDuration: 20,\n description: \"Slide from right to left. Use for forward progression.\",\n },\n slideRight: {\n defaultDuration: 20,\n description: \"Slide from left to right. Use for backward progression.\",\n },\n slideUp: {\n defaultDuration: 15,\n description: \"Slide from bottom to top. Use for overlays appearing.\",\n },\n slideDown: {\n defaultDuration: 15,\n description: \"Slide from top to bottom. Use for overlays disappearing.\",\n },\n zoom: {\n defaultDuration: 20,\n description: \"Zoom in/out effect. Use for emphasis.\",\n },\n wipe: {\n defaultDuration: 15,\n description: \"Horizontal wipe. Use for scene changes.\",\n },\n none: {\n defaultDuration: 0,\n description: \"No transition (hard cut).\",\n },\n};\n\n/**\n * Standard effect definitions for Remotion catalogs\n */\nexport const standardEffectDefinitions = {\n kenBurns: {\n params: z.object({\n startScale: z.number(),\n endScale: z.number(),\n panX: z.number().nullable(),\n panY: z.number().nullable(),\n }),\n description: \"Ken Burns pan and zoom effect for images.\",\n },\n pulse: {\n params: z.object({\n intensity: z.number(),\n }),\n description: \"Subtle pulsing scale effect for emphasis.\",\n },\n shake: {\n params: z.object({\n intensity: z.number(),\n }),\n description: \"Camera shake effect for energy.\",\n },\n};\n\n/**\n * Type for component definition\n */\nexport type ComponentDefinition = {\n props: z.ZodType;\n type: string;\n defaultDuration: number;\n description: string;\n};\n\n/**\n * Type for transition definition\n */\nexport type TransitionDefinition = {\n defaultDuration: number;\n description: string;\n};\n\n/**\n * Type for effect definition\n */\nexport type EffectDefinition = {\n params: z.ZodType;\n description: string;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAAiD;AAOjD,SAAS,uBAAuB,SAAgC;AAC9D,QAAM,EAAE,SAAS,QAAQ,IAAI;AAC7B,QAAM,EAAE,SAAS,uCAAuC,cAAc,CAAC,EAAE,IACvE;AAEF,QAAM,QAAkB,CAAC;AACzB,QAAM,KAAK,MAAM;AACjB,QAAM,KAAK,EAAE;AAGb,QAAM,KAAK,gBAAgB;AAC3B,QAAM;AAAA,IACJ;AAAA,EACF;AACA,QAAM;AAAA,IACJ;AAAA,EACF;AACA,QAAM,KAAK,EAAE;AACb,QAAM,KA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A,IACN,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AACF;AAKO,IAAM,gCAAgC;AAAA,EAC3C,MAAM;AAAA,IACJ,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AAAA,EACA,WAAW;AAAA,IACT,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AAAA,EACA,YAAY;AAAA,IACV,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AAAA,EACA,SAAS;AAAA,IACP,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AAAA,EACA,WAAW;AAAA,IACT,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AACF;AAKO,IAAM,4BAA4B;AAAA,EACvC,UAAU;AAAA,IACR,QAAQ,aAAE,OAAO;AAAA,MACf,YAAY,aAAE,OAAO;AAAA,MACrB,UAAU,aAAE,OAAO;AAAA,MACnB,MAAM,aAAE,OAAO,EAAE,SAAS;AAAA,MAC1B,MAAM,aAAE,OAAO,EAAE,SAAS;AAAA,IAC5B,CAAC;AAAA,IACD,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,IACL,QAAQ,aAAE,OAAO;AAAA,MACf,WAAW,aAAE,OAAO;AAAA,IACtB,CAAC;AAAA,IACD,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,IACL,QAAQ,aAAE,OAAO;AAAA,MACf,WAAW,aAAE,OAAO;AAAA,IACtB,CAAC;AAAA,IACD,aAAa;AAAA,EACf;AACF;","names":[]}
@@ -0,0 +1,13 @@
1
+ import {
2
+ schema,
3
+ standardComponentDefinitions,
4
+ standardEffectDefinitions,
5
+ standardTransitionDefinitions
6
+ } from "./chunk-5C3GTKV7.mjs";
7
+ export {
8
+ schema,
9
+ standardComponentDefinitions,
10
+ standardEffectDefinitions,
11
+ standardTransitionDefinitions
12
+ };
13
+ //# sourceMappingURL=server.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@json-render/remotion",
3
+ "version": "0.4.0",
4
+ "license": "Apache-2.0",
5
+ "description": "Remotion renderer for @json-render/core. JSON becomes video compositions.",
6
+ "keywords": [
7
+ "json",
8
+ "video",
9
+ "remotion",
10
+ "ai",
11
+ "generative-video",
12
+ "llm",
13
+ "renderer",
14
+ "streaming",
15
+ "compositions"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/vercel-labs/json-render.git",
20
+ "directory": "packages/remotion"
21
+ },
22
+ "homepage": "https://github.com/vercel-labs/json-render#readme",
23
+ "bugs": {
24
+ "url": "https://github.com/vercel-labs/json-render/issues"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "main": "./dist/index.js",
30
+ "module": "./dist/index.mjs",
31
+ "types": "./dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "import": "./dist/index.mjs",
36
+ "require": "./dist/index.js"
37
+ },
38
+ "./server": {
39
+ "types": "./dist/server.d.ts",
40
+ "import": "./dist/server.mjs",
41
+ "require": "./dist/server.js"
42
+ }
43
+ },
44
+ "files": [
45
+ "dist"
46
+ ],
47
+ "dependencies": {
48
+ "@json-render/core": "0.4.0"
49
+ },
50
+ "devDependencies": {
51
+ "@types/react": "19.2.3",
52
+ "remotion": "4.0.418",
53
+ "tsup": "^8.0.2",
54
+ "typescript": "^5.4.5",
55
+ "zod": "^4.0.0",
56
+ "@repo/typescript-config": "0.0.0"
57
+ },
58
+ "peerDependencies": {
59
+ "react": "^19.0.0",
60
+ "remotion": "^4.0.0",
61
+ "zod": "^4.0.0"
62
+ },
63
+ "scripts": {
64
+ "build": "tsup",
65
+ "dev": "tsup --watch",
66
+ "check-types": "tsc --noEmit",
67
+ "typecheck": "tsc --noEmit"
68
+ }
69
+ }