Back to Help Center
Bring-Your-Own-Code (Remotion TSX) Guide
Import any single-file React/Remotion TSX composition to render directly on Google Cloud Run or modify live with Gemini 3.1 Flash-Lite.
Allowed Imports (AST Verified)
- ✓ react
- ✓ remotion (AbsoluteFill, spring, interpolate, Sequence, Audio, Img)
- ✓ @remotion/* (safe animation/layout helpers)
- ✓ lucide-react
Blocked for Sandbox Security
- ✕ fs, child_process, net, http, os
- ✕ process.env, eval(), new Function()
- ✕ Dynamic require() or metadata IP fetches
Zero-IAM Cloud Run Isolation
Custom TSX renders execute in a dedicated zero-IAM Cloud Run Job (remotion-custom-worker) in asia-southeast1. Free Trial exports include a subtle ZynthReel corner watermark at 720p; Creator ($19/mo) and Pro ($49/mo) render clean 1080p/4K MP4s.
Starter Composition (VideoStage.tsx)
import React from 'react';
import { AbsoluteFill, interpolate, spring, useCurrentFrame, useVideoConfig } from 'remotion';
export const CustomProductLaunch: React.FC = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
const scale = spring({
frame,
fps,
config: { damping: 12, mass: 0.8, stiffness: 110 },
});
const opacity = interpolate(frame, [0, 15], [0, 1], {
extrapolateRight: 'clamp',
});
return (
<AbsoluteFill
style={{
backgroundColor: '#121A22',
justifyContent: 'center',
alignItems: 'center',
padding: 64,
fontFamily: 'Montserrat, sans-serif',
}}
>
<div style={{ opacity, transform: `scale(${scale})`, textAlign: 'center' }}>
<div style={{ color: '#8C9E8C', fontSize: 28, fontWeight: 700, letterSpacing: 4 }}>
ZYNTHREEL LIVE TSX
</div>
<h1 style={{ color: '#FFFFFF', fontSize: 72, fontWeight: 800, marginTop: 18 }}>
RETHINK VIDEO CREATION
</h1>
</div>
</AbsoluteFill>
);
};