Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: refactor components stucture

dev_wandry0e85b892a15d
diff --git a/CLAUDE.md b/CLAUDE.md
index a6f938ee..51fcd93c 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -347,4 +347,52 @@ Remotion implementation (Продвинутая):
Родительский контейнер имеет transform: rotateY(-30deg) rotateX(10deg) и perspective: 1000px.
Секрет глубины (Depth of Field): накладываем абсолютно позиционированный <div /> поверх всего этого блока. Его фон: linear-gradient(90deg, transparent 0%, transparent 60%, rgba(0,0,0,1) 100%).
В идеале: логотипы должны динамически менять filter: blur() в зависимости от их X координаты на экране (чем дальше X от центра перспективы, тем больше blur).
-Taste detail: Скорость ленты должна быть гипнотически медленной. Размытие логотипов на заднем плане не должно быть "дешевым". Используйте многоступенчатый градиент в маске, чтобы они растворялись в черном фоне абсолютно бесшовно, словно в тумане.
\ No newline at end of file
+Taste detail: Скорость ленты должна быть гипнотически медленной. Размытие логотипов на заднем плане не должно быть "дешевым". Используйте многоступенчатый градиент в маске, чтобы они растворялись в черном фоне абсолютно бесшовно, словно в тумане.
+
+
+
+Название: <FrostedGlassWipe /> (Стеклянная шторка)
+Короткое описание: Элегантный переход через матовое стекло.
+Подробное описание эффекта: Вместо того чтобы одна сцена просто перекрывала другую, между ними проезжает панель "матового стекла". Старая сцена размывается под стеклом, а когда стекло уезжает, под ним уже находится новая, четкая сцена.
+Remotion implementation (Продвинутая):
+Требуется 3 слоя (z-index): Сцена А (внизу), Сцена Б (посередине, изначально opacity: 0), и Стеклянная Панель (наверху).
+Стеклянная панель: <div> с backdrop-filter: blur(24px), background: rgba(255,255,255,0.05).
+Анимация: Панель проезжает через экран (например, translateX: -100% -> 100%). В момент, когда панель полностью перекрывает экран, Сцена А исчезает, а Сцена Б появляется (opacity: 1).
+Taste detail: Стекло должно иметь физические свойства. Добавьте панели левую и правую микро-границы (border-left: 1px solid rgba(255,255,255,0.2)), чтобы она ловила "свет", когда скользит поверх темного интерфейса. Скорость скольжения должна быть неравномерной (быстрый старт, небольшое замедление в центре, быстрый вылет).
+
+Название: <KineticTypeMask /> (Типографическая маска)
+Короткое описание: Использование огромного текста в качестве "окна" в следующую сцену.
+Подробное описание эффекта: На экране появляется гигантский заголовок (например, "NEXT" или "02"). Текст абсолютно черный. За текстом — следующая сцена. Затем текст стремительно увеличивается до тех пор, пока внутреннее пространство одной из букв (например, кольцо буквы "O") не расширится за пределы экрана, полностью открыв новую сцену.
+Remotion implementation (Продвинутая):
+Использование CSS mask-image или SVG <clipPath> с текстом.
+Новая сцена находится поверх старой, но скрыта маской текста.
+Интерполяция scale текста начинается с нормального размера и экспоненциально (через агрессивный easing) уходит в огромные значения (например, scale: 100).
+Критически важно: transform-origin должен быть математически точно отцентрирован на "дырке" в букве, сквозь которую пролетит камера.
+Taste detail: Используйте только самые жирные начертания шрифта (Geist Black / 900). Перед началом масштабирования дайте зрителю прочитать текст (пауза 10-15 кадров).
+
+Название: <SpatialPush /> (Пространственное выдавливание)
+Короткое описание: Новая сцена физически "придавливает" старую.
+Подробное описание эффекта: Старая сцена не просто исчезает, она реагирует на появление новой. Старый экран сжимается (scale) и уходит на задний план, а новый экран тяжело падает сверху или съезжает сбоку, накрывая его огромной тенью.
+Remotion implementation (Продвинутая):
+Сцена А (Старая): В момент начала перехода интерполируем transform: scale(1) -> scale(0.92) и filter: brightness(1) -> brightness(0.5). border-radius также должен плавно увеличиться с 0 до 16px.
+Сцена Б (Новая): Въезжает через spring() с translateY(100%) -> translateY(0%).
+Обязательно добавить Сцене Б сильную падающую тень: box-shadow: 0 -40px 100px rgba(0,0,0,0.8).
+Taste detail: Эффект веса. Сцена Б не должна останавливаться как вкопанная. Используйте spring с небольшим overshoot (проскоком) — пусть новая сцена пролетит чуть выше нуля (-5px) и с глухим ударом вернется на 0. Сцена А в этот момент должна микро-дернуться, передавая кинетическую энергию удара.
+
+Название: <GridPixelateWipe /> (Пикселизация / Сборка)
+Короткое описание: Сцена рассыпается на квадраты (bento-пиксели) и собирается в новую.
+Подробное описание эффекта: Вместо плавного fade, экран разбивается на сетку блоков. Блоки старой сцены быстро гаснут (или поворачиваются в 3D) в случайном или диагональном порядке, открывая под собой блоки новой сцены.
+Remotion implementation (Продвинутая):
+Это ресурсоемкий эффект. Вместо реального разрезания DOM на куски, используем CSS маску (Grid-based mask).
+Создаем поверх экрана <div />, состоящий из CSS-сетки (например, 10x10). Каждая ячейка сетки залита черным цветом (выступает маской).
+С помощью хука useCurrentFrame и @remotion/random анимируем opacity или transform: scale(0) каждой отдельной ячейки с небольшим каскадным сдвигом (stagger).
+Taste detail: Для стиля Vercel сетка должна быть идеальной. Не используйте чистый random для времени затухания квадратов; используйте детерминированную математику (например, задержка = (x * y) % 15), чтобы квадраты исчезали по красивым геометрическим паттернам (волна, диагональ, спираль).
+
+Название: <ChromaticAberrationWipe /> (Глитч-сдвиг)
+Короткое описание: Экстремально быстрый переход с RGB-расслоением.
+Подробное описание эффекта: Идеально для быстрых демо-роликов DevTools (вспомни видео Vercel). Сцена срывается влево, но на пике скорости она "не выдерживает" и расслаивается на красный, синий и зеленый каналы по краям экрана.
+Remotion implementation (Продвинутая):
+Обычный переход transform: translateX(), но выполняющийся очень быстро (5-8 кадров).
+В момент пиковой скорости (например, кадры 3, 4 и 5) добавляем к контейнеру CSS-свойство filter: drop-shadow(-8px 0 0 rgba(255,0,0,0.8)) drop-shadow(8px 0 0 rgba(0,255,255,0.8)).
+Как только скорость падает, drop-shadow должен мгновенно исчезнуть.
+Taste detail: Главное правило глитча — его не должно быть много. Эффект хроматической аберрации должен длиться ровно столько, чтобы зритель почувствовал скорость подсознательно, но не успел разглядеть цвета. 3-4 кадра максимум.
\ No newline at end of file
diff --git a/components/docs/component-preview.tsx b/components/docs/component-preview.tsx
index 1c3e0418..39a428cf 100644
--- a/components/docs/component-preview.tsx
+++ b/components/docs/component-preview.tsx
@@ -15,100 +15,16 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import {
type ComponentConfig,
type ControlConfig,
- componentConfigs,
getDefaults,
} from "@/lib/customizer-config";
import { cn } from "@/lib/utils";
-import { AnimatedBarChart } from "@/registry/remocn/animated-bar-chart";
-import { AnimatedLineChart } from "@/registry/remocn/animated-line-chart";
-import { BlurReveal } from "@/registry/remocn/blur-reveal";
-import { BoundingBoxSelector } from "@/registry/remocn/bounding-box-selector";
-import { ChatToPreviewLayout } from "@/registry/remocn/chat-to-preview-layout";
-import { CodeAccordion } from "@/registry/remocn/code-accordion";
-import { CursorFlow } from "@/registry/remocn/cursor-flow";
-import { DataFlowPipes } from "@/registry/remocn/data-flow-pipes";
-import { CodeDiffWipe } from "@/registry/remocn/code-diff-wipe";
-import { DeviceMockupZoom } from "@/registry/remocn/device-mockup-zoom";
-import { DirectionalWipe } from "@/registry/remocn/directional-wipe";
-import { DragAndDropFlow } from "@/registry/remocn/drag-and-drop-flow";
-import { DynamicGrid } from "@/registry/remocn/dynamic-grid";
-import { GlassCodeBlock } from "@/registry/remocn/glass-code-block";
-import { InfiniteMarquee } from "@/registry/remocn/infinite-marquee";
-import { InlineHighlight } from "@/registry/remocn/inline-highlight";
-import { MarkerHighlight } from "@/registry/remocn/marker-highlight";
-import { MaskedSlideReveal } from "@/registry/remocn/masked-slide-reveal";
-import { MatrixDecode } from "@/registry/remocn/matrix-decode";
-import { MeshGradientBg } from "@/registry/remocn/mesh-gradient-bg";
-import { MorphingModal } from "@/registry/remocn/morphing-modal";
-import { PerspectiveMarquee } from "@/registry/remocn/perspective-marquee";
-import { ProgressSteps } from "@/registry/remocn/progress-steps";
-import { PulsingIndicator } from "@/registry/remocn/pulsing-indicator";
-import { RGBGlitchText } from "@/registry/remocn/rgb-glitch-text";
-import { ShimmerSweep } from "@/registry/remocn/shimmer-sweep";
-import { SimulatedCursor } from "@/registry/remocn/simulated-cursor";
-import { SpotlightCard } from "@/registry/remocn/spotlight-card";
-import { SlotMachineRoll } from "@/registry/remocn/slot-machine-roll";
-import { SpringPopIn } from "@/registry/remocn/spring-pop-in";
-import { StaggeredBentoGrid } from "@/registry/remocn/staggered-bento-grid";
-import { StaggeredFadeUp } from "@/registry/remocn/staggered-fade-up";
-import { StrikethroughReplace } from "@/registry/remocn/strikethrough-replace";
-import { SuccessConfetti } from "@/registry/remocn/success-confetti";
-import { TerminalSimulator } from "@/registry/remocn/terminal-simulator";
-import { TextFadeReplace } from "@/registry/remocn/text-fade-replace";
-import { ToastNotification } from "@/registry/remocn/toast-notification";
-import { TrackingIn } from "@/registry/remocn/tracking-in";
-import { Typewriter } from "@/registry/remocn/typewriter";
-import { ZoomThroughTransition } from "@/registry/remocn/zoom-through-transition";
+import registry from "@/registry/__index__";
import { ComponentCustomizer } from "./component-customizer";
-const registry: Record<string, React.ComponentType<any>> = {
- "blur-reveal": BlurReveal,
- typewriter: Typewriter,
- "inline-highlight": InlineHighlight,
- "text-fade-replace": TextFadeReplace,
- "strikethrough-replace": StrikethroughReplace,
- "staggered-fade-up": StaggeredFadeUp,
- "masked-slide-reveal": MaskedSlideReveal,
- "tracking-in": TrackingIn,
- "shimmer-sweep": ShimmerSweep,
- "marker-highlight": MarkerHighlight,
- "slot-machine-roll": SlotMachineRoll,
- "matrix-decode": MatrixDecode,
- "rgb-glitch-text": RGBGlitchText,
- "infinite-marquee": InfiniteMarquee,
- "perspective-marquee": PerspectiveMarquee,
- "spotlight-card": SpotlightCard,
- "glass-code-block": GlassCodeBlock,
- "code-accordion": CodeAccordion,
- "cursor-flow": CursorFlow,
- "data-flow-pipes": DataFlowPipes,
- "morphing-modal": MorphingModal,
- "mesh-gradient-bg": MeshGradientBg,
- "dynamic-grid": DynamicGrid,
- "spring-pop-in": SpringPopIn,
- "simulated-cursor": SimulatedCursor,
- "pulsing-indicator": PulsingIndicator,
- "directional-wipe": DirectionalWipe,
- "device-mockup-zoom": DeviceMockupZoom,
- "zoom-through-transition": ZoomThroughTransition,
- "staggered-bento-grid": StaggeredBentoGrid,
- "chat-to-preview-layout": ChatToPreviewLayout,
- "bounding-box-selector": BoundingBoxSelector,
- "animated-line-chart": AnimatedLineChart,
- "animated-bar-chart": AnimatedBarChart,
- "terminal-simulator": TerminalSimulator,
- "code-diff-wipe": CodeDiffWipe,
- "toast-notification": ToastNotification,
- "drag-and-drop-flow": DragAndDropFlow,
- "progress-steps": ProgressSteps,
- "success-confetti": SuccessConfetti,
-};
-
export function ComponentPreview({ name }: { name: string }) {
- const config = componentConfigs[name];
- const Component = registry[name];
+ const entry = registry[name];
- if (!config || !Component) {
+ if (!entry) {
return (
<div className="not-prose my-6 rounded-lg border border-fd-border p-4 text-sm text-fd-muted-foreground">
Unknown component: <code>{name}</code>
@@ -122,7 +38,7 @@ export function ComponentPreview({ name }: { name: string }) {
<div className="not-prose my-6 aspect-video w-full animate-pulse rounded-xl bg-muted" />
}
>
- <Preview name={name} config={config} Component={Component} />
+ <Preview name={name} config={entry.config} Component={entry.Component} />
</Suspense>
);
}
diff --git a/content/docs/primitives/meta.json b/content/docs/primitives/meta.json
index 3b74bc68..53bc8c06 100644
--- a/content/docs/primitives/meta.json
+++ b/content/docs/primitives/meta.json
@@ -23,6 +23,6 @@
"code-accordion",
"cursor-flow",
"data-flow-pipes",
- "morphing-modal",
+ "morphing-modal"
]
}
diff --git a/lib/customizer-config.ts b/lib/customizer-config.ts
index a49e504a..530beaf0 100644
--- a/lib/customizer-config.ts
+++ b/lib/customizer-config.ts
@@ -1,13 +1,13 @@
export type ControlType =
| { type: "text"; default: string; label: string }
| {
- type: "number";
- default: number;
- min: number;
- max: number;
- step: number;
- label: string;
- }
+ type: "number";
+ default: number;
+ min: number;
+ max: number;
+ step: number;
+ label: string;
+ }
| { type: "color"; default: string; label: string }
| { type: "select"; default: string; options: string[]; label: string }
| { type: "boolean"; default: boolean; label: string };
@@ -31,16 +31,17 @@ export interface ComponentConfig {
componentName: string;
}
-const FPS = 30;
-const W = 1280;
-const H = 720;
-const FONT_WEIGHT_OPTIONS = ["400", "500", "600", "700"];
+export const FPS = 30;
+export const W = 1280;
+export const H = 720;
+export const FONT_WEIGHT_OPTIONS = ["400", "500", "600", "700"];
/**
- * Controls present on every animation. Spread first so that local controls
- * for a specific component can override a shared default if needed.
+ * Controls present on every animation. Merged into each component's controls
+ * inside the registry index so every animation in the customizer exposes the
+ * same baseline knobs.
*/
-const SHARED_CONTROLS: ControlConfig = {
+export const SHARED_CONTROLS: ControlConfig = {
speed: {
type: "number",
default: 1,
@@ -51,714 +52,6 @@ const SHARED_CONTROLS: ControlConfig = {
},
};
-export const componentConfigs: Record<string, ComponentConfig> = {
- "blur-reveal": {
- componentName: "BlurReveal",
- importPath: "@/components/remocn/blur-reveal",
- controls: {
- text: { type: "text", default: "BlurReveal", label: "Text" },
- blur: { type: "number", default: 10, min: 1, max: 30, step: 1, label: "Blur" },
- fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },
- color: { type: "color", default: "#171717", label: "Color" },
- fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- typewriter: {
- componentName: "Typewriter",
- importPath: "@/components/remocn/typewriter",
- controls: {
- text: { type: "text", default: "console.log('hello, world')", label: "Text" },
- cursor: { type: "boolean", default: true, label: "Show cursor" },
- charsPerSecond: { type: "number", default: 20, min: 4, max: 60, step: 1, label: "Chars / sec" },
- fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },
- color: { type: "color", default: "#171717", label: "Color" },
- cursorColor: { type: "color", default: "#171717", label: "Cursor color" },
- fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "inline-highlight": {
- componentName: "InlineHighlight",
- importPath: "@/components/remocn/inline-highlight",
- controls: {
- before: { type: "text", default: "Ship faster with ", label: "Before" },
- highlight: { type: "text", default: "remocn", label: "Highlight" },
- after: { type: "text", default: ".", label: "After" },
- baseColor: { type: "color", default: "#171717", label: "Base color" },
- highlightColor: { type: "color", default: "#ff5e3a", label: "Highlight color" },
- fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },
- fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "text-fade-replace": {
- componentName: "TextFadeReplace",
- importPath: "@/components/remocn/text-fade-replace",
- controls: {
- from: { type: "text", default: "Loading...", label: "From" },
- to: { type: "text", default: "Ready!", label: "To" },
- fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },
- color: { type: "color", default: "#171717", label: "Color" },
- fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "strikethrough-replace": {
- componentName: "StrikethroughReplace",
- importPath: "@/components/remocn/strikethrough-replace",
- controls: {
- from: { type: "text", default: "$49/mo", label: "From" },
- to: { type: "text", default: "Free", label: "To" },
- lineColor: { type: "color", default: "#ff5e3a", label: "Line color" },
- fontSize: { type: "number", default: 96, min: 12, max: 160, step: 1, label: "Font size" },
- color: { type: "color", default: "#171717", label: "Color" },
- fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "staggered-fade-up": {
- componentName: "StaggeredFadeUp",
- importPath: "@/components/remocn/staggered-fade-up",
- controls: {
- text: { type: "text", default: "Ship faster with remocn", label: "Text" },
- staggerDelay: { type: "number", default: 4, min: 0, max: 30, step: 1, label: "Stagger delay" },
- distance: { type: "number", default: 20, min: 0, max: 120, step: 1, label: "Distance" },
- fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },
- color: { type: "color", default: "#171717", label: "Color" },
- fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "masked-slide-reveal": {
- componentName: "MaskedSlideReveal",
- importPath: "@/components/remocn/masked-slide-reveal",
- controls: {
- text: { type: "text", default: "Reveal from the mask", label: "Text" },
- staggerDelay: { type: "number", default: 3, min: 0, max: 30, step: 1, label: "Stagger delay" },
- fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },
- color: { type: "color", default: "#171717", label: "Color" },
- fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "tracking-in": {
- componentName: "TrackingIn",
- importPath: "@/components/remocn/tracking-in",
- controls: {
- text: { type: "text", default: "tracking in", label: "Text" },
- startTracking: { type: "number", default: 0.5, min: 0, max: 2, step: 0.05, label: "Start tracking (em)" },
- startBlur: { type: "number", default: 12, min: 0, max: 40, step: 1, label: "Start blur" },
- fontSize: { type: "number", default: 96, min: 12, max: 200, step: 1, label: "Font size" },
- color: { type: "color", default: "#171717", label: "Color" },
- fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "shimmer-sweep": {
- componentName: "ShimmerSweep",
- importPath: "@/components/remocn/shimmer-sweep",
- controls: {
- text: { type: "text", default: "Generating", label: "Text" },
- baseColor: { type: "color", default: "#3f3f46", label: "Base color" },
- shineColor: { type: "color", default: "#fafafa", label: "Shine color" },
- fontSize: { type: "number", default: 96, min: 12, max: 200, step: 1, label: "Font size" },
- fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "marker-highlight": {
- componentName: "MarkerHighlight",
- importPath: "@/components/remocn/marker-highlight",
- controls: {
- before: { type: "text", default: "Made for ", label: "Before" },
- highlight: { type: "text", default: "builders", label: "Highlight" },
- after: { type: "text", default: ".", label: "After" },
- markerColor: { type: "color", default: "#facc15", label: "Marker color" },
- baseColor: { type: "color", default: "#171717", label: "Base color" },
- highlightedTextColor: { type: "color", default: "#171717", label: "Highlighted text color" },
- fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },
- fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "slot-machine-roll": {
- componentName: "SlotMachineRoll",
- importPath: "@/components/remocn/slot-machine-roll",
- controls: {
- from: { type: "text", default: "$99", label: "From" },
- to: { type: "text", default: "$199", label: "To" },
- fontSize: { type: "number", default: 120, min: 12, max: 240, step: 1, label: "Font size" },
- color: { type: "color", default: "#171717", label: "Color" },
- fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "matrix-decode": {
- componentName: "MatrixDecode",
- importPath: "@/components/remocn/matrix-decode",
- controls: {
- text: { type: "text", default: "DECRYPTED", label: "Text" },
- charset: { type: "text", default: "!@#$%^&*()_+-=<>?/\\|", label: "Charset" },
- fontSize: { type: "number", default: 72, min: 12, max: 160, step: 1, label: "Font size" },
- color: { type: "color", default: "#22c55e", label: "Color" },
- fontWeight: { type: "select", default: "600", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- revealDuration: { type: "number", default: 60, min: 10, max: 240, step: 1, label: "Reveal duration" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "rgb-glitch-text": {
- componentName: "RGBGlitchText",
- importPath: "@/components/remocn/rgb-glitch-text",
- controls: {
- text: { type: "text", default: "GLITCH", label: "Text" },
- fontSize: { type: "number", default: 96, min: 12, max: 200, step: 1, label: "Font size" },
- color: { type: "color", default: "#171717", label: "Color" },
- fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- glitchAt: { type: "number", default: 20, min: 0, max: 120, step: 1, label: "Glitch at (frame)" },
- glitchDuration: { type: "number", default: 8, min: 1, max: 60, step: 1, label: "Glitch duration" },
- intensity: { type: "number", default: 6, min: 0, max: 30, step: 1, label: "Intensity (px)" },
- seed: { type: "text", default: "glitch", label: "Seed" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "video-mask-text": {
- componentName: "VideoMaskText",
- importPath: "@/components/remocn/video-mask-text",
- controls: {
- text: { type: "text", default: "CREATE", label: "Text" },
- posterColor: { type: "color", default: "#0ea5e9", label: "Poster color" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- fontSize: { type: "number", default: 320, min: 80, max: 600, step: 10, label: "Font size" },
- fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- zoomAt: { type: "number", default: 60, min: 0, max: 240, step: 1, label: "Zoom at (frame)" },
- zoomTo: { type: "number", default: 40, min: 1, max: 100, step: 1, label: "Zoom to (scale)" },
- },
- durationInFrames: 150,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "infinite-marquee": {
- componentName: "InfiniteMarquee",
- importPath: "@/components/remocn/infinite-marquee",
- controls: {
- text: { type: "text", default: "ship · build · animate · ", label: "Text" },
- fontSize: { type: "number", default: 120, min: 12, max: 240, step: 1, label: "Font size" },
- color: { type: "color", default: "#171717", label: "Color" },
- fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- pixelsPerFrame: { type: "number", default: 4, min: 1, max: 30, step: 1, label: "Pixels / frame" },
- stroke: { type: "boolean", default: false, label: "Stroke" },
- strokeColor: { type: "color", default: "#171717", label: "Stroke color" },
- background: { type: "color", default: "#fafafa", label: "Background" },
- },
- durationInFrames: 180,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "morphing-modal": {
- componentName: "MorphingModal",
- importPath: "@/components/remocn/morphing-modal",
- controls: {
- morphAt: { type: "number", default: 30, min: 0, max: 240, step: 1, label: "Morph at (frame)" },
- borderRadiusFrom: { type: "number", default: 24, min: 0, max: 80, step: 1, label: "Radius from" },
- borderRadiusTo: { type: "number", default: 0, min: 0, max: 80, step: 1, label: "Radius to" },
- sourceTitle: { type: "text", default: "Compose video", label: "Source title" },
- sourceBody: { type: "text", default: "Click to start a new project", label: "Source body" },
- modalTitle: { type: "text", default: "New project", label: "Modal title" },
- background: { type: "color", default: "#050505", label: "Background" },
- cardColor: { type: "color", default: "#0a0a0a", label: "Card color" },
- textColor: { type: "color", default: "#fafafa", label: "Text color" },
- mutedColor: { type: "color", default: "#71717a", label: "Muted color" },
- },
- durationInFrames: 180,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "data-flow-pipes": {
- componentName: "DataFlowPipes",
- importPath: "@/components/remocn/data-flow-pipes",
- controls: {
- pipeColor: { type: "color", default: "#1f1f23", label: "Pipe color" },
- pulseColor: { type: "color", default: "#22d3ee", label: "Pulse color" },
- pulseLength: { type: "number", default: 60, min: 10, max: 200, step: 5, label: "Pulse length" },
- pulseDuration: { type: "number", default: 36, min: 8, max: 120, step: 1, label: "Pulse duration" },
- background: { type: "color", default: "#050505", label: "Background" },
- nodeColor: { type: "color", default: "#0a0a0a", label: "Node color" },
- textColor: { type: "color", default: "#fafafa", label: "Text color" },
- },
- durationInFrames: 180,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "cursor-flow": {
- componentName: "CursorFlow",
- importPath: "@/components/remocn/cursor-flow",
- controls: {
- cursorColor: { type: "color", default: "#fafafa", label: "Cursor color" },
- cursorSize: { type: "number", default: 28, min: 12, max: 64, step: 1, label: "Cursor size" },
- segmentDuration: { type: "number", default: 36, min: 8, max: 120, step: 1, label: "Segment duration" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- showTargets: { type: "boolean", default: true, label: "Show targets" },
- },
- durationInFrames: 180,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "code-accordion": {
- componentName: "CodeAccordion",
- importPath: "@/components/remocn/code-accordion",
- controls: {
- title: { type: "text", default: "process-orders.ts", label: "Title" },
- collapseAt: { type: "number", default: 30, min: 0, max: 240, step: 1, label: "Collapse at (frame)" },
- fontSize: { type: "number", default: 16, min: 10, max: 28, step: 1, label: "Font size" },
- width: { type: "number", default: 720, min: 320, max: 1100, step: 10, label: "Width" },
- background: { type: "color", default: "#050505", label: "Background" },
- cardColor: { type: "color", default: "#0a0a0a", label: "Card color" },
- textColor: { type: "color", default: "#e4e4e7", label: "Text color" },
- mutedColor: { type: "color", default: "#52525b", label: "Muted color" },
- },
- durationInFrames: 150,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "glass-code-block": {
- componentName: "GlassCodeBlock",
- importPath: "@/components/remocn/glass-code-block",
- controls: {
- title: { type: "text", default: "hero.tsx", label: "Title" },
- width: { type: "number", default: 760, min: 300, max: 1100, step: 10, label: "Width" },
- height: { type: "number", default: 460, min: 200, max: 700, step: 10, label: "Height" },
- fontSize: { type: "number", default: 16, min: 10, max: 28, step: 1, label: "Font size" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- glassColor: { type: "text", default: "rgba(10, 10, 10, 0.6)", label: "Glass color" },
- staggerFrames: { type: "number", default: 4, min: 0, max: 30, step: 1, label: "Stagger frames" },
- showTrafficLights: { type: "boolean", default: true, label: "Traffic lights" },
- },
- durationInFrames: 180,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "spotlight-card": {
- componentName: "SpotlightCard",
- importPath: "@/components/remocn/spotlight-card",
- controls: {
- title: { type: "text", default: "Spotlight Card", label: "Title" },
- body: {
- type: "text",
- default: "Soft radial light follows the cursor, picking out the microborder.",
- label: "Body",
- },
- cardWidth: { type: "number", default: 520, min: 200, max: 900, step: 10, label: "Card width" },
- cardHeight: { type: "number", default: 320, min: 160, max: 700, step: 10, label: "Card height" },
- glowSize: { type: "number", default: 600, min: 100, max: 1400, step: 20, label: "Glow size" },
- glowOpacity: { type: "number", default: 0.08, min: 0, max: 0.4, step: 0.01, label: "Glow opacity" },
- background: { type: "color", default: "#050505", label: "Background" },
- cardColor: { type: "color", default: "#0a0a0a", label: "Card color" },
- textColor: { type: "color", default: "#fafafa", label: "Text color" },
- mutedColor: { type: "color", default: "#71717a", label: "Muted color" },
- },
- durationInFrames: 240,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "perspective-marquee": {
- componentName: "PerspectiveMarquee",
- importPath: "@/components/remocn/perspective-marquee",
- controls: {
- fontSize: { type: "number", default: 84, min: 24, max: 200, step: 2, label: "Font size" },
- color: { type: "color", default: "#fafafa", label: "Color" },
- fontWeight: { type: "select", default: "700", options: FONT_WEIGHT_OPTIONS, label: "Font weight" },
- pixelsPerFrame: { type: "number", default: 2, min: 0.25, max: 10, step: 0.25, label: "Pixels / frame" },
- rotateY: { type: "number", default: -28, min: -60, max: 60, step: 1, label: "Rotate Y (deg)" },
- rotateX: { type: "number", default: 8, min: -30, max: 30, step: 1, label: "Rotate X (deg)" },
- perspective: { type: "number", default: 1200, min: 400, max: 3000, step: 50, label: "Perspective" },
- fadeColor: { type: "color", default: "#050505", label: "Fade color" },
- background: { type: "color", default: "#050505", label: "Background" },
- },
- durationInFrames: 240,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "mesh-gradient-bg": {
- componentName: "MeshGradientBg",
- importPath: "@/components/remocn/mesh-gradient-bg",
- controls: {
- speed: { type: "number", default: 1, min: 0.1, max: 4, step: 0.1, label: "Speed" },
- blur: { type: "number", default: 80, min: 20, max: 200, step: 4, label: "Blur" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- },
- durationInFrames: 150,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "dynamic-grid": {
- componentName: "DynamicGrid",
- importPath: "@/components/remocn/dynamic-grid",
- controls: {
- cellSize: { type: "number", default: 40, min: 8, max: 160, step: 4, label: "Cell size" },
- lineColor: { type: "color", default: "#27272a", label: "Line color" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- speed: { type: "number", default: 0.5, min: 0, max: 4, step: 0.1, label: "Speed" },
- direction: {
- type: "select",
- default: "diagonal",
- options: ["diagonal", "horizontal", "vertical"],
- label: "Direction",
- },
- },
- durationInFrames: 150,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "spring-pop-in": {
- componentName: "SpringPopIn",
- importPath: "@/components/remocn/spring-pop-in",
- controls: {
- damping: { type: "number", default: 12, min: 1, max: 40, step: 1, label: "Damping" },
- mass: { type: "number", default: 1, min: 0.1, max: 5, step: 0.1, label: "Mass" },
- stiffness: { type: "number", default: 100, min: 10, max: 400, step: 5, label: "Stiffness" },
- delayInFrames: { type: "number", default: 0, min: 0, max: 60, step: 1, label: "Delay (frames)" },
- },
- durationInFrames: 60,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "simulated-cursor": {
- componentName: "SimulatedCursor",
- importPath: "@/components/remocn/simulated-cursor",
- controls: {
- color: { type: "color", default: "#ffffff", label: "Color" },
- size: { type: "number", default: 32, min: 12, max: 96, step: 1, label: "Size" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- },
- durationInFrames: 150,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "pulsing-indicator": {
- componentName: "PulsingIndicator",
- importPath: "@/components/remocn/pulsing-indicator",
- controls: {
- color: { type: "color", default: "#22c55e", label: "Color" },
- size: { type: "number", default: 32, min: 8, max: 120, step: 1, label: "Size" },
- period: { type: "number", default: 8, min: 1, max: 30, step: 0.5, label: "Period (frames)" },
- background: { type: "color", default: "#ffffff", label: "Background" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "directional-wipe": {
- componentName: "DirectionalWipe",
- importPath: "@/components/remocn/directional-wipe",
- controls: {
- direction: {
- type: "select",
- default: "left",
- options: ["left", "right", "up", "down"],
- label: "Direction",
- },
- transitionDuration: {
- type: "number",
- default: 20,
- min: 4,
- max: 60,
- step: 1,
- label: "Transition duration",
- },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "device-mockup-zoom": {
- componentName: "DeviceMockupZoom",
- importPath: "@/components/remocn/device-mockup-zoom",
- controls: {
- device: {
- type: "select",
- default: "laptop",
- options: ["laptop", "phone"],
- label: "Device",
- },
- frameColor: { type: "color", default: "#1f1f1f", label: "Frame color" },
- screenColor: { type: "color", default: "#0a0a0a", label: "Screen color" },
- background: { type: "color", default: "#fafafa", label: "Background" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "zoom-through-transition": {
- componentName: "ZoomThroughTransition",
- importPath: "@/components/remocn/zoom-through-transition",
- controls: {
- targetScale: { type: "number", default: 20, min: 2, max: 60, step: 1, label: "Target scale" },
- background: { type: "color", default: "#ffffff", label: "Background" },
- },
- durationInFrames: 60,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "staggered-bento-grid": {
- componentName: "StaggeredBentoGrid",
- importPath: "@/components/remocn/staggered-bento-grid",
- controls: {
- staggerDelay: { type: "number", default: 8, min: 1, max: 30, step: 1, label: "Stagger delay" },
- columns: { type: "number", default: 3, min: 2, max: 5, step: 1, label: "Columns" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- cardColor: { type: "color", default: "#1a1a1a", label: "Card color" },
- textColor: { type: "color", default: "#ffffff", label: "Text color" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "chat-to-preview-layout": {
- componentName: "ChatToPreviewLayout",
- importPath: "@/components/remocn/chat-to-preview-layout",
- controls: {
- startChatRatio: {
- type: "number",
- default: 0.5,
- min: 0.1,
- max: 0.9,
- step: 0.05,
- label: "Start chat ratio",
- },
- endChatRatio: {
- type: "number",
- default: 0.25,
- min: 0.05,
- max: 0.9,
- step: 0.05,
- label: "End chat ratio",
- },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "bounding-box-selector": {
- componentName: "BoundingBoxSelector",
- importPath: "@/components/remocn/bounding-box-selector",
- controls: {
- borderColor: { type: "color", default: "#0ea5e9", label: "Border color" },
- handleColor: { type: "color", default: "#0ea5e9", label: "Handle color" },
- borderWidth: { type: "number", default: 2, min: 1, max: 8, step: 1, label: "Border width" },
- appearAt: { type: "number", default: 15, min: 0, max: 60, step: 1, label: "Appear at (frame)" },
- background: { type: "color", default: "#fafafa", label: "Background" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "animated-line-chart": {
- componentName: "AnimatedLineChart",
- importPath: "@/components/remocn/animated-line-chart",
- controls: {
- strokeColor: { type: "color", default: "#22c55e", label: "Stroke color" },
- strokeWidth: { type: "number", default: 4, min: 1, max: 16, step: 1, label: "Stroke width" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- gridColor: { type: "color", default: "#27272a", label: "Grid color" },
- showDot: { type: "boolean", default: true, label: "Show leading dot" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "animated-bar-chart": {
- componentName: "AnimatedBarChart",
- importPath: "@/components/remocn/animated-bar-chart",
- controls: {
- barColor: { type: "color", default: "#0ea5e9", label: "Bar color" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- gap: { type: "number", default: 16, min: 0, max: 80, step: 2, label: "Gap" },
- staggerFrames: { type: "number", default: 6, min: 0, max: 30, step: 1, label: "Stagger frames" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "terminal-simulator": {
- componentName: "TerminalSimulator",
- importPath: "@/components/remocn/terminal-simulator",
- controls: {
- prompt: { type: "text", default: "$", label: "Prompt" },
- title: { type: "text", default: "~/projects/remocn", label: "Title" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- chromeColor: { type: "color", default: "#1a1a1a", label: "Chrome color" },
- fontSize: { type: "number", default: 18, min: 10, max: 32, step: 1, label: "Font size" },
- charsPerFrame: { type: "number", default: 1, min: 0.25, max: 6, step: 0.25, label: "Chars / frame" },
- chunkSize: { type: "number", default: 4, min: 1, max: 20, step: 1, label: "Chunk size" },
- },
- durationInFrames: 240,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "code-diff-wipe": {
- componentName: "CodeDiffWipe",
- importPath: "@/components/remocn/code-diff-wipe",
- controls: {
- language: { type: "text", default: "tsx", label: "Language" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- accent: { type: "color", default: "#0ea5e9", label: "Accent" },
- transitionStart: { type: "number", default: 20, min: 0, max: 120, step: 1, label: "Transition start" },
- transitionDuration: { type: "number", default: 60, min: 8, max: 180, step: 1, label: "Transition duration" },
- showHandle: { type: "boolean", default: true, label: "Show handle" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "toast-notification": {
- componentName: "ToastNotification",
- importPath: "@/components/remocn/toast-notification",
- controls: {
- title: { type: "text", default: "Deployment successful", label: "Title" },
- message: { type: "text", default: "Your changes are live at remocn.dev", label: "Message" },
- variant: {
- type: "select",
- default: "success",
- options: ["success", "error", "info", "warning"],
- label: "Variant",
- },
- background: { type: "color", default: "#fafafa", label: "Background" },
- cardColor: { type: "color", default: "#ffffff", label: "Card color" },
- textColor: { type: "color", default: "#171717", label: "Text color" },
- mutedColor: { type: "color", default: "#71717a", label: "Muted color" },
- },
- durationInFrames: 90,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "drag-and-drop-flow": {
- componentName: "DragAndDropFlow",
- importPath: "@/components/remocn/drag-and-drop-flow",
- controls: {
- accent: { type: "color", default: "#0ea5e9", label: "Accent" },
- dropzoneLabel: { type: "text", default: "Drop file to upload", label: "Dropzone label" },
- fileName: { type: "text", default: "design.fig", label: "File name" },
- background: { type: "color", default: "#fafafa", label: "Background" },
- },
- durationInFrames: 150,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "progress-steps": {
- componentName: "ProgressSteps",
- importPath: "@/components/remocn/progress-steps",
- controls: {
- orientation: {
- type: "select",
- default: "horizontal",
- options: ["horizontal", "vertical"],
- label: "Orientation",
- },
- activeColor: { type: "color", default: "#22c55e", label: "Active color" },
- inactiveColor: { type: "color", default: "#27272a", label: "Inactive color" },
- background: { type: "color", default: "#0a0a0a", label: "Background" },
- textColor: { type: "color", default: "#ffffff", label: "Text color" },
- stepDuration: { type: "number", default: 30, min: 4, max: 120, step: 1, label: "Step duration" },
- },
- durationInFrames: 150,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
- "success-confetti": {
- componentName: "SuccessConfetti",
- importPath: "@/components/remocn/success-confetti",
- controls: {
- count: { type: "number", default: 60, min: 10, max: 200, step: 5, label: "Particle count" },
- originX: { type: "number", default: 0.5, min: 0, max: 1, step: 0.05, label: "Origin X" },
- originY: { type: "number", default: 0.5, min: 0, max: 1, step: 0.05, label: "Origin Y" },
- gravity: { type: "number", default: 0.4, min: 0, max: 2, step: 0.05, label: "Gravity" },
- velocity: { type: "number", default: 12, min: 1, max: 40, step: 0.5, label: "Velocity" },
- text: { type: "text", default: "Merged!", label: "Text" },
- textColor: { type: "color", default: "#171717", label: "Text color" },
- background: { type: "color", default: "#fafafa", label: "Background" },
- seed: { type: "text", default: "remocn", label: "Seed" },
- },
- durationInFrames: 120,
- fps: FPS,
- compositionWidth: W,
- compositionHeight: H,
- },
-};
-
-// Append the shared controls (e.g. `speed`) to every component config so
-// every animation in the customizer exposes the same baseline knobs.
-for (const cfg of Object.values(componentConfigs)) {
- cfg.controls = { ...cfg.controls, ...SHARED_CONTROLS };
-}
-
export function getDefaults(controls: ControlConfig): Record<string, unknown> {
const out: Record<string, unknown> = {};
for (const [key, ctrl] of Object.entries(controls)) {
diff --git a/public/r/animated-bar-chart.json b/public/r/animated-bar-chart.json
new file mode 100644
index 00000000..15936071
--- /dev/null
+++ b/public/r/animated-bar-chart.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "animated-bar-chart",
+ "title": "Animated Bar Chart",
+ "description": "Bars spring up from the baseline in a staggered cascade.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/animated-bar-chart/index.tsx",
+ "content": "\"use client\";\n\nimport { spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface AnimatedBarChartProps {\n data?: number[];\n labels?: string[];\n width?: number;\n height?: number;\n barColor?: string;\n background?: string;\n gap?: number;\n staggerFrames?: number;\n speed?: number;\n className?: string;\n}\n\nexport function AnimatedBarChart({\n data = [35, 60, 45, 80, 55, 70, 90, 65],\n labels,\n width = 1000,\n height = 500,\n barColor = \"#0ea5e9\",\n background = \"#0a0a0a\",\n gap = 16,\n staggerFrames = 6,\n speed = 1,\n className,\n}: AnimatedBarChartProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const padding = 60;\n const labelSpace = labels ? 40 : 0;\n const innerWidth = width - padding * 2;\n const innerHeight = height - padding * 2 - labelSpace;\n const max = Math.max(...data);\n const barWidth = (innerWidth - gap * (data.length - 1)) / data.length;\n const baseY = padding + innerHeight;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <svg width={width} height={height} viewBox={`0 0 ${width} ${height}`}>\n {/* Baseline */}\n <line\n x1={padding}\n x2={padding + innerWidth}\n y1={baseY}\n y2={baseY}\n stroke=\"#27272a\"\n strokeWidth={2}\n />\n\n {data.map((value, index) => {\n const targetHeight = (value / max) * innerHeight;\n const x = padding + index * (barWidth + gap);\n const y = baseY - targetHeight;\n\n const scaleY = spring({\n frame: frame - index * staggerFrames,\n fps,\n config: { damping: 12, stiffness: 100, mass: 0.8 },\n from: 0,\n to: 1,\n });\n\n return (\n <g key={index}>\n <rect\n x={x}\n y={y}\n width={barWidth}\n height={targetHeight}\n rx={6}\n fill={barColor}\n style={{\n transform: `scaleY(${scaleY})`,\n transformOrigin: `${x + barWidth / 2}px ${baseY}px`,\n transformBox: \"fill-box\",\n filter: `drop-shadow(0 4px 16px ${barColor}55)`,\n }}\n />\n {labels && labels[index] && (\n <text\n x={x + barWidth / 2}\n y={baseY + 28}\n fill=\"#a1a1aa\"\n fontSize={16}\n textAnchor=\"middle\"\n style={{\n opacity: scaleY,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {labels[index]}\n </text>\n )}\n </g>\n );\n })}\n </svg>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/animated-bar-chart.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/animated-line-chart.json b/public/r/animated-line-chart.json
new file mode 100644
index 00000000..82a1b640
--- /dev/null
+++ b/public/r/animated-line-chart.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "animated-line-chart",
+ "title": "Animated Line Chart",
+ "description": "Line chart whose SVG path draws on from left to right with a leading dot.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/animated-line-chart/index.tsx",
+ "content": "\"use client\";\n\nimport { spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface AnimatedLineChartProps {\n data?: number[];\n width?: number;\n height?: number;\n strokeColor?: string;\n strokeWidth?: number;\n background?: string;\n gridColor?: string;\n showDot?: boolean;\n speed?: number;\n className?: string;\n}\n\nexport function AnimatedLineChart({\n data = [12, 19, 8, 15, 22, 18, 28, 25, 32],\n width = 1000,\n height = 500,\n strokeColor = \"#22c55e\",\n strokeWidth = 4,\n background = \"#0a0a0a\",\n gridColor = \"#27272a\",\n showDot = true,\n speed = 1,\n className,\n}: AnimatedLineChartProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n const padding = 60;\n const innerWidth = width - padding * 2;\n const innerHeight = height - padding * 2;\n\n const min = Math.min(...data);\n const max = Math.max(...data);\n const range = max - min || 1;\n\n const points = data.map((value, index) => {\n const x = padding + (index / (data.length - 1)) * innerWidth;\n const y = padding + innerHeight - ((value - min) / range) * innerHeight;\n return { x, y };\n });\n\n // Analytical path length: sum of segment distances\n let pathLength = 0;\n for (let i = 1; i < points.length; i++) {\n const dx = points[i].x - points[i - 1].x;\n const dy = points[i].y - points[i - 1].y;\n pathLength += Math.sqrt(dx * dx + dy * dy);\n }\n\n const d = points\n .map((p, i) => `${i === 0 ? \"M\" : \"L\"}${p.x.toFixed(2)},${p.y.toFixed(2)}`)\n .join(\" \");\n\n // Spring-driven progress: smooth, no bounce. Matches the \"smooth\" preset\n // from remotion-best-practices/timing.md.\n const progress = spring({\n frame,\n fps,\n durationInFrames: Math.round(durationInFrames * 0.85),\n config: { damping: 200 },\n });\n\n const dashOffset = pathLength * (1 - progress);\n\n // Find dot position along the path at current progress\n const targetLen = pathLength * progress;\n let traveled = 0;\n let dotX = points[0].x;\n let dotY = points[0].y;\n for (let i = 1; i < points.length; i++) {\n const dx = points[i].x - points[i - 1].x;\n const dy = points[i].y - points[i - 1].y;\n const segLen = Math.sqrt(dx * dx + dy * dy);\n if (traveled + segLen >= targetLen) {\n const t = (targetLen - traveled) / segLen;\n dotX = points[i - 1].x + dx * t;\n dotY = points[i - 1].y + dy * t;\n break;\n }\n traveled += segLen;\n dotX = points[i].x;\n dotY = points[i].y;\n }\n\n const gridRows = 4;\n const gridCols = data.length - 1;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <svg\n width={width}\n height={height}\n viewBox={`0 0 ${width} ${height}`}\n style={{ overflow: \"visible\" }}\n >\n {/* Horizontal grid */}\n {Array.from({ length: gridRows + 1 }).map((_, i) => {\n const y = padding + (i / gridRows) * innerHeight;\n return (\n <line\n key={`h-${i}`}\n x1={padding}\n x2={padding + innerWidth}\n y1={y}\n y2={y}\n stroke={gridColor}\n strokeWidth={1}\n />\n );\n })}\n {/* Vertical grid */}\n {Array.from({ length: gridCols + 1 }).map((_, i) => {\n const x = padding + (i / gridCols) * innerWidth;\n return (\n <line\n key={`v-${i}`}\n x1={x}\n x2={x}\n y1={padding}\n y2={padding + innerHeight}\n stroke={gridColor}\n strokeWidth={1}\n />\n );\n })}\n {/* Axis */}\n <line\n x1={padding}\n x2={padding}\n y1={padding}\n y2={padding + innerHeight}\n stroke={gridColor}\n strokeWidth={2}\n />\n <line\n x1={padding}\n x2={padding + innerWidth}\n y1={padding + innerHeight}\n y2={padding + innerHeight}\n stroke={gridColor}\n strokeWidth={2}\n />\n\n {/* Animated line */}\n <path\n d={d}\n fill=\"none\"\n stroke={strokeColor}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeDasharray={pathLength}\n strokeDashoffset={dashOffset}\n style={{\n filter: `drop-shadow(0 0 12px ${strokeColor}55)`,\n }}\n />\n\n {showDot && progress > 0 && progress < 1 && (\n <circle\n cx={dotX}\n cy={dotY}\n r={strokeWidth * 2}\n fill={strokeColor}\n style={{\n filter: `drop-shadow(0 0 8px ${strokeColor})`,\n }}\n />\n )}\n </svg>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/animated-line-chart.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/blur-reveal.json b/public/r/blur-reveal.json
index 6c6278ee..4407d72a 100644
--- a/public/r/blur-reveal.json
+++ b/public/r/blur-reveal.json
@@ -6,8 +6,8 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/blur-reveal.tsx",
- "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface BlurRevealProps {\n text: string;\n className?: string;\n blur?: number;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n}\n\nexport function BlurReveal({\n text,\n className,\n blur = 10,\n fontSize = 48,\n color = \"#171717\",\n fontWeight = 600,\n}: BlurRevealProps) {\n const frame = useCurrentFrame();\n const { durationInFrames } = useVideoConfig();\n\n const opacity = interpolate(frame, [0, durationInFrames * 0.6], [0, 1], {\n extrapolateRight: \"clamp\",\n });\n\n const blurAmount = interpolate(\n frame,\n [0, durationInFrames * 0.6],\n [blur, 0],\n { extrapolateRight: \"clamp\" },\n );\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n opacity,\n filter: `blur(${blurAmount}px)`,\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.05em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {text}\n </span>\n </div>\n );\n}\n",
+ "path": "registry/remocn/blur-reveal/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface BlurRevealProps {\n text: string;\n className?: string;\n blur?: number;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n}\n\nexport function BlurReveal({\n text,\n className,\n blur = 10,\n fontSize = 48,\n color = \"#171717\",\n fontWeight = 600,\n speed = 1,\n}: BlurRevealProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const opacity = interpolate(frame, [0, durationInFrames * 0.6], [0, 1], {\n extrapolateRight: \"clamp\",\n });\n\n const blurAmount = interpolate(\n frame,\n [0, durationInFrames * 0.6],\n [blur, 0],\n { extrapolateRight: \"clamp\" },\n );\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n opacity,\n filter: `blur(${blurAmount}px)`,\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.05em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {text}\n </span>\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/blur-reveal.tsx"
}
diff --git a/public/r/bounding-box-selector.json b/public/r/bounding-box-selector.json
new file mode 100644
index 00000000..fe99f142
--- /dev/null
+++ b/public/r/bounding-box-selector.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "bounding-box-selector",
+ "title": "Bounding Box Selector",
+ "description": "Figma-style selection rectangle appears around any element.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/bounding-box-selector/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface BoundingBoxSelectorProps {\n children?: ReactNode;\n borderColor?: string;\n handleColor?: string;\n borderWidth?: number;\n appearAt?: number;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultPlaceholder() {\n return (\n <div\n style={{\n width: 480,\n height: 280,\n background: \"white\",\n borderRadius: 16,\n boxShadow: \"0 12px 40px rgba(0,0,0,0.08)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"#71717a\",\n fontFamily: FONT_FAMILY,\n fontSize: 24,\n fontWeight: 600,\n letterSpacing: \"-0.02em\",\n }}\n >\n Selected element\n </div>\n );\n}\n\nfunction Handle({\n color,\n style,\n}: {\n color: string;\n style: React.CSSProperties;\n}) {\n return (\n <div\n style={{\n position: \"absolute\",\n width: 10,\n height: 10,\n background: \"white\",\n border: `2px solid ${color}`,\n borderRadius: 2,\n ...style,\n }}\n />\n );\n}\n\nexport function BoundingBoxSelector({\n children,\n borderColor = \"#0ea5e9\",\n handleColor = \"#0ea5e9\",\n borderWidth = 2,\n appearAt = 15,\n background = \"#fafafa\",\n speed = 1,\n className,\n}: BoundingBoxSelectorProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const progress = spring({\n frame: frame - appearAt,\n fps,\n config: { damping: 16, stiffness: 140, mass: 0.7 },\n });\n\n const opacity = progress;\n const scale = 0.96 + progress * 0.04;\n\n const content = children ?? <DefaultPlaceholder />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <div style={{ position: \"relative\", display: \"inline-block\" }}>\n {content}\n <div\n style={{\n position: \"absolute\",\n inset: -8,\n border: `${borderWidth}px solid ${borderColor}`,\n borderRadius: 4,\n opacity,\n transform: `scale(${scale})`,\n transformOrigin: \"center center\",\n pointerEvents: \"none\",\n willChange: \"transform, opacity\",\n }}\n >\n <Handle color={handleColor} style={{ top: -6, left: -6 }} />\n <Handle color={handleColor} style={{ top: -6, right: -6 }} />\n <Handle color={handleColor} style={{ bottom: -6, left: -6 }} />\n <Handle color={handleColor} style={{ bottom: -6, right: -6 }} />\n <Handle\n color={handleColor}\n style={{ top: -6, left: \"50%\", marginLeft: -5 }}\n />\n <Handle\n color={handleColor}\n style={{ bottom: -6, left: \"50%\", marginLeft: -5 }}\n />\n <Handle\n color={handleColor}\n style={{ left: -6, top: \"50%\", marginTop: -5 }}\n />\n <Handle\n color={handleColor}\n style={{ right: -6, top: \"50%\", marginTop: -5 }}\n />\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/bounding-box-selector.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/chat-to-preview-layout.json b/public/r/chat-to-preview-layout.json
new file mode 100644
index 00000000..eecc079d
--- /dev/null
+++ b/public/r/chat-to-preview-layout.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "chat-to-preview-layout",
+ "title": "Chat to Preview Layout",
+ "description": "Two-column layout where chat shrinks and preview expands.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/chat-to-preview-layout/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface ChatToPreviewLayoutProps {\n chat?: ReactNode;\n preview?: ReactNode;\n startChatRatio?: number;\n endChatRatio?: number;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultChat() {\n const messages = [\n { from: \"user\", text: \"Build me a landing page\" },\n { from: \"ai\", text: \"Sure — what should it feature?\" },\n { from: \"user\", text: \"Hero, pricing, footer.\" },\n { from: \"ai\", text: \"On it. Generating now...\" },\n ];\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n padding: 24,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 12,\n fontFamily: FONT_FAMILY,\n background: \"#111\",\n }}\n >\n <div\n style={{\n color: \"#888\",\n fontSize: 12,\n fontWeight: 600,\n letterSpacing: \"0.08em\",\n textTransform: \"uppercase\",\n marginBottom: 8,\n }}\n >\n Chat\n </div>\n {messages.map((m, i) => (\n <div\n key={i}\n style={{\n alignSelf: m.from === \"user\" ? \"flex-end\" : \"flex-start\",\n background: m.from === \"user\" ? \"#0ea5e9\" : \"#262626\",\n color: \"white\",\n padding: \"10px 14px\",\n borderRadius: 14,\n fontSize: 14,\n maxWidth: \"85%\",\n }}\n >\n {m.text}\n </div>\n ))}\n </div>\n );\n}\n\nfunction DefaultPreview() {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"white\",\n display: \"flex\",\n flexDirection: \"column\",\n fontFamily: FONT_FAMILY,\n }}\n >\n <div\n style={{\n height: 36,\n background: \"#f4f4f5\",\n borderBottom: \"1px solid #e4e4e7\",\n display: \"flex\",\n alignItems: \"center\",\n gap: 6,\n padding: \"0 12px\",\n }}\n >\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"#ef4444\",\n }}\n />\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"#f59e0b\",\n }}\n />\n <div\n style={{\n width: 10,\n height: 10,\n borderRadius: 999,\n background: \"#22c55e\",\n }}\n />\n </div>\n <div\n style={{\n flex: 1,\n padding: 32,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 16,\n }}\n >\n <div\n style={{\n fontSize: 36,\n fontWeight: 700,\n letterSpacing: \"-0.03em\",\n color: \"#0a0a0a\",\n }}\n >\n Ship faster.\n </div>\n <div style={{ fontSize: 16, color: \"#71717a\", maxWidth: 360 }}>\n The fastest way to launch your idea. Built with Remotion.\n </div>\n <div\n style={{\n marginTop: 12,\n display: \"inline-flex\",\n background: \"#0a0a0a\",\n color: \"white\",\n padding: \"10px 18px\",\n borderRadius: 10,\n alignSelf: \"flex-start\",\n fontSize: 14,\n fontWeight: 600,\n }}\n >\n Get started\n </div>\n </div>\n </div>\n );\n}\n\nexport function ChatToPreviewLayout({\n chat,\n preview,\n startChatRatio = 0.5,\n endChatRatio = 0.25,\n background = \"#0a0a0a\",\n speed = 1,\n className,\n}: ChatToPreviewLayoutProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n // Apple's signature ease — slow start, dramatic settle. Replaces the older\n // symmetric bezier so the morph feels deliberate instead of mechanical.\n const APPLE_EASE = Easing.bezier(0.16, 1, 0.3, 1);\n\n const morphStart = durationInFrames * 0.1;\n const morphEnd = durationInFrames * 0.7;\n\n const ratio = interpolate(\n frame,\n [morphStart, morphEnd],\n [startChatRatio, endChatRatio],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: APPLE_EASE,\n },\n );\n\n // Right (preview) panel reveal: fade in + slide left into its growing slot.\n // Anchored to the same morph window so it feels like the chat is physically\n // dragging the preview into existence.\n const previewOpacity = interpolate(\n frame,\n [morphStart, morphEnd],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: APPLE_EASE,\n },\n );\n const previewTx = interpolate(\n frame,\n [morphStart, morphEnd],\n [40, 0],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: APPLE_EASE,\n },\n );\n\n const chatBasis = `${ratio * 100}%`;\n const previewBasis = `${(1 - ratio) * 100}%`;\n\n // Inner content min-widths. These are the lever that prevents text from\n // re-flowing inside the columns as the parent flex-basis morphs — content\n // is rendered at a fixed virtual width, then clipped by `overflow: hidden`\n // on the outer column. No reflow → no jumping characters.\n const CHAT_INNER_MIN = 520;\n const PREVIEW_INNER_MIN = 720;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n padding: 32,\n display: \"flex\",\n gap: 16,\n }}\n >\n <div\n style={{\n flexBasis: chatBasis,\n flexGrow: 0,\n flexShrink: 0,\n position: \"relative\",\n overflow: \"hidden\",\n borderRadius: 16,\n border: \"1px solid rgba(255,255,255,0.08)\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n minWidth: CHAT_INNER_MIN,\n }}\n >\n {chat ?? <DefaultChat />}\n </div>\n </div>\n <div\n style={{\n flexBasis: previewBasis,\n flexGrow: 0,\n flexShrink: 0,\n position: \"relative\",\n overflow: \"hidden\",\n borderRadius: 16,\n border: \"1px solid rgba(255,255,255,0.08)\",\n opacity: previewOpacity,\n transform: `translateX(${previewTx}px)`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n minWidth: PREVIEW_INNER_MIN,\n }}\n >\n {preview ?? <DefaultPreview />}\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/chat-to-preview-layout.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/code-accordion.json b/public/r/code-accordion.json
new file mode 100644
index 00000000..d6b8a34c
--- /dev/null
+++ b/public/r/code-accordion.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "code-accordion",
+ "title": "Code Accordion",
+ "description": "A code window that springs a range of lines closed and replaces them with a \"N lines collapsed\" placeholder.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/code-accordion/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface CodeAccordionProps {\n lines?: string[];\n collapseRange?: [number, number];\n collapseAt?: number;\n title?: string;\n fontSize?: number;\n width?: number;\n background?: string;\n cardColor?: string;\n textColor?: string;\n mutedColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_MONO =\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace\";\n\nconst DEFAULT_LINES = [\n \"export function processOrders(orders) {\",\n \" const valid = [];\",\n \" for (const order of orders) {\",\n \" if (!order.id) continue;\",\n \" if (!order.customer) continue;\",\n \" if (!order.items?.length) continue;\",\n \" if (order.total <= 0) continue;\",\n \" if (order.status === 'cancelled') continue;\",\n \" if (order.status === 'refunded') continue;\",\n \" const enriched = enrich(order);\",\n \" const validated = validate(enriched);\",\n \" if (!validated.ok) continue;\",\n \" const priced = price(validated.value);\",\n \" const taxed = applyTax(priced);\",\n \" const shipped = applyShipping(taxed);\",\n \" valid.push(shipped);\",\n \" }\",\n \" return valid;\",\n \"}\",\n];\n\nexport function CodeAccordion({\n lines = DEFAULT_LINES,\n collapseRange = [3, 14],\n collapseAt = 30,\n title = \"process-orders.ts\",\n fontSize = 16,\n width = 720,\n background = \"#050505\",\n cardColor = \"#0a0a0a\",\n textColor = \"#e4e4e7\",\n mutedColor = \"#52525b\",\n speed = 1,\n className,\n}: CodeAccordionProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const lineHeight = Math.round(fontSize * 1.55);\n const [start, end] = collapseRange;\n const collapsedCount = Math.max(0, end - start + 1);\n\n // Spring drives BOTH the inner collapse height AND a tiny y-bounce on the\n // window so the accordion feels like it has weight.\n const collapseProgress = spring({\n frame: frame - collapseAt,\n fps,\n config: { damping: 10, stiffness: 110, mass: 1 },\n });\n\n const collapsedHeight = interpolate(\n collapseProgress,\n [0, 1],\n [collapsedCount * lineHeight, lineHeight], // collapses down to the placeholder bar's height\n );\n\n const collapsedOpacity = interpolate(collapseProgress, [0, 0.6], [1, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const placeholderOpacity = interpolate(collapseProgress, [0.4, 1], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const before = lines.slice(0, start);\n const collapsed = lines.slice(start, end + 1);\n const after = lines.slice(end + 1);\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily: FONT_MONO,\n }}\n >\n <div\n style={{\n width,\n background: cardColor,\n borderRadius: 14,\n overflow: \"hidden\",\n boxShadow:\n \"0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05)\",\n border: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n {/* Chrome */}\n <div\n style={{\n height: 38,\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n padding: \"0 14px\",\n borderBottom: \"1px solid rgba(255,255,255,0.05)\",\n }}\n >\n <Light color=\"#ff5f57\" />\n <Light color=\"#febc2e\" />\n <Light color=\"#28c840\" />\n <div\n style={{\n flex: 1,\n textAlign: \"center\",\n color: mutedColor,\n fontSize: 12,\n }}\n >\n {title}\n </div>\n </div>\n\n {/* Code body */}\n <div style={{ padding: \"16px 0\", fontSize, lineHeight: 1.55 }}>\n {before.map((line, i) => (\n <Line\n key={`b-${i}`}\n line={line}\n index={i}\n lineHeight={lineHeight}\n textColor={textColor}\n mutedColor={mutedColor}\n />\n ))}\n\n {/* Collapsing region */}\n <div\n style={{\n position: \"relative\",\n height: collapsedHeight,\n overflow: \"hidden\",\n transition: \"none\",\n }}\n >\n <div style={{ opacity: collapsedOpacity }}>\n {collapsed.map((line, i) => (\n <Line\n key={`c-${i}`}\n line={line}\n index={start + i}\n lineHeight={lineHeight}\n textColor={textColor}\n mutedColor={mutedColor}\n />\n ))}\n </div>\n\n {/* Placeholder bar — sits at the bottom so it sits on the same\n baseline as the collapsed-into row. */}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n bottom: 0,\n height: lineHeight,\n display: \"flex\",\n alignItems: \"center\",\n paddingLeft: 56,\n color: mutedColor,\n fontStyle: \"italic\",\n opacity: placeholderOpacity,\n }}\n >\n ⋯ {collapsedCount} lines collapsed\n </div>\n </div>\n\n {after.map((line, i) => (\n <Line\n key={`a-${i}`}\n line={line}\n index={end + 1 + i}\n lineHeight={lineHeight}\n textColor={textColor}\n mutedColor={mutedColor}\n />\n ))}\n </div>\n </div>\n </div>\n );\n}\n\nfunction Light({ color }: { color: string }) {\n return (\n <div\n style={{\n width: 11,\n height: 11,\n borderRadius: \"50%\",\n background: color,\n opacity: 0.6,\n }}\n />\n );\n}\n\nfunction Line({\n line,\n index,\n lineHeight,\n textColor,\n mutedColor,\n}: {\n line: string;\n index: number;\n lineHeight: number;\n textColor: string;\n mutedColor: string;\n}) {\n return (\n <div\n style={{\n height: lineHeight,\n display: \"flex\",\n alignItems: \"center\",\n whiteSpace: \"pre\",\n color: textColor,\n }}\n >\n <span\n style={{\n width: 56,\n textAlign: \"right\",\n paddingRight: 16,\n color: mutedColor,\n userSelect: \"none\",\n }}\n >\n {index + 1}\n </span>\n <span>{line}</span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/code-accordion.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/code-diff-wipe.json b/public/r/code-diff-wipe.json
new file mode 100644
index 00000000..a6e40c68
--- /dev/null
+++ b/public/r/code-diff-wipe.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "code-diff-wipe",
+ "title": "Code Diff Wipe",
+ "description": "Before/after code reveal via clip-path wipe with a handle marker.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/code-diff-wipe/index.tsx",
+ "content": "\"use client\";\n\nimport { Easing, interpolate, useCurrentFrame } from \"remotion\";\n\nexport interface CodeDiffWipeProps {\n before?: string;\n after?: string;\n language?: string;\n background?: string;\n accent?: string;\n transitionStart?: number;\n transitionDuration?: number;\n showHandle?: boolean;\n speed?: number;\n className?: string;\n}\n\nconst DEFAULT_BEFORE = `function getUser(id) {\n return fetch('/api/user/' + id)\n .then(function (res) {\n return res.json();\n })\n .then(function (data) {\n if (data.error) {\n throw new Error(data.error);\n }\n return data.user;\n });\n}`;\n\nconst DEFAULT_AFTER = `async function getUser(id: string) {\n const res = await fetch(\\`/api/user/\\${id}\\`);\n const { user, error } = await res.json();\n if (error) throw new Error(error);\n return user;\n}`;\n\nexport function CodeDiffWipe({\n before = DEFAULT_BEFORE,\n after = DEFAULT_AFTER,\n language = \"tsx\",\n background = \"#0a0a0a\",\n accent = \"#0ea5e9\",\n transitionStart = 20,\n transitionDuration = 60,\n showHandle = true,\n speed = 1,\n className,\n}: CodeDiffWipeProps) {\n const frame = useCurrentFrame() * speed;\n\n const progress = interpolate(\n frame,\n [transitionStart, transitionStart + transitionDuration],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.inOut(Easing.cubic),\n },\n );\n\n const wipePercent = progress * 100;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"#050505\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: 980,\n height: 560,\n borderRadius: 14,\n overflow: \"hidden\",\n background,\n boxShadow:\n \"0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06)\",\n }}\n >\n {/* AFTER (bottom layer) */}\n <CodePane\n code={after}\n background={background}\n label=\"AFTER\"\n labelColor={accent}\n language={language}\n />\n\n {/* BEFORE (top layer, clipped) */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n clipPath: `inset(0 ${wipePercent}% 0 0)`,\n }}\n >\n <CodePane\n code={before}\n background={background}\n label=\"BEFORE\"\n labelColor=\"#ef4444\"\n language={language}\n dimmed\n />\n </div>\n\n {/* Handle */}\n {showHandle && wipePercent > 0 && wipePercent < 100 && (\n <div\n style={{\n position: \"absolute\",\n top: 0,\n bottom: 0,\n left: `${wipePercent}%`,\n width: 2,\n background: accent,\n transform: \"translateX(-1px)\",\n boxShadow: `0 0 24px ${accent}`,\n }}\n >\n <div\n style={{\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n transform: \"translate(-50%, -50%)\",\n width: 40,\n height: 40,\n borderRadius: \"50%\",\n background: accent,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"#0a0a0a\",\n fontSize: 18,\n fontWeight: 700,\n boxShadow: `0 0 32px ${accent}aa`,\n }}\n >\n {\"<>\"}\n </div>\n </div>\n )}\n </div>\n </div>\n );\n}\n\nfunction CodePane({\n code,\n background,\n label,\n labelColor,\n language,\n dimmed,\n}: {\n code: string;\n background: string;\n label: string;\n labelColor: string;\n language: string;\n dimmed?: boolean;\n}) {\n const lines = code.split(\"\\n\");\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n flexDirection: \"column\",\n }}\n >\n {/* Header */}\n <div\n style={{\n height: 44,\n padding: \"0 18px\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n background: \"rgba(255,255,255,0.02)\",\n }}\n >\n <div\n style={{\n color: \"#71717a\",\n fontSize: 13,\n fontFamily:\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace\",\n }}\n >\n {language}\n </div>\n <div\n style={{\n fontSize: 11,\n fontWeight: 700,\n letterSpacing: \"0.12em\",\n color: labelColor,\n padding: \"4px 10px\",\n borderRadius: 999,\n background: `${labelColor}1a`,\n border: `1px solid ${labelColor}55`,\n }}\n >\n {label}\n </div>\n </div>\n\n {/* Code */}\n <pre\n style={{\n flex: 1,\n margin: 0,\n padding: 24,\n color: dimmed ? \"#71717a\" : \"#e4e4e7\",\n fontSize: 16,\n lineHeight: 1.6,\n fontFamily:\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace\",\n overflow: \"hidden\",\n whiteSpace: \"pre\",\n }}\n >\n {lines.map((line, i) => (\n <div key={i} style={{ display: \"flex\" }}>\n <span\n style={{\n width: 32,\n textAlign: \"right\",\n marginRight: 16,\n color: \"#3f3f46\",\n userSelect: \"none\",\n }}\n >\n {i + 1}\n </span>\n <span>{line || \" \"}</span>\n </div>\n ))}\n </pre>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/code-diff-wipe.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/cursor-flow.json b/public/r/cursor-flow.json
new file mode 100644
index 00000000..8760b7e1
--- /dev/null
+++ b/public/r/cursor-flow.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "cursor-flow",
+ "title": "Cursor Flow",
+ "description": "A realistic mouse that arcs along cubic Bezier paths, pauses, and clicks targets that dip in response.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/cursor-flow/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface CursorWaypoint {\n x: number;\n y: number;\n /** If set, the cursor will pause here for this many frames before moving on. */\n hold?: number;\n /** If true, a click animation will fire when the cursor reaches this point. */\n click?: boolean;\n /** Optional label rendered next to the click target. */\n label?: string;\n}\n\nexport interface CursorFlowProps {\n waypoints?: CursorWaypoint[];\n cursorColor?: string;\n cursorSize?: number;\n segmentDuration?: number;\n background?: string;\n showTargets?: boolean;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst DEFAULT_WAYPOINTS: CursorWaypoint[] = [\n { x: 200, y: 180 },\n { x: 540, y: 240, click: true, label: \"Generate\" },\n { x: 880, y: 360, hold: 8 },\n { x: 1040, y: 520, click: true, label: \"Publish\" },\n];\n\n/**\n * Cubic Bezier evaluator. Two control points are derived per segment so the\n * trajectory always has a \"belly\" — straight lines between two points are\n * specifically the look we want to avoid.\n */\nfunction cubicBezier(\n t: number,\n p0: { x: number; y: number },\n p1: { x: number; y: number },\n p2: { x: number; y: number },\n p3: { x: number; y: number },\n) {\n const u = 1 - t;\n const tt = t * t;\n const uu = u * u;\n const uuu = uu * u;\n const ttt = tt * t;\n return {\n x: uuu * p0.x + 3 * uu * t * p1.x + 3 * u * tt * p2.x + ttt * p3.x,\n y: uuu * p0.y + 3 * uu * t * p1.y + 3 * u * tt * p2.y + ttt * p3.y,\n };\n}\n\n/** Apple-flavoured ease for in-segment motion: slow start, slow end. */\nfunction easeInOut(t: number) {\n return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;\n}\n\n/** Per-segment control points: midpoint perpendicular offset gives a natural arc. */\nfunction controlsFor(\n a: { x: number; y: number },\n b: { x: number; y: number },\n index: number,\n) {\n const dx = b.x - a.x;\n const dy = b.y - a.y;\n const len = Math.hypot(dx, dy) || 1;\n // Perpendicular unit vector. Alternate sign per segment so the path snakes\n // instead of always bulging the same way.\n const sign = index % 2 === 0 ? 1 : -1;\n const px = (-dy / len) * (len * 0.18) * sign;\n const py = (dx / len) * (len * 0.18) * sign;\n // Place control points at 1/3 and 2/3 along the chord, offset perpendicular.\n return [\n { x: a.x + dx / 3 + px, y: a.y + dy / 3 + py },\n { x: a.x + (2 * dx) / 3 + px, y: a.y + (2 * dy) / 3 + py },\n ];\n}\n\nexport function CursorFlow({\n waypoints = DEFAULT_WAYPOINTS,\n cursorColor = \"#fafafa\",\n cursorSize = 28,\n segmentDuration = 36,\n background = \"#0a0a0a\",\n showTargets = true,\n speed = 1,\n className,\n}: CursorFlowProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // Build the timeline: each segment is segmentDuration frames, with optional\n // hold time at each waypoint.\n type SegmentTiming = { startFrame: number; endFrame: number; holdEnd: number };\n const timings: SegmentTiming[] = [];\n let cursorFrame = 0;\n for (let i = 0; i < waypoints.length - 1; i++) {\n const start = cursorFrame;\n const end = start + segmentDuration;\n const holdEnd = end + (waypoints[i + 1].hold ?? 0);\n timings.push({ startFrame: start, endFrame: end, holdEnd });\n cursorFrame = holdEnd;\n }\n\n // Find the active segment.\n let pos = { x: waypoints[0].x, y: waypoints[0].y };\n let activeWaypointIndex = 0;\n for (let i = 0; i < timings.length; i++) {\n const { startFrame, endFrame, holdEnd } = timings[i];\n if (frame >= startFrame && frame < endFrame) {\n const t = easeInOut((frame - startFrame) / segmentDuration);\n const a = waypoints[i];\n const b = waypoints[i + 1];\n const [c1, c2] = controlsFor(a, b, i);\n pos = cubicBezier(t, a, c1, c2, b);\n activeWaypointIndex = i;\n break;\n } else if (frame >= endFrame && frame < holdEnd) {\n pos = { x: waypoints[i + 1].x, y: waypoints[i + 1].y };\n activeWaypointIndex = i + 1;\n break;\n } else if (frame >= holdEnd) {\n pos = { x: waypoints[i + 1].x, y: waypoints[i + 1].y };\n activeWaypointIndex = i + 1;\n }\n }\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n fontFamily: FONT_FAMILY,\n }}\n >\n {/* Click targets */}\n {showTargets &&\n waypoints.map((wp, i) => {\n if (!wp.click) return null;\n // Find when the cursor reaches this waypoint and trigger the press scale.\n const timing = timings[i - 1];\n const arrivalFrame = timing ? timing.endFrame : 0;\n return (\n <ClickTarget\n key={i}\n x={wp.x}\n y={wp.y}\n label={wp.label}\n arrivalFrame={arrivalFrame}\n currentFrame={frame}\n fps={fps}\n />\n );\n })}\n\n {/* Cursor */}\n <Cursor\n x={pos.x}\n y={pos.y}\n size={cursorSize}\n color={cursorColor}\n currentFrame={frame}\n fps={fps}\n clickFrames={timings\n .map((t, i) => (waypoints[i + 1].click ? t.endFrame : -1))\n .filter((f) => f >= 0)}\n />\n\n {/* Cursor active marker just for context — small dot at active waypoint */}\n <div\n style={{\n position: \"absolute\",\n width: 6,\n height: 6,\n left: waypoints[activeWaypointIndex].x - 3,\n top: waypoints[activeWaypointIndex].y - 3,\n borderRadius: \"50%\",\n background: \"rgba(255,255,255,0.04)\",\n pointerEvents: \"none\",\n }}\n />\n </div>\n );\n}\n\nfunction Cursor({\n x,\n y,\n size,\n color,\n currentFrame,\n fps,\n clickFrames,\n}: {\n x: number;\n y: number;\n size: number;\n color: string;\n currentFrame: number;\n fps: number;\n clickFrames: number[];\n}) {\n // Find nearest click moment within ±4 frames; press scale if so.\n let scale = 1;\n for (const cf of clickFrames) {\n const delta = currentFrame - cf;\n if (delta >= 0 && delta <= 4) {\n // 4-frame hard press: 1 → 0.85 → 1\n const press = spring({\n frame: delta,\n fps,\n config: { damping: 22, stiffness: 320, mass: 0.5 },\n });\n scale = interpolate(press, [0, 1], [0.85, 1]);\n break;\n }\n }\n\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n style={{\n position: \"absolute\",\n left: x,\n top: y,\n transform: `scale(${scale})`,\n transformOrigin: \"0 0\",\n zIndex: 9999,\n filter: \"drop-shadow(0 4px 12px rgba(0,0,0,0.6))\",\n pointerEvents: \"none\",\n }}\n >\n <path\n d=\"M3 2 L3 18 L7 14 L10 21 L13 20 L10 13 L17 13 Z\"\n fill={color}\n stroke=\"#0a0a0a\"\n strokeWidth=\"1.2\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nfunction ClickTarget({\n x,\n y,\n label,\n arrivalFrame,\n currentFrame,\n fps,\n}: {\n x: number;\n y: number;\n label?: string;\n arrivalFrame: number;\n currentFrame: number;\n fps: number;\n}) {\n // Synced press: when the cursor scales to 0.85, the target dips to 0.98.\n const delta = currentFrame - arrivalFrame;\n let pressScale = 1;\n if (delta >= 0 && delta <= 6) {\n const t = spring({\n frame: delta,\n fps,\n config: { damping: 18, stiffness: 280 },\n });\n pressScale = interpolate(t, [0, 1], [0.98, 1]);\n }\n\n return (\n <div\n style={{\n position: \"absolute\",\n left: x - 70,\n top: y - 22,\n transform: `scale(${pressScale})`,\n transformOrigin: \"center\",\n padding: \"10px 18px\",\n borderRadius: 10,\n background: \"#fafafa\",\n color: \"#0a0a0a\",\n fontSize: 14,\n fontWeight: 600,\n boxShadow: \"0 12px 30px rgba(0,0,0,0.4)\",\n pointerEvents: \"none\",\n }}\n >\n {label ?? \"Click\"}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/cursor-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/data-flow-pipes.json b/public/r/data-flow-pipes.json
new file mode 100644
index 00000000..7c85f98c
--- /dev/null
+++ b/public/r/data-flow-pipes.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "data-flow-pipes",
+ "title": "Data Flow Pipes",
+ "description": "Glowing data packets travel along SVG bezier pipes between system nodes, leaving fading trails.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/data-flow-pipes/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame } from \"remotion\";\n\nexport interface DataFlowNode {\n id: string;\n x: number;\n y: number;\n label?: string;\n}\n\nexport interface DataFlowEdge {\n from: string;\n to: string;\n /** Frame when the pulse on this edge starts. */\n startFrame?: number;\n}\n\nexport interface DataFlowPipesProps {\n nodes?: DataFlowNode[];\n edges?: DataFlowEdge[];\n pipeColor?: string;\n pulseColor?: string;\n pulseLength?: number;\n pulseDuration?: number;\n background?: string;\n nodeColor?: string;\n textColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst DEFAULT_NODES: DataFlowNode[] = [\n { id: \"client\", x: 140, y: 360, label: \"Client\" },\n { id: \"api\", x: 460, y: 200, label: \"API\" },\n { id: \"queue\", x: 460, y: 520, label: \"Queue\" },\n { id: \"db\", x: 820, y: 360, label: \"Database\" },\n { id: \"cdn\", x: 1140, y: 200, label: \"CDN\" },\n { id: \"log\", x: 1140, y: 520, label: \"Logs\" },\n];\n\nconst DEFAULT_EDGES: DataFlowEdge[] = [\n { from: \"client\", to: \"api\", startFrame: 0 },\n { from: \"client\", to: \"queue\", startFrame: 12 },\n { from: \"api\", to: \"db\", startFrame: 24 },\n { from: \"queue\", to: \"db\", startFrame: 36 },\n { from: \"db\", to: \"cdn\", startFrame: 48 },\n { from: \"db\", to: \"log\", startFrame: 56 },\n];\n\n/**\n * Build a smooth cubic bezier path string between two points. The control\n * points are pulled toward the midpoint and offset perpendicular for natural\n * routing — straight lines look like circuit traces, curves look like data.\n */\nfunction bezierPath(\n a: { x: number; y: number },\n b: { x: number; y: number },\n) {\n const dx = b.x - a.x;\n const dy = b.y - a.y;\n // Stronger horizontal handles → routes look like API/DB diagrams.\n const handle = Math.max(60, Math.abs(dx) * 0.5);\n const c1x = a.x + handle;\n const c1y = a.y;\n const c2x = b.x - handle;\n const c2y = b.y;\n return `M ${a.x} ${a.y} C ${c1x} ${c1y}, ${c2x} ${c2y}, ${b.x} ${b.y}`;\n}\n\n/**\n * Approximate arc length of a cubic bezier by sampling. Gives a stable number\n * to drive `strokeDashoffset` against — purely numeric, no DOM `getTotalLength`.\n */\nfunction bezierLength(\n a: { x: number; y: number },\n b: { x: number; y: number },\n) {\n const handle = Math.max(60, Math.abs(b.x - a.x) * 0.5);\n const c1 = { x: a.x + handle, y: a.y };\n const c2 = { x: b.x - handle, y: b.y };\n let len = 0;\n let prev = a;\n const steps = 32;\n for (let i = 1; i <= steps; i++) {\n const t = i / steps;\n const u = 1 - t;\n const p = {\n x: u * u * u * a.x + 3 * u * u * t * c1.x + 3 * u * t * t * c2.x + t * t * t * b.x,\n y: u * u * u * a.y + 3 * u * u * t * c1.y + 3 * u * t * t * c2.y + t * t * t * b.y,\n };\n len += Math.hypot(p.x - prev.x, p.y - prev.y);\n prev = p;\n }\n return len;\n}\n\nexport function DataFlowPipes({\n nodes = DEFAULT_NODES,\n edges = DEFAULT_EDGES,\n pipeColor = \"#1f1f23\",\n pulseColor = \"#22d3ee\",\n pulseLength = 60,\n pulseDuration = 36,\n background = \"#050505\",\n nodeColor = \"#0a0a0a\",\n textColor = \"#fafafa\",\n speed = 1,\n className,\n}: DataFlowPipesProps) {\n const frame = useCurrentFrame() * speed;\n const nodeMap = new Map(nodes.map((n) => [n.id, n]));\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n fontFamily: FONT_FAMILY,\n }}\n >\n <svg\n width=\"100%\"\n height=\"100%\"\n viewBox=\"0 0 1280 720\"\n style={{ position: \"absolute\", inset: 0 }}\n >\n {/* Static pipes */}\n {edges.map((edge, i) => {\n const a = nodeMap.get(edge.from);\n const b = nodeMap.get(edge.to);\n if (!a || !b) return null;\n const path = bezierPath(a, b);\n return (\n <path\n key={`pipe-${i}`}\n d={path}\n fill=\"none\"\n stroke={pipeColor}\n strokeWidth={3}\n strokeLinecap=\"round\"\n />\n );\n })}\n\n {/* Pulses with trailing ghosts */}\n {edges.map((edge, i) => {\n const a = nodeMap.get(edge.from);\n const b = nodeMap.get(edge.to);\n if (!a || !b) return null;\n const path = bezierPath(a, b);\n const len = bezierLength(a, b);\n const startFrame = edge.startFrame ?? 0;\n const localFrame = frame - startFrame;\n\n // Pulse offset: starts above the path (out of view), travels down\n // until the dash sits past the end. We use a wide gap (9999) so the\n // dash pattern shows exactly one bright segment.\n const offset = interpolate(\n localFrame,\n [0, pulseDuration],\n [len + pulseLength, -pulseLength],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n // Hide pulse before its start window.\n if (localFrame < 0 || localFrame > pulseDuration + 6) {\n return null;\n }\n\n return (\n <g key={`pulse-${i}`}>\n {/* Trail copies — fading and offset back along the path. */}\n {[0.15, 0.3, 0.55].map((alpha, idx) => (\n <path\n key={`trail-${idx}`}\n d={path}\n fill=\"none\"\n stroke={pulseColor}\n strokeWidth={3}\n strokeLinecap=\"round\"\n strokeDasharray={`${pulseLength} 9999`}\n strokeDashoffset={offset + (idx + 1) * 8}\n opacity={alpha}\n />\n ))}\n {/* Bright head */}\n <path\n d={path}\n fill=\"none\"\n stroke={pulseColor}\n strokeWidth={3.5}\n strokeLinecap=\"round\"\n strokeDasharray={`${pulseLength} 9999`}\n strokeDashoffset={offset}\n style={{\n filter: `drop-shadow(0 0 8px ${pulseColor})`,\n }}\n />\n </g>\n );\n })}\n </svg>\n\n {/* Nodes */}\n {nodes.map((node) => (\n <div\n key={node.id}\n style={{\n position: \"absolute\",\n left: node.x - 60,\n top: node.y - 24,\n width: 120,\n height: 48,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: nodeColor,\n color: textColor,\n border: \"1px solid rgba(255,255,255,0.08)\",\n borderRadius: 10,\n fontSize: 14,\n fontWeight: 600,\n letterSpacing: \"-0.01em\",\n boxShadow: \"0 12px 30px rgba(0,0,0,0.4)\",\n }}\n >\n {node.label ?? node.id}\n </div>\n ))}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/data-flow-pipes.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/device-mockup-zoom.json b/public/r/device-mockup-zoom.json
new file mode 100644
index 00000000..46af7fa1
--- /dev/null
+++ b/public/r/device-mockup-zoom.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "device-mockup-zoom",
+ "title": "Device Mockup Zoom",
+ "description": "Pull back from a UI to reveal it inside a device frame.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/device-mockup-zoom/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface DeviceMockupZoomProps {\n children?: ReactNode;\n device?: \"laptop\" | \"phone\";\n frameColor?: string;\n screenColor?: string;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultScreen() {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: \"linear-gradient(135deg, #0ea5e9 0%, #9333ea 100%)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 32,\n fontWeight: 700,\n letterSpacing: \"-0.03em\",\n }}\n >\n Your UI\n </div>\n );\n}\n\nexport function DeviceMockupZoom({\n children,\n device = \"laptop\",\n frameColor = \"#1f1f1f\",\n screenColor = \"#0a0a0a\",\n background = \"#fafafa\",\n speed = 1,\n className,\n}: DeviceMockupZoomProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const scale = interpolate(frame, [0, durationInFrames], [2, 1], {\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.22, 1, 0.36, 1),\n });\n\n const screen = children ?? <DefaultScreen />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n transform: `scale(${scale})`,\n transformOrigin: \"center center\",\n willChange: \"transform\",\n }}\n >\n {device === \"laptop\" ? (\n <div style={{ position: \"relative\" }}>\n {/* Screen body */}\n <div\n style={{\n width: 720,\n height: 440,\n background: frameColor,\n borderRadius: 16,\n padding: 16,\n boxShadow: \"0 30px 80px rgba(0,0,0,0.25)\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n background: screenColor,\n borderRadius: 6,\n overflow: \"hidden\",\n }}\n >\n {screen}\n </div>\n </div>\n {/* Base */}\n <div\n style={{\n width: 820,\n height: 18,\n background: frameColor,\n borderBottomLeftRadius: 14,\n borderBottomRightRadius: 14,\n marginLeft: -50,\n marginTop: -2,\n boxShadow: \"0 10px 24px rgba(0,0,0,0.18)\",\n }}\n />\n <div\n style={{\n width: 120,\n height: 6,\n background: \"#0a0a0a\",\n marginLeft: \"auto\",\n marginRight: \"auto\",\n borderBottomLeftRadius: 8,\n borderBottomRightRadius: 8,\n marginTop: -1,\n }}\n />\n </div>\n ) : (\n <div\n style={{\n width: 280,\n height: 560,\n background: frameColor,\n borderRadius: 44,\n padding: 14,\n boxShadow: \"0 30px 80px rgba(0,0,0,0.25)\",\n position: \"relative\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n background: screenColor,\n borderRadius: 32,\n overflow: \"hidden\",\n }}\n >\n {screen}\n </div>\n <div\n style={{\n position: \"absolute\",\n top: 22,\n left: \"50%\",\n transform: \"translateX(-50%)\",\n width: 90,\n height: 22,\n background: \"#0a0a0a\",\n borderRadius: 14,\n }}\n />\n </div>\n )}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/device-mockup-zoom.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/directional-wipe.json b/public/r/directional-wipe.json
new file mode 100644
index 00000000..2befd1ff
--- /dev/null
+++ b/public/r/directional-wipe.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "directional-wipe",
+ "title": "Directional Wipe",
+ "description": "Slide one scene in while pushing the other out.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/directional-wipe/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface DirectionalWipeProps {\n from?: ReactNode;\n to?: ReactNode;\n direction?: \"left\" | \"right\" | \"up\" | \"down\";\n transitionStart?: number;\n transitionDuration?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultPanel({ label, color }: { label: string; color: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: color,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.05em\",\n }}\n >\n {label}\n </div>\n );\n}\n\nexport function DirectionalWipe({\n from,\n to,\n direction = \"left\",\n transitionStart,\n transitionDuration = 20,\n speed = 1,\n className,\n}: DirectionalWipeProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const start =\n typeof transitionStart === \"number\"\n ? transitionStart\n : Math.floor(durationInFrames * 0.4);\n\n const progress = interpolate(\n frame,\n [start, start + transitionDuration],\n [0, 1],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.65, 0, 0.35, 1),\n },\n );\n\n const axis: \"x\" | \"y\" =\n direction === \"left\" || direction === \"right\" ? \"x\" : \"y\";\n const sign = direction === \"left\" || direction === \"up\" ? -1 : 1;\n\n const fromOffset = progress * 100 * sign;\n const toOffset = (1 - progress) * 100 * -sign;\n\n const transformFor = (offset: number) =>\n axis === \"x\"\n ? `translateX(${offset}%)`\n : `translateY(${offset}%)`;\n\n const fromContent = from ?? <DefaultPanel label=\"Scene A\" color=\"#0ea5e9\" />;\n const toContent = to ?? <DefaultPanel label=\"Scene B\" color=\"#9333ea\" />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background: \"black\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: transformFor(fromOffset),\n willChange: \"transform\",\n }}\n >\n {fromContent}\n </div>\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n transform: transformFor(toOffset),\n willChange: \"transform\",\n }}\n >\n {toContent}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/directional-wipe.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/drag-and-drop-flow.json b/public/r/drag-and-drop-flow.json
new file mode 100644
index 00000000..2113caee
--- /dev/null
+++ b/public/r/drag-and-drop-flow.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "drag-and-drop-flow",
+ "title": "Drag and Drop Flow",
+ "description": "Simulated file drag into a dropzone followed by upload progress.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/drag-and-drop-flow/index.tsx",
+ "content": "\"use client\";\n\nimport {\n Easing,\n interpolate,\n interpolateColors,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface DragAndDropFlowProps {\n accent?: string;\n dropzoneLabel?: string;\n fileName?: string;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nfunction FileIcon({ color }: { color: string }) {\n return (\n <svg width=\"44\" height=\"56\" viewBox=\"0 0 44 56\" fill=\"none\">\n <path\n d=\"M6 4a4 4 0 014-4h18l12 12v40a4 4 0 01-4 4H10a4 4 0 01-4-4V4z\"\n fill=\"white\"\n stroke={color}\n strokeWidth=\"2\"\n />\n <path d=\"M28 0v8a4 4 0 004 4h8\" stroke={color} strokeWidth=\"2\" fill=\"none\" />\n <rect x=\"12\" y=\"22\" width=\"20\" height=\"2\" rx=\"1\" fill={color} opacity=\"0.5\" />\n <rect x=\"12\" y=\"28\" width=\"16\" height=\"2\" rx=\"1\" fill={color} opacity=\"0.5\" />\n <rect x=\"12\" y=\"34\" width=\"18\" height=\"2\" rx=\"1\" fill={color} opacity=\"0.5\" />\n </svg>\n );\n}\n\nexport function DragAndDropFlow({\n accent = \"#0ea5e9\",\n dropzoneLabel = \"Drop file to upload\",\n fileName = \"design.fig\",\n background = \"#fafafa\",\n speed = 1,\n className,\n}: DragAndDropFlowProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n // Phase split\n const dragEnd = Math.round(durationInFrames * 0.45);\n const highlightEnd = Math.round(durationInFrames * 0.55);\n const progressEnd = durationInFrames;\n\n // Phase 1: file moves from start to center of dropzone\n const dragProgress = interpolate(frame, [0, dragEnd], [0, 1], {\n extrapolateRight: \"clamp\",\n easing: Easing.out(Easing.cubic),\n });\n\n const startX = -220;\n const startY = -120;\n const fileX = interpolate(dragProgress, [0, 1], [startX, 0]);\n const fileY = interpolate(dragProgress, [0, 1], [startY, 0]);\n\n // Phase 2: dropzone border highlights as file approaches\n const borderColor = interpolateColors(\n frame,\n [dragEnd - 10, highlightEnd],\n [\"#d4d4d8\", accent],\n );\n\n // Phase 3: file fades, progress bar grows\n const fileOpacity = interpolate(\n frame,\n [highlightEnd - 4, highlightEnd + 8],\n [1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const progressOpacity = interpolate(\n frame,\n [highlightEnd, highlightEnd + 6],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const progress = interpolate(\n frame,\n [highlightEnd, progressEnd - 4],\n [0, 100],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const dropzoneWidth = 420;\n const dropzoneHeight = 260;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: dropzoneWidth,\n height: dropzoneHeight,\n borderRadius: 18,\n border: `2.5px dashed ${borderColor}`,\n background: \"white\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexDirection: \"column\",\n gap: 14,\n color: \"#71717a\",\n fontSize: 16,\n fontWeight: 500,\n transition: \"none\",\n }}\n >\n <svg width=\"36\" height=\"36\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12\"\n stroke={borderColor}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n <span>{dropzoneLabel}</span>\n\n {/* Progress bar (after drop) */}\n <div\n style={{\n position: \"absolute\",\n left: 32,\n right: 32,\n bottom: 32,\n opacity: progressOpacity,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 8,\n }}\n >\n <div\n style={{\n display: \"flex\",\n justifyContent: \"space-between\",\n fontSize: 13,\n color: \"#52525b\",\n }}\n >\n <span>{fileName}</span>\n <span>{Math.round(progress)}%</span>\n </div>\n <div\n style={{\n height: 6,\n borderRadius: 999,\n background: \"#e4e4e7\",\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n width: `${progress}%`,\n height: \"100%\",\n background: accent,\n borderRadius: 999,\n }}\n />\n </div>\n </div>\n </div>\n\n {/* Animated file icon that moves into the dropzone */}\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n marginLeft: -22,\n marginTop: -28,\n transform: `translate(${fileX}px, ${fileY}px)`,\n opacity: fileOpacity,\n filter: \"drop-shadow(0 8px 16px rgba(0,0,0,0.15))\",\n }}\n >\n <FileIcon color={accent} />\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/drag-and-drop-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/dynamic-grid.json b/public/r/dynamic-grid.json
new file mode 100644
index 00000000..bdeb4a25
--- /dev/null
+++ b/public/r/dynamic-grid.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "dynamic-grid",
+ "title": "Dynamic Grid",
+ "description": "Subtle moving grid background with configurable cell size and direction.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/dynamic-grid/index.tsx",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\n\nexport interface DynamicGridProps {\n cellSize?: number;\n lineColor?: string;\n background?: string;\n speed?: number;\n direction?: \"diagonal\" | \"horizontal\" | \"vertical\";\n className?: string;\n}\n\nexport function DynamicGrid({\n cellSize = 40,\n lineColor = \"#27272a\",\n background = \"#0a0a0a\",\n speed = 0.5,\n direction = \"diagonal\",\n className,\n}: DynamicGridProps) {\n const frame = useCurrentFrame();\n\n const offset = (frame * speed) % cellSize;\n\n let tx = 0;\n let ty = 0;\n if (direction === \"horizontal\") {\n tx = offset;\n } else if (direction === \"vertical\") {\n ty = offset;\n } else {\n tx = offset;\n ty = offset;\n }\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n inset: `-${cellSize}px`,\n backgroundImage: `\n linear-gradient(to right, ${lineColor} 1px, transparent 1px),\n linear-gradient(to bottom, ${lineColor} 1px, transparent 1px)\n `,\n backgroundSize: `${cellSize}px ${cellSize}px`,\n transform: `translate(${tx}px, ${ty}px)`,\n willChange: \"transform\",\n }}\n />\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/dynamic-grid.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/glass-code-block.json b/public/r/glass-code-block.json
new file mode 100644
index 00000000..afcf7bb6
--- /dev/null
+++ b/public/r/glass-code-block.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "glass-code-block",
+ "title": "Glass Code Block",
+ "description": "A premium frosted-glass code editor window with a regex tokenizer and line-by-line stagger reveal.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/glass-code-block/index.tsx",
+ "content": "\"use client\";\n\nimport { Sequence, interpolate, useCurrentFrame } from \"remotion\";\n\nexport interface GlassCodeBlockProps {\n code?: string;\n title?: string;\n width?: number;\n height?: number;\n fontSize?: number;\n background?: string;\n glassColor?: string;\n staggerFrames?: number;\n showTrafficLights?: boolean;\n speed?: number;\n className?: string;\n}\n\nconst FONT_MONO =\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace\";\n\nconst DEFAULT_CODE = `import { motion } from \"remotion\";\n\n// Generate a hero scene\nexport function Hero() {\n const frame = useCurrentFrame();\n const opacity = frame / 30;\n return <h1 style={{ opacity }}>Hello</h1>;\n}`;\n\n// Minimal regex tokenizer. NOT a real syntax highlighter — just enough to\n// give the eye color anchors. Order matters: comments → strings → keywords.\nconst KEYWORDS = new Set([\n \"import\",\n \"from\",\n \"export\",\n \"function\",\n \"const\",\n \"let\",\n \"var\",\n \"return\",\n \"if\",\n \"else\",\n \"for\",\n \"while\",\n \"new\",\n \"class\",\n \"extends\",\n \"default\",\n \"true\",\n \"false\",\n \"null\",\n \"undefined\",\n]);\n\ntype Token = { text: string; kind: \"code\" | \"comment\" | \"string\" | \"keyword\" | \"number\" };\n\nfunction tokenizeLine(line: string): Token[] {\n // Whole-line comment.\n const trimmed = line.trimStart();\n if (trimmed.startsWith(\"//\")) {\n return [{ text: line, kind: \"comment\" }];\n }\n\n const tokens: Token[] = [];\n // Split keeping delimiters: words, strings, numbers, everything else.\n const re = /(\"[^\"]*\"|'[^']*'|`[^`]*`|\\b\\d+\\b|\\b[A-Za-z_$][\\w$]*\\b|[^\\w\"']+)/g;\n let match: RegExpExecArray | null;\n while ((match = re.exec(line)) !== null) {\n const t = match[0];\n const first = t[0];\n if (first === '\"' || first === \"'\" || first === \"`\") {\n tokens.push({ text: t, kind: \"string\" });\n } else if (/^\\d+$/.test(t)) {\n tokens.push({ text: t, kind: \"number\" });\n } else if (/^[A-Za-z_$][\\w$]*$/.test(t) && KEYWORDS.has(t)) {\n tokens.push({ text: t, kind: \"keyword\" });\n } else {\n tokens.push({ text: t, kind: \"code\" });\n }\n }\n return tokens;\n}\n\nconst TOKEN_COLORS: Record<Token[\"kind\"], string> = {\n code: \"#e4e4e7\",\n comment: \"#52525b\",\n string: \"#86efac\",\n keyword: \"#c4b5fd\",\n number: \"#fcd34d\",\n};\n\nexport function GlassCodeBlock({\n code = DEFAULT_CODE,\n title = \"hero.tsx\",\n width = 760,\n height = 460,\n fontSize = 16,\n background = \"#0a0a0a\",\n glassColor = \"rgba(10, 10, 10, 0.6)\",\n staggerFrames = 4,\n showTrafficLights = true,\n speed = 1,\n className,\n}: GlassCodeBlockProps) {\n const lines = code.split(\"\\n\");\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {/* Animated background hint behind the glass so the blur has something\n to chew on. Pure CSS — no extra deps. */}\n <BackdropAura />\n\n {/* 1px gradient ring acting as a microborder */}\n <div\n style={{\n position: \"relative\",\n padding: 1,\n borderRadius: 16,\n background:\n \"linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%)\",\n width,\n height,\n boxShadow: \"0 50px 120px rgba(0,0,0,0.55)\",\n }}\n >\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: 15,\n background: glassColor,\n backdropFilter: \"blur(16px)\",\n WebkitBackdropFilter: \"blur(16px)\",\n boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.06)\",\n display: \"flex\",\n flexDirection: \"column\",\n overflow: \"hidden\",\n fontFamily: FONT_MONO,\n }}\n >\n {/* Chrome */}\n <div\n style={{\n height: 40,\n display: \"flex\",\n alignItems: \"center\",\n gap: 8,\n padding: \"0 16px\",\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n {showTrafficLights && (\n <>\n <Light color=\"#ff5f57\" />\n <Light color=\"#febc2e\" />\n <Light color=\"#28c840\" />\n </>\n )}\n <div\n style={{\n flex: 1,\n textAlign: \"center\",\n color: \"#a1a1aa\",\n fontSize: 12,\n letterSpacing: \"0.02em\",\n }}\n >\n {title}\n </div>\n </div>\n\n {/* Code body */}\n <div\n style={{\n flex: 1,\n padding: \"20px 24px\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: 4,\n fontSize,\n lineHeight: 1.55,\n }}\n >\n {lines.map((line, i) => (\n <Sequence\n key={i}\n from={Math.round((i * staggerFrames) / speed)}\n layout=\"none\"\n >\n <CodeLine line={line} index={i} fontSize={fontSize} />\n </Sequence>\n ))}\n </div>\n </div>\n </div>\n </div>\n );\n}\n\nfunction Light({ color }: { color: string }) {\n return (\n <div\n style={{\n width: 12,\n height: 12,\n borderRadius: \"50%\",\n background: color,\n opacity: 0.6,\n }}\n />\n );\n}\n\nfunction CodeLine({\n line,\n index,\n fontSize,\n}: {\n line: string;\n index: number;\n fontSize: number;\n}) {\n const frame = useCurrentFrame();\n const opacity = interpolate(frame, [0, 8], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const ty = interpolate(frame, [0, 8], [4, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const tokens = tokenizeLine(line);\n // Render an empty line as a half-height spacer so blank lines still take\n // visual space without collapsing the gap.\n if (tokens.length === 0) {\n return <div style={{ height: fontSize * 0.8, opacity }} />;\n }\n return (\n <div\n style={{\n opacity,\n transform: `translateY(${ty}px)`,\n whiteSpace: \"pre\",\n display: \"flex\",\n gap: 0,\n }}\n >\n <span style={{ width: 28, color: \"#3f3f46\", userSelect: \"none\" }}>\n {String(index + 1).padStart(2, \" \")}\n </span>\n <span>\n {tokens.map((t, i) => (\n <span key={i} style={{ color: TOKEN_COLORS[t.kind] }}>\n {t.text}\n </span>\n ))}\n </span>\n </div>\n );\n}\n\nfunction BackdropAura() {\n // Slow, low-amplitude blob behind the glass so the backdrop blur has\n // perceptible content to refract.\n const frame = useCurrentFrame();\n const t = frame / 60;\n const x = 50 + Math.sin(t) * 20;\n const y = 50 + Math.cos(t * 0.7) * 15;\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n pointerEvents: \"none\",\n background: `radial-gradient(circle at ${x}% ${y}%, rgba(56,189,248,0.22), transparent 50%), radial-gradient(circle at ${100 - x}% ${100 - y}%, rgba(168,85,247,0.18), transparent 55%)`,\n }}\n />\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/glass-code-block.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/infinite-marquee.json b/public/r/infinite-marquee.json
new file mode 100644
index 00000000..da3d16b3
--- /dev/null
+++ b/public/r/infinite-marquee.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "infinite-marquee",
+ "title": "Infinite Marquee",
+ "description": "Seamlessly looping horizontal text strip with optional stroke style.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/infinite-marquee/index.tsx",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\n\nexport interface InfiniteMarqueeProps {\n text?: string;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n pixelsPerFrame?: number;\n stroke?: boolean;\n strokeColor?: string;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nexport function InfiniteMarquee({\n text = \"ship · build · animate · \",\n fontSize = 120,\n color = \"#171717\",\n fontWeight = 900,\n pixelsPerFrame = 4,\n stroke = false,\n strokeColor = \"#171717\",\n background = \"#fafafa\",\n speed = 1,\n className,\n}: InfiniteMarqueeProps) {\n const frame = useCurrentFrame() * speed;\n\n const approxWidth = text.length * fontSize * 0.55;\n const offset = -((frame * pixelsPerFrame) % approxWidth);\n\n const spanStyle: React.CSSProperties = {\n fontSize,\n fontWeight,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n color: stroke ? \"transparent\" : color,\n WebkitTextStroke: stroke ? `2px ${strokeColor}` : undefined,\n paddingRight: \"0.4em\",\n letterSpacing: \"-0.03em\",\n };\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background,\n }}\n >\n <div\n className={className}\n style={{\n display: \"flex\",\n whiteSpace: \"nowrap\",\n transform: `translateX(${offset}px)`,\n }}\n >\n <span style={spanStyle}>{text}</span>\n <span style={spanStyle}>{text}</span>\n <span style={spanStyle}>{text}</span>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/infinite-marquee.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/inline-highlight.json b/public/r/inline-highlight.json
new file mode 100644
index 00000000..0f8f381a
--- /dev/null
+++ b/public/r/inline-highlight.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "inline-highlight",
+ "title": "Inline Highlight",
+ "description": "Animates one word inside a sentence from a base color to a brand color.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/inline-highlight/index.tsx",
+ "content": "\"use client\";\n\nimport {\n interpolate,\n interpolateColors,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface InlineHighlightProps {\n before: string;\n highlight: string;\n after?: string;\n baseColor?: string;\n highlightColor?: string;\n fontSize?: number;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function InlineHighlight({\n before,\n highlight,\n after = \"\",\n baseColor = \"#171717\",\n highlightColor = \"#ff5e3a\",\n fontSize = 48,\n fontWeight = 600,\n speed = 1,\n className,\n}: InlineHighlightProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const progress = interpolate(\n frame,\n [durationInFrames * 0.2, durationInFrames * 0.7],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const color = interpolateColors(progress, [0, 1], [baseColor, highlightColor]);\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color: baseColor,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {before}\n <span style={{ color }}>{highlight}</span>\n {after}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/inline-highlight.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/marker-highlight.json b/public/r/marker-highlight.json
new file mode 100644
index 00000000..b0a7e9ed
--- /dev/null
+++ b/public/r/marker-highlight.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "marker-highlight",
+ "title": "Marker Highlight",
+ "description": "Colored marker block draws behind a phrase as the text color shifts.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/marker-highlight/index.tsx",
+ "content": "\"use client\";\n\nimport {\n interpolate,\n interpolateColors,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface MarkerHighlightProps {\n before?: string;\n highlight: string;\n after?: string;\n markerColor?: string;\n baseColor?: string;\n highlightedTextColor?: string;\n fontSize?: number;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function MarkerHighlight({\n before = \"\",\n highlight,\n after = \"\",\n markerColor = \"#facc15\",\n baseColor = \"#171717\",\n highlightedTextColor = \"#171717\",\n fontSize = 72,\n fontWeight = 600,\n speed = 1,\n className,\n}: MarkerHighlightProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const markerScale = spring({\n frame: frame - 15,\n fps,\n config: { damping: 14 },\n });\n\n const textColor = interpolateColors(\n interpolate(markerScale, [0.5, 0.8], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n }),\n [0, 1],\n [baseColor, highlightedTextColor],\n );\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color: baseColor,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {before}\n <span style={{ position: \"relative\", display: \"inline-block\" }}>\n <span\n aria-hidden\n style={{\n position: \"absolute\",\n inset: \"0 -0.1em\",\n background: markerColor,\n transformOrigin: \"left center\",\n transform: `scaleX(${markerScale})`,\n zIndex: 0,\n }}\n />\n <span style={{ position: \"relative\", zIndex: 1, color: textColor }}>\n {highlight}\n </span>\n </span>\n {after}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/marker-highlight.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/masked-slide-reveal.json b/public/r/masked-slide-reveal.json
new file mode 100644
index 00000000..38620d4c
--- /dev/null
+++ b/public/r/masked-slide-reveal.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "masked-slide-reveal",
+ "title": "Masked Slide Reveal",
+ "description": "Words slide up out of an invisible horizontal mask, one after another.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/masked-slide-reveal/index.tsx",
+ "content": "\"use client\";\n\nimport { spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface MaskedSlideRevealProps {\n text: string;\n staggerDelay?: number;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function MaskedSlideReveal({\n text,\n staggerDelay = 3,\n fontSize = 72,\n color = \"#171717\",\n fontWeight = 700,\n speed = 1,\n className,\n}: MaskedSlideRevealProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const words = text.split(\" \");\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {words.map((word, i) => {\n const t = spring({\n frame: frame - i * staggerDelay,\n fps,\n config: { damping: 14 },\n });\n return (\n <span\n key={i}\n style={{\n display: \"inline-block\",\n overflow: \"hidden\",\n verticalAlign: \"bottom\",\n lineHeight: 1,\n marginRight: \"0.25em\",\n }}\n >\n <span\n style={{\n display: \"inline-block\",\n transform: `translateY(${(1 - t) * 100}%)`,\n }}\n >\n {word}\n </span>\n </span>\n );\n })}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/masked-slide-reveal.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/matrix-decode.json b/public/r/matrix-decode.json
new file mode 100644
index 00000000..3c4f39ca
--- /dev/null
+++ b/public/r/matrix-decode.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "matrix-decode",
+ "title": "Matrix Decode",
+ "description": "Random scramble resolves left-to-right into the target text.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/matrix-decode/index.tsx",
+ "content": "\"use client\";\n\nimport { random, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface MatrixDecodeProps {\n text: string;\n charset?: string;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n revealDuration?: number;\n speed?: number;\n className?: string;\n}\n\nexport function MatrixDecode({\n text,\n charset = \"!@#$%^&*()_+-=<>?/\\\\|\",\n fontSize = 72,\n color = \"#22c55e\",\n fontWeight = 600,\n revealDuration = 60,\n speed = 1,\n className,\n}: MatrixDecodeProps) {\n const frame = useCurrentFrame() * speed;\n // useVideoConfig kept for consistency with sibling primitives\n useVideoConfig();\n\n let output = \"\";\n for (let i = 0; i < text.length; i++) {\n const revealFrame = (i / Math.max(text.length, 1)) * revealDuration;\n if (text[i] === \" \") {\n output += \" \";\n } else if (frame >= revealFrame) {\n output += text[i];\n } else {\n const r = random(`${i}-${Math.floor(frame / 2)}`);\n const ch = charset[Math.floor(r * charset.length)];\n output += ch;\n }\n }\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"0.05em\",\n whiteSpace: \"pre\",\n fontFamily:\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace\",\n }}\n >\n {output}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/matrix-decode.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/mesh-gradient-bg.json b/public/r/mesh-gradient-bg.json
new file mode 100644
index 00000000..f6930f2f
--- /dev/null
+++ b/public/r/mesh-gradient-bg.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "mesh-gradient-bg",
+ "title": "Mesh Gradient Background",
+ "description": "Living gradient with amorphous color blobs slowly drifting across the frame.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/mesh-gradient-bg/index.tsx",
+ "content": "\"use client\";\n\nimport { useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface MeshGradientBgProps {\n colors?: string[];\n speed?: number;\n background?: string;\n blur?: number;\n className?: string;\n}\n\nexport function MeshGradientBg({\n colors = [\"#ff0080\", \"#7928ca\", \"#00d4ff\", \"#ffb800\"],\n speed = 1,\n background = \"#0a0a0a\",\n blur = 80,\n className,\n}: MeshGradientBgProps) {\n const frame = useCurrentFrame();\n const { fps } = useVideoConfig();\n\n const isDark = isColorDark(background);\n const blendMode: \"screen\" | \"multiply\" = isDark ? \"screen\" : \"multiply\";\n\n // One full cycle every (2 / speed) seconds — fps-independent.\n const t = (frame / fps) * speed;\n\n const blobs = colors.map((color, i) => {\n const phase = i * 1.7;\n const sx = Math.sin(t * Math.PI + phase);\n const cy = Math.cos(t * Math.PI * 1.3 + phase);\n const sx2 = Math.sin(t * Math.PI * 0.7 * (2 / 3) + phase * 0.5);\n\n const left = 50 + sx * 25;\n const top = 50 + cy * 25;\n const scale = 1 + sx2 * 0.2;\n\n return { color, left, top, scale, key: `blob-${i}` };\n });\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n overflow: \"hidden\",\n }}\n >\n {blobs.map((b) => (\n <div\n key={b.key}\n style={{\n position: \"absolute\",\n left: `${b.left}%`,\n top: `${b.top}%`,\n width: \"55%\",\n height: \"55%\",\n borderRadius: \"50%\",\n background: `radial-gradient(circle, ${b.color} 0%, ${b.color}00 70%)`,\n filter: `blur(${blur}px)`,\n mixBlendMode: blendMode,\n transform: `translate(-50%, -50%) scale(${b.scale})`,\n willChange: \"transform\",\n }}\n />\n ))}\n </div>\n );\n}\n\nfunction isColorDark(hex: string): boolean {\n const m = hex.replace(\"#\", \"\");\n if (m.length !== 6 && m.length !== 3) return true;\n const full =\n m.length === 3\n ? m\n .split(\"\")\n .map((c) => c + c)\n .join(\"\")\n : m;\n const r = parseInt(full.slice(0, 2), 16);\n const g = parseInt(full.slice(2, 4), 16);\n const b = parseInt(full.slice(4, 6), 16);\n const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;\n return luminance < 0.5;\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/mesh-gradient-bg.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/morphing-modal.json b/public/r/morphing-modal.json
new file mode 100644
index 00000000..96a4943a
--- /dev/null
+++ b/public/r/morphing-modal.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "morphing-modal",
+ "title": "Morphing Modal",
+ "description": "A bento card lifts off the grid and blooms into a full-screen modal driven by a single heavy spring.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/morphing-modal/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface MorphingModalRect {\n top: number;\n left: number;\n width: number;\n height: number;\n}\n\nexport interface MorphingModalProps {\n from?: MorphingModalRect;\n to?: MorphingModalRect;\n borderRadiusFrom?: number;\n borderRadiusTo?: number;\n morphAt?: number;\n background?: string;\n cardColor?: string;\n textColor?: string;\n mutedColor?: string;\n sourceTitle?: string;\n sourceBody?: string;\n modalTitle?: string;\n modalBody?: string;\n source?: ReactNode;\n modal?: ReactNode;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst VIEWPORT_W = 1280;\nconst VIEWPORT_H = 720;\n\nconst DEFAULT_FROM: MorphingModalRect = {\n left: 460,\n top: 260,\n width: 360,\n height: 200,\n};\n\nconst DEFAULT_TO: MorphingModalRect = {\n left: 80,\n top: 60,\n width: VIEWPORT_W - 160,\n height: VIEWPORT_H - 120,\n};\n\nexport function MorphingModal({\n from = DEFAULT_FROM,\n to = DEFAULT_TO,\n borderRadiusFrom = 24,\n borderRadiusTo = 0,\n morphAt = 30,\n background = \"#050505\",\n cardColor = \"#0a0a0a\",\n textColor = \"#fafafa\",\n mutedColor = \"#71717a\",\n sourceTitle = \"Compose video\",\n sourceBody = \"Click to start a new project\",\n modalTitle = \"New project\",\n modalBody = \"Pick a template, drop your assets, and ship a 30s video in under five minutes. Everything renders deterministically — no flicker, no flaky frames.\",\n source,\n modal,\n speed = 1,\n className,\n}: MorphingModalProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n // ONE heavy spring drives all 5 morph properties at once. High mass +\n // low stiffness so the modal \"blooms\" instead of jumping.\n const morph = spring({\n frame: frame - morphAt,\n fps,\n config: { mass: 1.5, damping: 22, stiffness: 110 },\n });\n\n const left = interpolate(morph, [0, 1], [from.left, to.left]);\n const top = interpolate(morph, [0, 1], [from.top, to.top]);\n const width = interpolate(morph, [0, 1], [from.width, to.width]);\n const height = interpolate(morph, [0, 1], [from.height, to.height]);\n const radius = interpolate(morph, [0, 1], [borderRadiusFrom, borderRadiusTo]);\n\n // Backdrop fades in alongside the morph spring.\n const backdropAlpha = interpolate(morph, [0, 1], [0, 0.8]);\n\n // Source content vanishes in the FIRST third of the morph.\n const sourceOpacity = interpolate(morph, [0, 0.33], [1, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n // Modal content arrives in the LAST third with a translateY offset.\n const modalOpacity = interpolate(morph, [0.66, 1], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const modalTy = interpolate(morph, [0.66, 1], [20, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n fontFamily: FONT_FAMILY,\n overflow: \"hidden\",\n }}\n >\n {/* Backdrop dim layer */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `rgba(0, 0, 0, ${backdropAlpha})`,\n pointerEvents: \"none\",\n }}\n />\n\n {/* Suggestion of a bento grid behind so the morph reads as\n \"card lifting off\". Very low contrast. */}\n <BackgroundGrid />\n\n {/* The morphing card */}\n <div\n style={{\n position: \"absolute\",\n left,\n top,\n width,\n height,\n background: cardColor,\n borderRadius: radius,\n boxShadow:\n \"0 60px 140px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06)\",\n overflow: \"hidden\",\n }}\n >\n {/* Source layer (fades out first) */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n padding: 28,\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-end\",\n gap: 6,\n opacity: sourceOpacity,\n }}\n >\n {source ?? (\n <>\n <div\n style={{\n fontSize: 20,\n fontWeight: 700,\n color: textColor,\n letterSpacing: \"-0.01em\",\n }}\n >\n {sourceTitle}\n </div>\n <div style={{ fontSize: 14, color: mutedColor }}>{sourceBody}</div>\n </>\n )}\n </div>\n\n {/* Modal layer (arrives last with translateY) */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n padding: 64,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 24,\n opacity: modalOpacity,\n transform: `translateY(${modalTy}px)`,\n }}\n >\n {modal ?? (\n <>\n <div\n style={{\n fontSize: 56,\n fontWeight: 700,\n color: textColor,\n letterSpacing: \"-0.03em\",\n lineHeight: 1.05,\n }}\n >\n {modalTitle}\n </div>\n <div\n style={{\n fontSize: 20,\n lineHeight: 1.55,\n color: mutedColor,\n maxWidth: 720,\n }}\n >\n {modalBody}\n </div>\n <div\n style={{\n marginTop: 12,\n display: \"inline-flex\",\n alignSelf: \"flex-start\",\n background: textColor,\n color: cardColor,\n padding: \"12px 22px\",\n borderRadius: 12,\n fontSize: 16,\n fontWeight: 600,\n }}\n >\n Get started\n </div>\n </>\n )}\n </div>\n </div>\n </div>\n );\n}\n\nfunction BackgroundGrid() {\n // Decorative bento background — 3x2 cards, very low contrast.\n const cells = [\n { x: 80, y: 60, w: 360, h: 200 },\n { x: 460, y: 60, w: 360, h: 200 },\n { x: 840, y: 60, w: 360, h: 200 },\n { x: 80, y: 460, w: 360, h: 200 },\n { x: 840, y: 460, w: 360, h: 200 },\n ];\n return (\n <>\n {cells.map((c, i) => (\n <div\n key={i}\n style={{\n position: \"absolute\",\n left: c.x,\n top: c.y,\n width: c.w,\n height: c.h,\n background: \"#0a0a0a\",\n borderRadius: 24,\n border: \"1px solid rgba(255,255,255,0.04)\",\n }}\n />\n ))}\n </>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/morphing-modal.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/perspective-marquee.json b/public/r/perspective-marquee.json
new file mode 100644
index 00000000..ae03cf9a
--- /dev/null
+++ b/public/r/perspective-marquee.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "perspective-marquee",
+ "title": "Perspective Marquee",
+ "description": "A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/perspective-marquee/index.tsx",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\n\nexport interface PerspectiveMarqueeProps {\n items?: string[];\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n pixelsPerFrame?: number;\n rotateY?: number;\n rotateX?: number;\n perspective?: number;\n fadeColor?: string;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst DEFAULT_ITEMS = [\n \"Vercel\",\n \"Linear\",\n \"Stripe\",\n \"Figma\",\n \"Notion\",\n \"Raycast\",\n \"Arc\",\n \"Cursor\",\n];\n\nexport function PerspectiveMarquee({\n items = DEFAULT_ITEMS,\n fontSize = 84,\n color = \"#fafafa\",\n fontWeight = 700,\n pixelsPerFrame = 2,\n rotateY = -28,\n rotateX = 8,\n perspective = 1200,\n fadeColor = \"#050505\",\n background = \"#050505\",\n speed = 1,\n className,\n}: PerspectiveMarqueeProps) {\n const frame = useCurrentFrame() * speed;\n\n // Approximate width of one full item set so the modulo wraps cleanly.\n const itemPadding = fontSize * 0.9;\n const approxItemWidth = items.reduce(\n (acc, item) => acc + item.length * fontSize * 0.6 + itemPadding,\n 0,\n );\n\n const offset = -((frame * pixelsPerFrame) % approxItemWidth);\n\n // Render the row 3x so the loop is seamless even when rotated in 3D.\n const rendered = [...items, ...items, ...items];\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n overflow: \"hidden\",\n perspective: `${perspective}px`,\n }}\n >\n <div\n style={{\n width: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n transform: `rotateX(${rotateX}deg) rotateY(${rotateY}deg)`,\n transformStyle: \"preserve-3d\",\n }}\n >\n <div\n style={{\n display: \"flex\",\n whiteSpace: \"nowrap\",\n transform: `translateX(${offset}px)`,\n }}\n >\n {rendered.map((item, i) => {\n // Approximate this item's center X (relative to the marquee row,\n // including the rolling offset). Used to dial in depth-of-field blur\n // and opacity by horizontal position on screen.\n const itemCenter =\n i * (approxItemWidth / items.length) +\n approxItemWidth / items.length / 2 +\n offset;\n // Normalize roughly to [-1, 1] across a 1280px viewport.\n const norm = (itemCenter - 640) / 640;\n const distance = Math.min(1, Math.abs(norm));\n const blurPx = distance * 6;\n const opacity = 1 - distance * 0.4;\n\n return (\n <span\n key={i}\n style={{\n display: \"inline-block\",\n fontFamily: FONT_FAMILY,\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n paddingRight: itemPadding,\n filter: `blur(${blurPx}px)`,\n opacity,\n }}\n >\n {item}\n </span>\n );\n })}\n </div>\n </div>\n\n {/* Vignette to fade marquee edges into background */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n pointerEvents: \"none\",\n background: `linear-gradient(90deg, ${fadeColor} 0%, transparent 18%, transparent 82%, ${fadeColor} 100%)`,\n }}\n />\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n pointerEvents: \"none\",\n background: `linear-gradient(180deg, ${fadeColor} 0%, transparent 25%, transparent 75%, ${fadeColor} 100%)`,\n }}\n />\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/perspective-marquee.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/progress-steps.json b/public/r/progress-steps.json
new file mode 100644
index 00000000..e0e6a107
--- /dev/null
+++ b/public/r/progress-steps.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "progress-steps",
+ "title": "Progress Steps",
+ "description": "Multi-step pipeline with sequentially activating nodes and filling lines.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/progress-steps/index.tsx",
+ "content": "\"use client\";\n\nimport {\n interpolate,\n interpolateColors,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface ProgressStepsProps {\n steps?: Array<{ label: string }>;\n orientation?: \"horizontal\" | \"vertical\";\n activeColor?: string;\n inactiveColor?: string;\n background?: string;\n textColor?: string;\n stepDuration?: number;\n speed?: number;\n className?: string;\n}\n\nexport function ProgressSteps({\n steps = [{ label: \"Connect\" }, { label: \"Process\" }, { label: \"Deploy\" }],\n orientation = \"horizontal\",\n activeColor = \"#22c55e\",\n inactiveColor = \"#27272a\",\n background = \"#0a0a0a\",\n textColor = \"white\",\n stepDuration = 30,\n speed = 1,\n className,\n}: ProgressStepsProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const isHorizontal = orientation === \"horizontal\";\n const trackLength = isHorizontal ? 920 : 520;\n const segmentLength = trackLength / Math.max(steps.length - 1, 1);\n const nodeRadius = 22;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n display: \"flex\",\n flexDirection: isHorizontal ? \"row\" : \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 0,\n }}\n >\n {/* SVG layer for connecting lines */}\n <svg\n style={{\n position: \"absolute\",\n left: isHorizontal ? nodeRadius : \"50%\",\n top: isHorizontal ? \"50%\" : nodeRadius,\n transform: isHorizontal\n ? \"translateY(-50%)\"\n : \"translateX(-50%)\",\n overflow: \"visible\",\n pointerEvents: \"none\",\n }}\n width={isHorizontal ? trackLength : 4}\n height={isHorizontal ? 4 : trackLength}\n >\n {steps.slice(0, -1).map((_, i) => {\n const lineStart = (i + 1) * stepDuration;\n const fillProgress = interpolate(\n frame,\n [lineStart, lineStart + stepDuration],\n [segmentLength, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n return (\n <line\n key={i}\n x1={isHorizontal ? i * segmentLength : 2}\n y1={isHorizontal ? 2 : i * segmentLength}\n x2={isHorizontal ? (i + 1) * segmentLength : 2}\n y2={isHorizontal ? 2 : (i + 1) * segmentLength}\n stroke={activeColor}\n strokeWidth={4}\n strokeLinecap=\"round\"\n strokeDasharray={segmentLength}\n strokeDashoffset={fillProgress}\n />\n );\n })}\n {/* Background track */}\n {steps.slice(0, -1).map((_, i) => (\n <line\n key={`bg-${i}`}\n x1={isHorizontal ? i * segmentLength : 2}\n y1={isHorizontal ? 2 : i * segmentLength}\n x2={isHorizontal ? (i + 1) * segmentLength : 2}\n y2={isHorizontal ? 2 : (i + 1) * segmentLength}\n stroke={inactiveColor}\n strokeWidth={4}\n strokeLinecap=\"round\"\n style={{ opacity: 0.6 }}\n />\n ))}\n </svg>\n\n {steps.map((step, i) => {\n const activateAt = i * stepDuration;\n const localFrame = frame - activateAt;\n const popScale = spring({\n frame: localFrame,\n fps,\n config: { damping: 10, stiffness: 180, mass: 0.6 },\n });\n const scale = interpolate(popScale, [0, 1], [0.8, 1]);\n const fill = interpolateColors(\n frame,\n [activateAt, activateAt + 8],\n [inactiveColor, activeColor],\n );\n const showCheck = interpolate(\n frame,\n [activateAt + 6, activateAt + 14],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n return (\n <div\n key={i}\n style={{\n position: \"relative\",\n display: \"flex\",\n flexDirection: isHorizontal ? \"column\" : \"row\",\n alignItems: \"center\",\n gap: 14,\n width: isHorizontal ? segmentLength : \"auto\",\n height: isHorizontal ? \"auto\" : segmentLength,\n marginRight:\n isHorizontal && i === steps.length - 1 ? 0 : -segmentLength,\n marginBottom:\n !isHorizontal && i === steps.length - 1 ? 0 : -segmentLength,\n zIndex: 2,\n }}\n >\n <div\n style={{\n width: nodeRadius * 2,\n height: nodeRadius * 2,\n borderRadius: 999,\n background: fill,\n border: `2px solid ${activeColor}`,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n transform: `scale(${scale})`,\n transformOrigin: \"center\",\n boxShadow: `0 0 0 6px ${activeColor}1a`,\n }}\n >\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{ opacity: showCheck }}\n >\n <path\n d=\"M5 12.5l4.5 4.5L19 7\"\n stroke=\"white\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n <span\n style={{\n fontSize: 15,\n fontWeight: 500,\n color: textColor,\n letterSpacing: \"-0.01em\",\n whiteSpace: \"nowrap\",\n position: isHorizontal ? \"absolute\" : \"static\",\n top: isHorizontal ? nodeRadius * 2 + 14 : undefined,\n }}\n >\n {step.label}\n </span>\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/progress-steps.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/pulsing-indicator.json b/public/r/pulsing-indicator.json
new file mode 100644
index 00000000..ff0d304f
--- /dev/null
+++ b/public/r/pulsing-indicator.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "pulsing-indicator",
+ "title": "Pulsing Indicator",
+ "description": "Continuous pulsing dot with ping ring for loading or live states.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/pulsing-indicator/index.tsx",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\n\nexport interface PulsingIndicatorProps {\n color?: string;\n size?: number;\n /** Wavelength of the base pulse, in frames. Higher = longer one cycle. */\n period?: number;\n /** Playback speed multiplier (1 = normal, 2 = twice as fast). */\n speed?: number;\n background?: string;\n className?: string;\n}\n\nexport function PulsingIndicator({\n color = \"#22c55e\",\n size = 16,\n period = 8,\n speed = 1,\n background = \"white\",\n className,\n}: PulsingIndicatorProps) {\n const frame = useCurrentFrame() * speed;\n\n // Inner dot pulse: 0..1 normalized\n const wave = Math.sin(frame / period) * 0.5 + 0.5;\n const dotScale = 0.9 + wave * 0.2;\n const dotOpacity = 0.6 + wave * 0.4;\n\n // Outer ring \"ping\": phase from 0..1 looping\n const ringPeriod = period * Math.PI * 2;\n const phase = (frame % ringPeriod) / ringPeriod;\n const ringScale = 1 + phase * 1.6;\n const ringOpacity = (1 - phase) * 0.7;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background,\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: size,\n height: size,\n }}\n >\n {/* Ping ring */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: \"50%\",\n background: color,\n opacity: ringOpacity,\n transform: `scale(${ringScale})`,\n transformOrigin: \"center\",\n willChange: \"transform, opacity\",\n }}\n />\n {/* Solid dot */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n borderRadius: \"50%\",\n background: color,\n opacity: dotOpacity,\n transform: `scale(${dotScale})`,\n transformOrigin: \"center\",\n willChange: \"transform, opacity\",\n }}\n />\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/pulsing-indicator.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/registry.json b/public/r/registry.json
index 0b006c05..79d3559a 100644
--- a/public/r/registry.json
+++ b/public/r/registry.json
@@ -11,11 +11,557 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/blur-reveal.tsx",
+ "path": "registry/remocn/blur-reveal/index.tsx",
"type": "registry:component",
"target": "components/remocn/blur-reveal.tsx"
}
]
+ },
+ {
+ "name": "typewriter",
+ "type": "registry:component",
+ "title": "Typewriter",
+ "description": "Character-by-character text reveal with a deterministic blinking cursor.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/typewriter/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/typewriter.tsx"
+ }
+ ]
+ },
+ {
+ "name": "inline-highlight",
+ "type": "registry:component",
+ "title": "Inline Highlight",
+ "description": "Animates one word inside a sentence from a base color to a brand color.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/inline-highlight/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/inline-highlight.tsx"
+ }
+ ]
+ },
+ {
+ "name": "text-fade-replace",
+ "type": "registry:component",
+ "title": "Text Fade Replace",
+ "description": "Cross-fades between two strings on the same line without layout shift.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/text-fade-replace/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/text-fade-replace.tsx"
+ }
+ ]
+ },
+ {
+ "name": "strikethrough-replace",
+ "type": "registry:component",
+ "title": "Strikethrough Replace",
+ "description": "Draws a strike line across old text then reveals new text in its place.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/strikethrough-replace/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/strikethrough-replace.tsx"
+ }
+ ]
+ },
+ {
+ "name": "staggered-fade-up",
+ "type": "registry:component",
+ "title": "Staggered Fade Up",
+ "description": "Words fade in and slide up one after another with a configurable delay.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/staggered-fade-up/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/staggered-fade-up.tsx"
+ }
+ ]
+ },
+ {
+ "name": "masked-slide-reveal",
+ "type": "registry:component",
+ "title": "Masked Slide Reveal",
+ "description": "Words slide up out of an invisible horizontal mask, one after another.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/masked-slide-reveal/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/masked-slide-reveal.tsx"
+ }
+ ]
+ },
+ {
+ "name": "tracking-in",
+ "type": "registry:component",
+ "title": "Tracking In",
+ "description": "Letter-spacing collapses and blur clears with a springy motion.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/tracking-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/tracking-in.tsx"
+ }
+ ]
+ },
+ {
+ "name": "shimmer-sweep",
+ "type": "registry:component",
+ "title": "Shimmer Sweep",
+ "description": "Light shine sweeps across muted text via background-clip:text.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/shimmer-sweep/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/shimmer-sweep.tsx"
+ }
+ ]
+ },
+ {
+ "name": "marker-highlight",
+ "type": "registry:component",
+ "title": "Marker Highlight",
+ "description": "Colored marker block draws behind a phrase as the text color shifts.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/marker-highlight/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/marker-highlight.tsx"
+ }
+ ]
+ },
+ {
+ "name": "slot-machine-roll",
+ "type": "registry:component",
+ "title": "Slot Machine Roll",
+ "description": "Vertical reel scrolls characters from one value to another.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/slot-machine-roll/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/slot-machine-roll.tsx"
+ }
+ ]
+ },
+ {
+ "name": "matrix-decode",
+ "type": "registry:component",
+ "title": "Matrix Decode",
+ "description": "Random scramble resolves left-to-right into the target text.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/matrix-decode/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/matrix-decode.tsx"
+ }
+ ]
+ },
+ {
+ "name": "rgb-glitch-text",
+ "type": "registry:component",
+ "title": "RGB Glitch Text",
+ "description": "Three RGB-offset text copies jitter for a brief glitch window.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/rgb-glitch-text/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/rgb-glitch-text.tsx"
+ }
+ ]
+ },
+ {
+ "name": "infinite-marquee",
+ "type": "registry:component",
+ "title": "Infinite Marquee",
+ "description": "Seamlessly looping horizontal text strip with optional stroke style.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/infinite-marquee/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/infinite-marquee.tsx"
+ }
+ ]
+ },
+ {
+ "name": "mesh-gradient-bg",
+ "type": "registry:component",
+ "title": "Mesh Gradient Background",
+ "description": "Living gradient with amorphous color blobs slowly drifting across the frame.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/mesh-gradient-bg/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/mesh-gradient-bg.tsx"
+ }
+ ]
+ },
+ {
+ "name": "dynamic-grid",
+ "type": "registry:component",
+ "title": "Dynamic Grid",
+ "description": "Subtle moving grid background with configurable cell size and direction.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/dynamic-grid/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/dynamic-grid.tsx"
+ }
+ ]
+ },
+ {
+ "name": "spring-pop-in",
+ "type": "registry:component",
+ "title": "Spring Pop In",
+ "description": "Elastic spring-driven scale-in wrapper for any child element.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/spring-pop-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spring-pop-in.tsx"
+ }
+ ]
+ },
+ {
+ "name": "simulated-cursor",
+ "type": "registry:component",
+ "title": "Simulated Cursor",
+ "description": "Animated mouse cursor moving between waypoints with click ripple feedback.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/simulated-cursor/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/simulated-cursor.tsx"
+ }
+ ]
+ },
+ {
+ "name": "pulsing-indicator",
+ "type": "registry:component",
+ "title": "Pulsing Indicator",
+ "description": "Continuous pulsing dot with ping ring for loading or live states.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/pulsing-indicator/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/pulsing-indicator.tsx"
+ }
+ ]
+ },
+ {
+ "name": "directional-wipe",
+ "type": "registry:component",
+ "title": "Directional Wipe",
+ "description": "Slide one scene in while pushing the other out.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/directional-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/directional-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "device-mockup-zoom",
+ "type": "registry:component",
+ "title": "Device Mockup Zoom",
+ "description": "Pull back from a UI to reveal it inside a device frame.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/device-mockup-zoom/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/device-mockup-zoom.tsx"
+ }
+ ]
+ },
+ {
+ "name": "zoom-through-transition",
+ "type": "registry:component",
+ "title": "Zoom Through Transition",
+ "description": "Aggressively scale into the center of an element.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/zoom-through-transition/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/zoom-through-transition.tsx"
+ }
+ ]
+ },
+ {
+ "name": "staggered-bento-grid",
+ "type": "registry:component",
+ "title": "Staggered Bento Grid",
+ "description": "Cards pop into a bento grid one after another with a spring.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/staggered-bento-grid/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/staggered-bento-grid.tsx"
+ }
+ ]
+ },
+ {
+ "name": "chat-to-preview-layout",
+ "type": "registry:component",
+ "title": "Chat to Preview Layout",
+ "description": "Two-column layout where chat shrinks and preview expands.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/chat-to-preview-layout/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/chat-to-preview-layout.tsx"
+ }
+ ]
+ },
+ {
+ "name": "bounding-box-selector",
+ "type": "registry:component",
+ "title": "Bounding Box Selector",
+ "description": "Figma-style selection rectangle appears around any element.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/bounding-box-selector/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/bounding-box-selector.tsx"
+ }
+ ]
+ },
+ {
+ "name": "animated-line-chart",
+ "type": "registry:component",
+ "title": "Animated Line Chart",
+ "description": "Line chart whose SVG path draws on from left to right with a leading dot.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/animated-line-chart/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/animated-line-chart.tsx"
+ }
+ ]
+ },
+ {
+ "name": "animated-bar-chart",
+ "type": "registry:component",
+ "title": "Animated Bar Chart",
+ "description": "Bars spring up from the baseline in a staggered cascade.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/animated-bar-chart/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/animated-bar-chart.tsx"
+ }
+ ]
+ },
+ {
+ "name": "terminal-simulator",
+ "type": "registry:component",
+ "title": "Terminal Simulator",
+ "description": "Terminal window that types out commands and rolls old lines off the top.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/terminal-simulator/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/terminal-simulator.tsx"
+ }
+ ]
+ },
+ {
+ "name": "code-diff-wipe",
+ "type": "registry:component",
+ "title": "Code Diff Wipe",
+ "description": "Before/after code reveal via clip-path wipe with a handle marker.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/code-diff-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/code-diff-wipe.tsx"
+ }
+ ]
+ },
+ {
+ "name": "toast-notification",
+ "type": "registry:component",
+ "title": "Toast Notification",
+ "description": "System-style toast pops in, holds, then slides out.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/toast-notification/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/toast-notification.tsx"
+ }
+ ]
+ },
+ {
+ "name": "drag-and-drop-flow",
+ "type": "registry:component",
+ "title": "Drag and Drop Flow",
+ "description": "Simulated file drag into a dropzone followed by upload progress.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/drag-and-drop-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/drag-and-drop-flow.tsx"
+ }
+ ]
+ },
+ {
+ "name": "progress-steps",
+ "type": "registry:component",
+ "title": "Progress Steps",
+ "description": "Multi-step pipeline with sequentially activating nodes and filling lines.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/progress-steps/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/progress-steps.tsx"
+ }
+ ]
+ },
+ {
+ "name": "morphing-modal",
+ "type": "registry:component",
+ "title": "Morphing Modal",
+ "description": "A bento card lifts off the grid and blooms into a full-screen modal driven by a single heavy spring.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/morphing-modal/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/morphing-modal.tsx"
+ }
+ ]
+ },
+ {
+ "name": "data-flow-pipes",
+ "type": "registry:component",
+ "title": "Data Flow Pipes",
+ "description": "Glowing data packets travel along SVG bezier pipes between system nodes, leaving fading trails.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/data-flow-pipes/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/data-flow-pipes.tsx"
+ }
+ ]
+ },
+ {
+ "name": "cursor-flow",
+ "type": "registry:component",
+ "title": "Cursor Flow",
+ "description": "A realistic mouse that arcs along cubic Bezier paths, pauses, and clicks targets that dip in response.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/cursor-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/cursor-flow.tsx"
+ }
+ ]
+ },
+ {
+ "name": "code-accordion",
+ "type": "registry:component",
+ "title": "Code Accordion",
+ "description": "A code window that springs a range of lines closed and replaces them with a \"N lines collapsed\" placeholder.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/code-accordion/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/code-accordion.tsx"
+ }
+ ]
+ },
+ {
+ "name": "glass-code-block",
+ "type": "registry:component",
+ "title": "Glass Code Block",
+ "description": "A premium frosted-glass code editor window with a regex tokenizer and line-by-line stagger reveal.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/glass-code-block/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/glass-code-block.tsx"
+ }
+ ]
+ },
+ {
+ "name": "spotlight-card",
+ "type": "registry:component",
+ "title": "Spotlight Card",
+ "description": "A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/spotlight-card/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spotlight-card.tsx"
+ }
+ ]
+ },
+ {
+ "name": "perspective-marquee",
+ "type": "registry:component",
+ "title": "Perspective Marquee",
+ "description": "A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/perspective-marquee/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/perspective-marquee.tsx"
+ }
+ ]
+ },
+ {
+ "name": "success-confetti",
+ "type": "registry:component",
+ "title": "Success Confetti",
+ "description": "Deterministic seeded confetti burst with optional headline.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/success-confetti/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/success-confetti.tsx"
+ }
+ ]
}
]
}
diff --git a/public/r/rgb-glitch-text.json b/public/r/rgb-glitch-text.json
new file mode 100644
index 00000000..f02faf8f
--- /dev/null
+++ b/public/r/rgb-glitch-text.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "rgb-glitch-text",
+ "title": "RGB Glitch Text",
+ "description": "Three RGB-offset text copies jitter for a brief glitch window.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/rgb-glitch-text/index.tsx",
+ "content": "\"use client\";\n\nimport { random, useCurrentFrame } from \"remotion\";\n\nexport interface RGBGlitchTextProps {\n text: string;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n glitchAt?: number;\n glitchDuration?: number;\n intensity?: number;\n seed?: string;\n speed?: number;\n className?: string;\n}\n\nexport function RGBGlitchText({\n text,\n fontSize = 96,\n color = \"#171717\",\n fontWeight = 700,\n glitchAt = 20,\n glitchDuration = 8,\n intensity = 6,\n seed = \"glitch\",\n speed = 1,\n className,\n}: RGBGlitchTextProps) {\n const frame = useCurrentFrame() * speed;\n\n const isGlitching = frame >= glitchAt && frame < glitchAt + glitchDuration;\n\n const offset = (axisSeed: string, scale: number) =>\n (random(`${seed}-${axisSeed}-${frame}`) * 2 - 1) * scale;\n\n const rX = isGlitching ? offset(\"r-x\", intensity) : 0;\n const rY = isGlitching ? offset(\"r-y\", intensity * 0.4) : 0;\n const gX = isGlitching ? offset(\"g-x\", intensity) : 0;\n const gY = isGlitching ? offset(\"g-y\", intensity * 0.4) : 0;\n const bX = isGlitching ? offset(\"b-x\", intensity) : 0;\n const bY = isGlitching ? offset(\"b-y\", intensity * 0.4) : 0;\n\n const copyOpacity = isGlitching ? 1 : 0;\n\n const baseStyle: React.CSSProperties = {\n position: \"absolute\",\n top: 0,\n left: 0,\n fontSize,\n fontWeight,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"pre\",\n mixBlendMode: \"multiply\",\n };\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"#fafafa\",\n }}\n >\n <div\n className={className}\n style={{ position: \"relative\", display: \"inline-block\" }}\n >\n <span\n style={{\n position: \"relative\",\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"pre\",\n }}\n >\n {text}\n </span>\n <span\n style={{\n ...baseStyle,\n color: \"#ff0040\",\n opacity: copyOpacity,\n transform: `translateX(${rX}px) translateY(${rY}px)`,\n }}\n >\n {text}\n </span>\n <span\n style={{\n ...baseStyle,\n color: \"#00ff80\",\n opacity: copyOpacity,\n transform: `translateX(${gX}px) translateY(${gY}px)`,\n }}\n >\n {text}\n </span>\n <span\n style={{\n ...baseStyle,\n color: \"#0080ff\",\n opacity: copyOpacity,\n transform: `translateX(${bX}px) translateY(${bY}px)`,\n }}\n >\n {text}\n </span>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/rgb-glitch-text.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/shimmer-sweep.json b/public/r/shimmer-sweep.json
new file mode 100644
index 00000000..5d0bc77f
--- /dev/null
+++ b/public/r/shimmer-sweep.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "shimmer-sweep",
+ "title": "Shimmer Sweep",
+ "description": "Light shine sweeps across muted text via background-clip:text.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/shimmer-sweep/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface ShimmerSweepProps {\n text: string;\n baseColor?: string;\n shineColor?: string;\n fontSize?: number;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function ShimmerSweep({\n text,\n baseColor = \"#3f3f46\",\n shineColor = \"#fafafa\",\n fontSize = 96,\n fontWeight = 700,\n speed = 1,\n className,\n}: ShimmerSweepProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const position = interpolate(\n frame,\n [0, durationInFrames * 0.8],\n [200, -100],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const textStyle: React.CSSProperties = {\n fontSize,\n fontWeight,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n margin: 0,\n lineHeight: 1,\n };\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <div style={{ position: \"relative\", display: \"inline-block\" }}>\n <span style={{ ...textStyle, color: baseColor }}>{text}</span>\n <span\n className={className}\n style={{\n ...textStyle,\n position: \"absolute\",\n inset: 0,\n color: \"transparent\",\n backgroundClip: \"text\",\n WebkitBackgroundClip: \"text\",\n backgroundImage: `linear-gradient(110deg, transparent 30%, ${shineColor} 50%, transparent 70%)`,\n backgroundSize: \"200% 100%\",\n backgroundPosition: `${position}% 50%`,\n }}\n >\n {text}\n </span>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/shimmer-sweep.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/simulated-cursor.json b/public/r/simulated-cursor.json
new file mode 100644
index 00000000..62239644
--- /dev/null
+++ b/public/r/simulated-cursor.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "simulated-cursor",
+ "title": "Simulated Cursor",
+ "description": "Animated mouse cursor moving between waypoints with click ripple feedback.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/simulated-cursor/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface CursorPoint {\n x: number;\n y: number;\n hold?: number;\n click?: boolean;\n}\n\nexport interface SimulatedCursorProps {\n points?: CursorPoint[];\n color?: string;\n size?: number;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nconst DEFAULT_POINTS: CursorPoint[] = [\n { x: 200, y: 150, hold: 20 },\n { x: 800, y: 360, hold: 25, click: true },\n { x: 1050, y: 560, hold: 20 },\n];\n\nexport function SimulatedCursor({\n points = DEFAULT_POINTS,\n color = \"#ffffff\",\n size = 32,\n background = \"#0a0a0a\",\n speed = 1,\n className,\n}: SimulatedCursorProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n const travelPerLeg = 24;\n const segments: Array<{\n start: number;\n end: number;\n holdEnd: number;\n from: CursorPoint;\n to: CursorPoint;\n }> = [];\n\n let cursor = 0;\n for (let i = 0; i < points.length - 1; i++) {\n const from = points[i];\n const to = points[i + 1];\n const start = cursor;\n const end = start + travelPerLeg;\n const holdEnd = end + (to.hold ?? 15);\n segments.push({ start, end, holdEnd, from, to });\n cursor = holdEnd;\n }\n\n // Find current segment\n let x = points[0].x;\n let y = points[0].y;\n let activeClickFrame: number | null = null;\n let clickTarget: CursorPoint | null = null;\n\n if (segments.length === 0) {\n x = points[0].x;\n y = points[0].y;\n } else if (frame < segments[0].start + (points[0].hold ?? 0)) {\n x = points[0].x;\n y = points[0].y;\n } else {\n for (const seg of segments) {\n if (frame >= seg.start && frame < seg.holdEnd) {\n if (frame < seg.end) {\n // travelling\n x = interpolate(frame, [seg.start, seg.end], [seg.from.x, seg.to.x], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n y = interpolate(frame, [seg.start, seg.end], [seg.from.y, seg.to.y], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n } else {\n x = seg.to.x;\n y = seg.to.y;\n if (seg.to.click) {\n activeClickFrame = frame - seg.end;\n clickTarget = seg.to;\n }\n }\n break;\n }\n if (frame >= seg.holdEnd) {\n x = seg.to.x;\n y = seg.to.y;\n }\n }\n }\n\n // Click feedback\n let clickScale = 1;\n let rippleRadius = 0;\n let rippleOpacity = 0;\n if (activeClickFrame !== null && clickTarget) {\n const dip = spring({\n fps,\n frame: activeClickFrame,\n config: { damping: 10, stiffness: 200, mass: 0.6 },\n durationInFrames: 14,\n });\n clickScale = 1 - dip * 0.18;\n rippleRadius = interpolate(activeClickFrame, [0, 24], [4, 60], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n rippleOpacity = interpolate(activeClickFrame, [0, 24], [0.6, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n }\n\n // Suppress unused warning when durationInFrames not used directly\n void durationInFrames;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n overflow: \"hidden\",\n }}\n >\n {/* Click ripple */}\n {rippleOpacity > 0 && (\n <svg\n style={{\n position: \"absolute\",\n left: x - 80,\n top: y - 80,\n width: 160,\n height: 160,\n pointerEvents: \"none\",\n }}\n >\n <circle\n cx={80}\n cy={80}\n r={rippleRadius}\n fill=\"none\"\n stroke={color}\n strokeWidth={2}\n opacity={rippleOpacity}\n />\n </svg>\n )}\n\n {/* Cursor */}\n <div\n style={{\n position: \"absolute\",\n left: x,\n top: y,\n width: size,\n height: size,\n transform: `scale(${clickScale})`,\n transformOrigin: \"top left\",\n zIndex: 2147483647,\n pointerEvents: \"none\",\n willChange: \"transform, left, top\",\n }}\n >\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M5 3L5 19L9.5 14.5L12.5 21L15 20L12 13.5L18.5 13.5L5 3Z\"\n fill={color}\n stroke=\"#000000\"\n strokeWidth={1.2}\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/simulated-cursor.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/slot-machine-roll.json b/public/r/slot-machine-roll.json
new file mode 100644
index 00000000..ed2c0998
--- /dev/null
+++ b/public/r/slot-machine-roll.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "slot-machine-roll",
+ "title": "Slot Machine Roll",
+ "description": "Vertical reel scrolls characters from one value to another.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/slot-machine-roll/index.tsx",
+ "content": "\"use client\";\n\nimport { spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface SlotMachineRollProps {\n from?: string;\n to?: string;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function SlotMachineRoll({\n from = \"$99\",\n to = \"$199\",\n fontSize = 120,\n color = \"#171717\",\n fontWeight = 700,\n speed = 1,\n className,\n}: SlotMachineRollProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const len = Math.max(from.length, to.length);\n const paddedFrom = from.padStart(len, \" \");\n const paddedTo = to.padStart(len, \" \");\n\n const columns = [];\n for (let i = 0; i < len; i++) {\n const raw = spring({\n frame: frame - i * 4,\n fps,\n config: { damping: 14 },\n });\n const t = Math.max(0, Math.min(1, raw));\n columns.push(\n <span\n key={i}\n style={{\n display: \"inline-block\",\n overflow: \"hidden\",\n height: \"1.1em\",\n lineHeight: \"1.1em\",\n verticalAlign: \"top\",\n width: \"0.7em\",\n textAlign: \"center\",\n }}\n >\n <span\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n transform: `translateY(${-t * fontSize * 1.1}px)`,\n }}\n >\n <span>{paddedFrom[i]}</span>\n <span>{paddedTo[i]}</span>\n </span>\n </span>,\n );\n }\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n lineHeight: 1.1,\n }}\n >\n {columns}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/slot-machine-roll.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/spotlight-card.json b/public/r/spotlight-card.json
new file mode 100644
index 00000000..2a92ae25
--- /dev/null
+++ b/public/r/spotlight-card.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "spotlight-card",
+ "title": "Spotlight Card",
+ "description": "A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/spotlight-card/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface SpotlightCardProps {\n title?: string;\n body?: string;\n cardWidth?: number;\n cardHeight?: number;\n glowSize?: number;\n glowOpacity?: number;\n background?: string;\n cardColor?: string;\n textColor?: string;\n mutedColor?: string;\n speed?: number;\n className?: string;\n children?: ReactNode;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\n/**\n * Smooth synthetic cursor path: a slow Lissajous figure-8 that tours the\n * card surface so the spotlight is always moving but never repeats jerkily.\n * Returns coordinates in card-local space (0..cardWidth, 0..cardHeight).\n */\nfunction cursorAt(\n frame: number,\n cardWidth: number,\n cardHeight: number,\n durationInFrames: number,\n) {\n const t = (frame / durationInFrames) * Math.PI * 2;\n const x = cardWidth / 2 + Math.sin(t) * (cardWidth * 0.42);\n const y = cardHeight / 2 + Math.sin(t * 2) * (cardHeight * 0.32);\n return { x, y };\n}\n\nexport function SpotlightCard({\n title = \"Spotlight Card\",\n body = \"Soft radial light follows the cursor, picking out the microborder.\",\n cardWidth = 520,\n cardHeight = 320,\n glowSize = 600,\n glowOpacity = 0.08,\n background = \"#050505\",\n cardColor = \"#0a0a0a\",\n textColor = \"#fafafa\",\n mutedColor = \"#71717a\",\n speed = 1,\n className,\n children,\n}: SpotlightCardProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n // 1-frame inertia: spotlight lags the cursor by a frame for organic feel.\n const cursor = cursorAt(\n Math.max(0, frame - 1),\n cardWidth,\n cardHeight,\n durationInFrames,\n );\n\n // Card fades up briefly at the start so the preview has a clean entrance.\n const cardOpacity = interpolate(frame, [0, 12], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const surfaceGlow = `radial-gradient(${glowSize}px circle at ${cursor.x}px ${cursor.y}px, rgba(255,255,255,${glowOpacity}), transparent 40%)`;\n const borderGlow = `radial-gradient(${glowSize * 0.6}px circle at ${cursor.x}px ${cursor.y}px, rgba(255,255,255,0.35), transparent 40%)`;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily: FONT_FAMILY,\n }}\n >\n {/* Border glow wrapper — 1px padding + masked radial gradient. */}\n <div\n style={{\n position: \"relative\",\n width: cardWidth,\n height: cardHeight,\n borderRadius: 20,\n padding: 1,\n background: borderGlow,\n opacity: cardOpacity,\n }}\n >\n {/* Card surface */}\n <div\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n borderRadius: 19,\n background: cardColor,\n overflow: \"hidden\",\n boxShadow: \"0 30px 80px rgba(0,0,0,0.5)\",\n }}\n >\n {/* Surface glow underlay */}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: surfaceGlow,\n pointerEvents: \"none\",\n }}\n />\n\n {/* Card content */}\n <div\n style={{\n position: \"relative\",\n padding: 36,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 12,\n height: \"100%\",\n justifyContent: \"flex-end\",\n }}\n >\n {children ?? (\n <>\n <div\n style={{\n fontSize: 28,\n fontWeight: 700,\n letterSpacing: \"-0.02em\",\n color: textColor,\n }}\n >\n {title}\n </div>\n <div\n style={{\n fontSize: 16,\n lineHeight: 1.5,\n color: mutedColor,\n maxWidth: 360,\n }}\n >\n {body}\n </div>\n </>\n )}\n </div>\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/spotlight-card.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/spring-pop-in.json b/public/r/spring-pop-in.json
new file mode 100644
index 00000000..6fc75a4f
--- /dev/null
+++ b/public/r/spring-pop-in.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "spring-pop-in",
+ "title": "Spring Pop In",
+ "description": "Elastic spring-driven scale-in wrapper for any child element.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/spring-pop-in/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { spring, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface SpringPopInProps {\n children?: ReactNode;\n damping?: number;\n mass?: number;\n stiffness?: number;\n delayInFrames?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultChild() {\n return (\n <div\n style={{\n width: 280,\n height: 280,\n borderRadius: 32,\n background: \"linear-gradient(135deg, #0ea5e9 0%, #9333ea 100%)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 56,\n fontWeight: 700,\n letterSpacing: \"-0.04em\",\n boxShadow: \"0 30px 80px rgba(14,165,233,0.35)\",\n }}\n >\n Pop!\n </div>\n );\n}\n\nexport function SpringPopIn({\n children,\n damping = 12,\n mass = 1,\n stiffness = 100,\n delayInFrames = 0,\n speed = 1,\n className,\n}: SpringPopInProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const scale = spring({\n fps,\n frame: frame - delayInFrames,\n config: {\n damping,\n mass,\n stiffness,\n },\n });\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <div\n style={{\n transform: `scale(${scale})`,\n transformOrigin: \"center\",\n willChange: \"transform\",\n }}\n >\n {children ?? <DefaultChild />}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/spring-pop-in.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/staggered-bento-grid.json b/public/r/staggered-bento-grid.json
new file mode 100644
index 00000000..115ce0ba
--- /dev/null
+++ b/public/r/staggered-bento-grid.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "staggered-bento-grid",
+ "title": "Staggered Bento Grid",
+ "description": "Cards pop into a bento grid one after another with a spring.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/staggered-bento-grid/index.tsx",
+ "content": "\"use client\";\n\nimport {\n Sequence,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface BentoItem {\n title: string;\n body?: string;\n span?: 1 | 2;\n}\n\nexport interface StaggeredBentoGridProps {\n items?: BentoItem[];\n staggerDelay?: number;\n columns?: number;\n background?: string;\n cardColor?: string;\n textColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nconst DEFAULT_ITEMS: BentoItem[] = [\n { title: \"Fast\", body: \"Built on Remotion\", span: 2 },\n { title: \"Animated\", body: \"Spring physics\" },\n { title: \"Composable\", body: \"Drop-in blocks\" },\n { title: \"Themed\", body: \"Tailwind ready\" },\n { title: \"Open\", body: \"MIT licensed\", span: 2 },\n];\n\nfunction Card({\n item,\n cardColor,\n textColor,\n speed,\n}: {\n item: BentoItem;\n cardColor: string;\n textColor: string;\n speed: number;\n}) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const progress = spring({\n frame,\n fps,\n durationInFrames: Math.round(0.6 * fps),\n config: { damping: 12 },\n });\n\n return (\n <div\n style={{\n gridColumn: `span ${item.span ?? 1}`,\n background: cardColor,\n borderRadius: 16,\n padding: 24,\n opacity: progress,\n transform: `scale(${0.85 + progress * 0.15})`,\n transformOrigin: \"center center\",\n willChange: \"transform, opacity\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"flex-end\",\n minHeight: 140,\n border: \"1px solid rgba(255,255,255,0.08)\",\n }}\n >\n <div\n style={{\n color: textColor,\n fontFamily: FONT_FAMILY,\n fontSize: 28,\n fontWeight: 700,\n letterSpacing: \"-0.03em\",\n marginBottom: 4,\n }}\n >\n {item.title}\n </div>\n {item.body ? (\n <div\n style={{\n color: textColor,\n opacity: 0.6,\n fontFamily: FONT_FAMILY,\n fontSize: 16,\n fontWeight: 400,\n }}\n >\n {item.body}\n </div>\n ) : null}\n </div>\n );\n}\n\nexport function StaggeredBentoGrid({\n items = DEFAULT_ITEMS,\n staggerDelay = 8,\n columns = 3,\n background = \"#0a0a0a\",\n cardColor = \"#1a1a1a\",\n textColor = \"white\",\n speed = 1,\n className,\n}: StaggeredBentoGridProps) {\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n padding: 64,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <div\n style={{\n display: \"grid\",\n gridTemplateColumns: `repeat(${columns}, 1fr)`,\n gap: 20,\n width: \"100%\",\n maxWidth: 1100,\n }}\n >\n {items.map((item, index) => (\n <Sequence\n key={index}\n from={Math.round((index * staggerDelay) / speed)}\n layout=\"none\"\n >\n <Card\n item={item}\n cardColor={cardColor}\n textColor={textColor}\n speed={speed}\n />\n </Sequence>\n ))}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/staggered-bento-grid.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/staggered-fade-up.json b/public/r/staggered-fade-up.json
new file mode 100644
index 00000000..109ac2f1
--- /dev/null
+++ b/public/r/staggered-fade-up.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "staggered-fade-up",
+ "title": "Staggered Fade Up",
+ "description": "Words fade in and slide up one after another with a configurable delay.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/staggered-fade-up/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame } from \"remotion\";\n\nexport interface StaggeredFadeUpProps {\n text: string;\n staggerDelay?: number;\n distance?: number;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function StaggeredFadeUp({\n text,\n staggerDelay = 4,\n distance = 20,\n fontSize = 72,\n color = \"#171717\",\n fontWeight = 600,\n speed = 1,\n className,\n}: StaggeredFadeUpProps) {\n const frame = useCurrentFrame() * speed;\n\n const words = text.split(\" \");\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {words.map((word, i) => {\n const local = frame - i * staggerDelay;\n const opacity = interpolate(local, [0, 12], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const y = interpolate(local, [0, 12], [distance, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n return (\n <span\n key={i}\n style={{\n display: \"inline-block\",\n marginRight: \"0.25em\",\n opacity,\n transform: `translateY(${y}px)`,\n }}\n >\n {word}\n </span>\n );\n })}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/staggered-fade-up.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/strikethrough-replace.json b/public/r/strikethrough-replace.json
new file mode 100644
index 00000000..dc47926d
--- /dev/null
+++ b/public/r/strikethrough-replace.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "strikethrough-replace",
+ "title": "Strikethrough Replace",
+ "description": "Draws a strike line across old text then reveals new text in its place.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/strikethrough-replace/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface StrikethroughReplaceProps {\n from: string;\n to: string;\n lineColor?: string;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function StrikethroughReplace({\n from,\n to,\n lineColor = \"#ff5e3a\",\n fontSize = 48,\n color = \"#171717\",\n fontWeight = 600,\n speed = 1,\n className,\n}: StrikethroughReplaceProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n // Phases:\n // 0 .. 40% -> draw strikethrough across `from`\n // 40% .. 60% -> fade out `from`, fade in `to`\n // 60% .. 100% -> hold\n const strikeEnd = durationInFrames * 0.4;\n const fadeStart = durationInFrames * 0.4;\n const fadeEnd = durationInFrames * 0.6;\n\n const linePct = interpolate(frame, [0, strikeEnd], [0, 100], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const fromOpacity = interpolate(frame, [fadeStart, fadeEnd], [1, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const toOpacity = interpolate(frame, [fadeStart, fadeEnd], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const toY = interpolate(frame, [fadeStart, fadeEnd], [8, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const textStyle: React.CSSProperties = {\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"nowrap\",\n };\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {/* from text with strikethrough line */}\n <span\n className={className}\n style={{\n ...textStyle,\n position: \"absolute\",\n opacity: fromOpacity,\n }}\n >\n {from}\n <span\n aria-hidden\n style={{\n position: \"absolute\",\n left: 0,\n top: \"50%\",\n height: Math.max(2, Math.round(fontSize * 0.08)),\n width: `${linePct}%`,\n background: lineColor,\n transform: \"translateY(-50%)\",\n borderRadius: 2,\n }}\n />\n </span>\n\n {/* to text */}\n <span\n className={className}\n style={{\n ...textStyle,\n opacity: toOpacity,\n transform: `translateY(${toY}px)`,\n }}\n >\n {to}\n </span>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/strikethrough-replace.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/success-confetti.json b/public/r/success-confetti.json
new file mode 100644
index 00000000..d1cdc0d6
--- /dev/null
+++ b/public/r/success-confetti.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "success-confetti",
+ "title": "Success Confetti",
+ "description": "Deterministic seeded confetti burst with optional headline.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/success-confetti/index.tsx",
+ "content": "\"use client\";\n\nimport {\n interpolate,\n random,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface SuccessConfettiProps {\n count?: number;\n colors?: string[];\n originX?: number;\n originY?: number;\n gravity?: number;\n velocity?: number;\n text?: string;\n textColor?: string;\n background?: string;\n seed?: string;\n speed?: number;\n className?: string;\n}\n\nexport function SuccessConfetti({\n count = 60,\n colors = [\"#ff5e3a\", \"#22c55e\", \"#0ea5e9\", \"#facc15\", \"#a855f7\"],\n originX = 0.5,\n originY = 0.5,\n gravity = 0.4,\n velocity = 12,\n text = \"Merged!\",\n textColor = \"#171717\",\n background = \"#fafafa\",\n seed = \"remocn\",\n speed = 1,\n className,\n}: SuccessConfettiProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n const width = 1280;\n const height = 720;\n const cx = width * originX;\n const cy = height * originY;\n\n const textPop = spring({\n frame: frame - 4,\n fps,\n config: { damping: 9, stiffness: 160, mass: 0.7 },\n });\n const textScale = interpolate(textPop, [0, 1], [0.6, 1]);\n const textOpacity = interpolate(frame, [4, 14], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const textExit = interpolate(\n frame,\n [durationInFrames - 12, durationInFrames],\n [1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const particles = Array.from({ length: count }, (_, i) => {\n const seedKey = `${seed}:${i}`;\n const angle =\n random(`${seedKey}:angle`) * Math.PI * 2; // 0..2pi for full burst\n const speed = velocity * (0.6 + random(`${seedKey}:speed`) * 0.8);\n const colorIndex = Math.floor(\n random(`${seedKey}:color`) * colors.length,\n );\n const color = colors[colorIndex] ?? colors[0];\n const size = 6 + random(`${seedKey}:size`) * 8;\n const rotationSpeed = (random(`${seedKey}:rot`) - 0.5) * 16;\n const initialRotation = random(`${seedKey}:irot`) * 360;\n const isCircle = random(`${seedKey}:shape`) > 0.6;\n const lifeOffset = Math.floor(random(`${seedKey}:delay`) * 4);\n\n const f = Math.max(0, frame - lifeOffset);\n const x = cx + Math.cos(angle) * speed * f;\n const y =\n cy + Math.sin(angle) * speed * f + 0.5 * gravity * f * f;\n const rotation = initialRotation + rotationSpeed * f;\n\n const opacity = interpolate(\n frame,\n [0, 4, durationInFrames - 20, durationInFrames],\n [0, 1, 1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n return {\n x,\n y,\n rotation,\n color,\n size,\n isCircle,\n opacity,\n key: i,\n };\n });\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n overflow: \"hidden\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <svg\n width={width}\n height={height}\n viewBox={`0 0 ${width} ${height}`}\n style={{ position: \"absolute\", inset: 0 }}\n >\n {particles.map((p) =>\n p.isCircle ? (\n <circle\n key={p.key}\n cx={p.x}\n cy={p.y}\n r={p.size / 2}\n fill={p.color}\n opacity={p.opacity}\n />\n ) : (\n <rect\n key={p.key}\n x={-p.size / 2}\n y={-p.size / 2}\n width={p.size}\n height={p.size * 0.5}\n rx={1}\n fill={p.color}\n opacity={p.opacity}\n transform={`translate(${p.x} ${p.y}) rotate(${p.rotation})`}\n />\n ),\n )}\n </svg>\n\n {text ? (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n pointerEvents: \"none\",\n }}\n >\n <span\n style={{\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.04em\",\n color: textColor,\n transform: `scale(${textScale})`,\n opacity: Math.min(textOpacity, textExit),\n }}\n >\n {text}\n </span>\n </div>\n ) : null}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/success-confetti.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/terminal-simulator.json b/public/r/terminal-simulator.json
new file mode 100644
index 00000000..a1816ff6
--- /dev/null
+++ b/public/r/terminal-simulator.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "terminal-simulator",
+ "title": "Terminal Simulator",
+ "description": "Terminal window that types out commands and rolls old lines off the top.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/terminal-simulator/index.tsx",
+ "content": "\"use client\";\n\nimport { Sequence, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport type TerminalLineType = \"command\" | \"log\" | \"success\" | \"error\";\n\nexport interface TerminalLine {\n text: string;\n type: TerminalLineType;\n delay?: number;\n /**\n * Extra freeze-frame pause AFTER this line finishes typing, in frames.\n * Use this to build dramatic tension before the next batch of logs.\n * If omitted, lines whose text ends in \"...\" auto-freeze for 18 frames.\n */\n pause?: number;\n}\n\nexport interface TerminalSimulatorProps {\n lines?: TerminalLine[];\n prompt?: string;\n title?: string;\n background?: string;\n chromeColor?: string;\n fontSize?: number;\n /**\n * Reveal speed. Despite the name, the reveal is now CHUNKED — each\n * `1 / charsPerFrame` frames bumps the cursor by `chunkSize` characters,\n * so output appears in bursts instead of dripping char-by-char.\n */\n charsPerFrame?: number;\n /** Characters revealed per step. */\n chunkSize?: number;\n speed?: number;\n className?: string;\n}\n\nconst DEFAULT_LINES: TerminalLine[] = [\n { text: \"npm run build\", type: \"command\", delay: 0 },\n { text: \"Resolving dependencies...\", type: \"log\", delay: 6 },\n { text: \"> [email protected] build\", type: \"log\", delay: 4 },\n { text: \"> next build\", type: \"log\", delay: 4 },\n { text: \"Compiling...\", type: \"log\", delay: 12 },\n { text: \"Compiled successfully in 4.2s\", type: \"success\", delay: 14 },\n { text: \"Generating static pages (24/24)\", type: \"log\", delay: 10 },\n { text: \"Build completed without errors\", type: \"success\", delay: 12 },\n];\n\nconst TYPE_COLORS: Record<TerminalLineType, string> = {\n command: \"#fafafa\",\n log: \"#a1a1aa\",\n success: \"#22c55e\",\n error: \"#ef4444\",\n};\n\n/** Auto freeze-frame heuristic: any line ending in \"...\" holds the camera. */\nfunction autoPause(line: TerminalLine): number {\n if (line.pause !== undefined) return line.pause;\n if (line.text.trimEnd().endsWith(\"...\")) return 18;\n return 0;\n}\n\nexport function TerminalSimulator({\n lines = DEFAULT_LINES,\n prompt = \"$\",\n title = \"~/projects/remocn\",\n background = \"#0a0a0a\",\n chromeColor = \"#1a1a1a\",\n fontSize = 18,\n charsPerFrame = 1,\n chunkSize = 4,\n speed = 1,\n className,\n}: TerminalSimulatorProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const lineHeight = Math.round(fontSize * 1.6);\n const visibleLines = 8;\n const windowWidth = 900;\n const windowHeight = 480;\n\n // Compute cumulative start frames for each line, including auto/explicit\n // pauses AFTER a line finishes typing.\n const starts: number[] = [];\n let acc = 10;\n for (let i = 0; i < lines.length; i++) {\n const delay = lines[i].delay ?? 8;\n acc += delay;\n starts.push(acc);\n // Approximate typing duration (in frames) for chunked output.\n const typingFrames = Math.ceil(lines[i].text.length / (chunkSize * charsPerFrame));\n acc += typingFrames + autoPause(lines[i]);\n }\n\n // STEP-FUNCTION scroll. Each overflowing line snaps the buffer up by\n // exactly one lineHeight on the frame it begins. No interpolation, no\n // easing — terminals do not glide.\n let translateY = 0;\n for (let i = visibleLines; i < lines.length; i++) {\n if (frame >= starts[i]) {\n translateY -= lineHeight;\n }\n }\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"#050505\",\n }}\n >\n <div\n style={{\n width: windowWidth,\n height: windowHeight,\n background,\n borderRadius: 12,\n overflow: \"hidden\",\n boxShadow:\n \"0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06)\",\n display: \"flex\",\n flexDirection: \"column\",\n fontFamily:\n \"var(--font-geist-mono), ui-monospace, SFMono-Regular, monospace\",\n }}\n >\n {/* Chrome */}\n <div\n style={{\n height: 40,\n background: chromeColor,\n display: \"flex\",\n alignItems: \"center\",\n padding: \"0 16px\",\n gap: 8,\n borderBottom: \"1px solid rgba(255,255,255,0.06)\",\n }}\n >\n <Light color=\"#ff5f57\" />\n <Light color=\"#febc2e\" />\n <Light color=\"#28c840\" />\n <div\n style={{\n flex: 1,\n textAlign: \"center\",\n color: \"#71717a\",\n fontSize: 13,\n }}\n >\n {title}\n </div>\n </div>\n\n {/* Content */}\n <div\n style={{\n flex: 1,\n padding: 20,\n overflow: \"hidden\",\n position: \"relative\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 20,\n right: 20,\n top: 20,\n transform: `translateY(${translateY}px)`,\n }}\n >\n {lines.map((line, index) => (\n <Sequence\n key={index}\n from={Math.round(starts[index] / speed)}\n layout=\"none\"\n >\n <TerminalLineRow\n line={line}\n prompt={prompt}\n fontSize={fontSize}\n lineHeight={lineHeight}\n charsPerFrame={charsPerFrame}\n chunkSize={chunkSize}\n fps={fps}\n speed={speed}\n />\n </Sequence>\n ))}\n </div>\n </div>\n </div>\n </div>\n );\n}\n\nfunction Light({ color }: { color: string }) {\n return (\n <div\n style={{\n width: 12,\n height: 12,\n borderRadius: \"50%\",\n background: color,\n opacity: 0.85,\n }}\n />\n );\n}\n\nfunction TerminalLineRow({\n line,\n prompt,\n fontSize,\n lineHeight,\n charsPerFrame,\n chunkSize,\n fps,\n speed,\n}: {\n line: TerminalLine;\n prompt: string;\n fontSize: number;\n lineHeight: number;\n charsPerFrame: number;\n chunkSize: number;\n fps: number;\n speed: number;\n}) {\n const localFrame = useCurrentFrame() * speed;\n const totalChars = line.text.length;\n\n // Chunked reveal: Math.floor of an interpolated count, then snapped to the\n // nearest multiple of `chunkSize`. This is what gives the bursty terminal\n // feel — text doesn't drip, it lurches.\n const linearRevealed = Math.floor(\n interpolate(\n localFrame,\n [0, totalChars / charsPerFrame],\n [0, totalChars],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n ),\n );\n const revealed = Math.min(\n totalChars,\n Math.ceil(linearRevealed / chunkSize) * chunkSize,\n );\n const visible = line.text.substring(0, revealed);\n const typingDone = revealed >= totalChars;\n // 2 Hz blink at any framerate.\n const cursorVisible = Math.floor((localFrame / fps) * 2) % 2 === 0;\n\n return (\n <div\n style={{\n height: lineHeight,\n fontSize,\n color: TYPE_COLORS[line.type],\n display: \"flex\",\n alignItems: \"center\",\n whiteSpace: \"pre\",\n }}\n >\n {line.type === \"command\" && (\n <span style={{ color: \"#22c55e\", marginRight: 8 }}>{prompt}</span>\n )}\n <span>{visible}</span>\n {!typingDone && cursorVisible && (\n <span\n style={{\n display: \"inline-block\",\n width: fontSize * 0.55,\n height: fontSize,\n background: TYPE_COLORS[line.type],\n marginLeft: 2,\n }}\n />\n )}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/terminal-simulator.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/text-fade-replace.json b/public/r/text-fade-replace.json
new file mode 100644
index 00000000..ea43763a
--- /dev/null
+++ b/public/r/text-fade-replace.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "text-fade-replace",
+ "title": "Text Fade Replace",
+ "description": "Cross-fades between two strings on the same line without layout shift.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/text-fade-replace/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface TextFadeReplaceProps {\n from: string;\n to: string;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function TextFadeReplace({\n from,\n to,\n fontSize = 48,\n color = \"#171717\",\n fontWeight = 600,\n speed = 1,\n className,\n}: TextFadeReplaceProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const stops = [\n 0,\n durationInFrames * 0.4,\n durationInFrames * 0.6,\n durationInFrames,\n ];\n\n const fromOpacity = interpolate(frame, stops, [1, 1, 0, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const fromY = interpolate(frame, stops, [0, 0, -12, -12], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const toOpacity = interpolate(frame, stops, [0, 0, 1, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n const toY = interpolate(frame, stops, [12, 12, 0, 0], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n const baseSpanStyle: React.CSSProperties = {\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"nowrap\",\n };\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <div style={{ position: \"relative\", width: 0, height: 0 }}>\n <span\n className={className}\n style={{\n ...baseSpanStyle,\n opacity: fromOpacity,\n transform: `translate(-50%, calc(-50% + ${fromY}px))`,\n }}\n >\n {from}\n </span>\n <span\n className={className}\n style={{\n ...baseSpanStyle,\n opacity: toOpacity,\n transform: `translate(-50%, calc(-50% + ${toY}px))`,\n }}\n >\n {to}\n </span>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/text-fade-replace.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/toast-notification.json b/public/r/toast-notification.json
new file mode 100644
index 00000000..764fb81e
--- /dev/null
+++ b/public/r/toast-notification.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "toast-notification",
+ "title": "Toast Notification",
+ "description": "System-style toast pops in, holds, then slides out.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/toast-notification/index.tsx",
+ "content": "\"use client\";\n\nimport {\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport type ToastVariant = \"success\" | \"error\" | \"info\" | \"warning\";\n\nexport interface ToastNotificationProps {\n title?: string;\n message?: string;\n variant?: ToastVariant;\n background?: string;\n cardColor?: string;\n textColor?: string;\n mutedColor?: string;\n speed?: number;\n className?: string;\n}\n\nconst VARIANT_COLORS: Record<ToastVariant, string> = {\n success: \"#22c55e\",\n error: \"#ef4444\",\n info: \"#0ea5e9\",\n warning: \"#f59e0b\",\n};\n\nfunction VariantIcon({ variant, color }: { variant: ToastVariant; color: string }) {\n const common = {\n width: 22,\n height: 22,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: color,\n strokeWidth: 2.4,\n strokeLinecap: \"round\" as const,\n strokeLinejoin: \"round\" as const,\n };\n\n if (variant === \"success\") {\n return (\n <svg {...common}>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M8 12.5l2.8 2.8L16 9.8\" />\n </svg>\n );\n }\n if (variant === \"error\") {\n return (\n <svg {...common}>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M15 9l-6 6M9 9l6 6\" />\n </svg>\n );\n }\n if (variant === \"warning\") {\n return (\n <svg {...common}>\n <path d=\"M12 3l10 18H2L12 3z\" />\n <path d=\"M12 10v5M12 18v.01\" />\n </svg>\n );\n }\n return (\n <svg {...common}>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v.01M12 12v5\" />\n </svg>\n );\n}\n\nexport function ToastNotification({\n title = \"Deployment successful\",\n message = \"Your changes are live at remocn.dev\",\n variant = \"success\",\n background = \"#fafafa\",\n cardColor = \"white\",\n textColor = \"#171717\",\n mutedColor = \"#71717a\",\n speed = 1,\n className,\n}: ToastNotificationProps) {\n const frame = useCurrentFrame() * speed;\n const { fps, durationInFrames } = useVideoConfig();\n\n const enterFrames = 15;\n const exitFrames = 15;\n const exitStart = Math.max(enterFrames, durationInFrames - exitFrames);\n\n const enterProgress = spring({\n frame,\n fps,\n config: { damping: 14, stiffness: 140, mass: 0.7 },\n durationInFrames: enterFrames,\n });\n\n const enterTranslate = interpolate(enterProgress, [0, 1], [40, 0]);\n const enterOpacity = interpolate(enterProgress, [0, 1], [0, 1], {\n extrapolateRight: \"clamp\",\n });\n\n const exitTranslate = interpolate(\n frame,\n [exitStart, exitStart + exitFrames],\n [0, 40],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n const exitOpacity = interpolate(\n frame,\n [exitStart, exitStart + exitFrames],\n [1, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" },\n );\n\n const translateY = enterTranslate + exitTranslate;\n const opacity = Math.min(enterOpacity, exitOpacity);\n\n const accent = VARIANT_COLORS[variant];\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n className={className}\n style={{\n position: \"absolute\",\n right: 32,\n bottom: 32,\n transform: `translateY(${translateY}px)`,\n opacity,\n display: \"flex\",\n alignItems: \"flex-start\",\n gap: 14,\n padding: \"16px 20px\",\n minWidth: 320,\n maxWidth: 420,\n background: cardColor,\n borderRadius: 14,\n boxShadow:\n \"0 10px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06)\",\n border: \"1px solid rgba(0,0,0,0.06)\",\n }}\n >\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n width: 36,\n height: 36,\n borderRadius: 999,\n background: `${accent}1f`,\n flexShrink: 0,\n }}\n >\n <VariantIcon variant={variant} color={accent} />\n </div>\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: 2 }}>\n <span\n style={{\n fontSize: 16,\n fontWeight: 600,\n color: textColor,\n letterSpacing: \"-0.01em\",\n }}\n >\n {title}\n </span>\n <span style={{ fontSize: 14, color: mutedColor, lineHeight: 1.4 }}>\n {message}\n </span>\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/toast-notification.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/tracking-in.json b/public/r/tracking-in.json
new file mode 100644
index 00000000..a1dddd3e
--- /dev/null
+++ b/public/r/tracking-in.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "tracking-in",
+ "title": "Tracking In",
+ "description": "Letter-spacing collapses and blur clears with a springy motion.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/tracking-in/index.tsx",
+ "content": "\"use client\";\n\nimport {\n interpolate,\n spring,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nexport interface TrackingInProps {\n text: string;\n startTracking?: number;\n startBlur?: number;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function TrackingIn({\n text,\n startTracking = 0.5,\n startBlur = 12,\n fontSize = 96,\n color = \"#171717\",\n fontWeight = 700,\n speed = 1,\n className,\n}: TrackingInProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const t = spring({\n frame,\n fps,\n config: { damping: 18, stiffness: 90 },\n });\n\n const letterSpacing =\n interpolate(t, [0, 1], [startTracking, -0.03]) + \"em\";\n const blurAmount = interpolate(t, [0, 1], [startBlur, 0]);\n const opacity = interpolate(frame, [0, 15], [0, 1], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n });\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing,\n opacity,\n filter: `blur(${blurAmount}px)`,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"nowrap\",\n }}\n >\n {text}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/tracking-in.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/typewriter.json b/public/r/typewriter.json
new file mode 100644
index 00000000..6834eb42
--- /dev/null
+++ b/public/r/typewriter.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "typewriter",
+ "title": "Typewriter",
+ "description": "Character-by-character text reveal with a deterministic blinking cursor.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/typewriter/index.tsx",
+ "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface TypewriterProps {\n text: string;\n cursor?: boolean;\n /** Typing speed in characters per second. */\n charsPerSecond?: number;\n /** Playback speed multiplier (1 = normal, 2 = twice as fast). */\n speed?: number;\n fontSize?: number;\n color?: string;\n cursorColor?: string;\n fontWeight?: number;\n className?: string;\n}\n\nexport function Typewriter({\n text,\n cursor = true,\n charsPerSecond = 20,\n speed = 1,\n fontSize = 48,\n color = \"#171717\",\n cursorColor = \"#171717\",\n fontWeight = 600,\n className,\n}: TypewriterProps) {\n const frame = useCurrentFrame() * speed;\n const { fps } = useVideoConfig();\n\n const charsToRevealOver = (text.length / charsPerSecond) * fps;\n\n const revealed = Math.floor(\n interpolate(frame, [0, charsToRevealOver], [0, text.length], {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n }),\n );\n\n const visibleText = text.substring(0, revealed);\n const isCursorVisible = Math.floor((frame / fps) * 2) % 2 === 0;\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"white\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.03em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n whiteSpace: \"pre\",\n }}\n >\n {visibleText}\n {cursor && (\n <span\n style={{\n display: \"inline-block\",\n width: \"0.08em\",\n height: \"1em\",\n marginLeft: \"0.04em\",\n verticalAlign: \"text-bottom\",\n background: cursorColor,\n opacity: isCursorVisible ? 1 : 0,\n }}\n />\n )}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/typewriter.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/public/r/zoom-through-transition.json b/public/r/zoom-through-transition.json
new file mode 100644
index 00000000..a9e0e600
--- /dev/null
+++ b/public/r/zoom-through-transition.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "zoom-through-transition",
+ "title": "Zoom Through Transition",
+ "description": "Aggressively scale into the center of an element.",
+ "dependencies": ["remotion"],
+ "files": [
+ {
+ "path": "registry/remocn/zoom-through-transition/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface ZoomThroughTransitionProps {\n children?: ReactNode;\n targetScale?: number;\n transformOrigin?: string;\n background?: string;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultContent() {\n return (\n <div\n style={{\n width: 320,\n height: 200,\n borderRadius: 24,\n background: \"linear-gradient(135deg, #0ea5e9 0%, #9333ea 100%)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 48,\n fontWeight: 700,\n letterSpacing: \"-0.03em\",\n boxShadow: \"0 20px 60px rgba(14,165,233,0.35)\",\n }}\n >\n Zoom\n </div>\n );\n}\n\nexport function ZoomThroughTransition({\n children,\n targetScale = 20,\n transformOrigin = \"center center\",\n background = \"white\",\n speed = 1,\n className,\n}: ZoomThroughTransitionProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const scale = interpolate(\n frame,\n [0, durationInFrames],\n [1, targetScale],\n {\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.7, 0, 0.84, 0),\n },\n );\n\n const opacity = interpolate(\n frame,\n [0, durationInFrames * 0.7, durationInFrames],\n [1, 1, 0],\n { extrapolateRight: \"clamp\" },\n );\n\n const content = children ?? <DefaultContent />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n background,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n transform: `scale(${scale})`,\n transformOrigin,\n opacity,\n willChange: \"transform, opacity\",\n }}\n >\n {content}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/zoom-through-transition.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
diff --git a/registry.json b/registry.json
index 5aef4cf3..79d3559a 100644
--- a/registry.json
+++ b/registry.json
@@ -11,7 +11,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/blur-reveal.tsx",
+ "path": "registry/remocn/blur-reveal/index.tsx",
"type": "registry:component",
"target": "components/remocn/blur-reveal.tsx"
}
@@ -25,7 +25,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/typewriter.tsx",
+ "path": "registry/remocn/typewriter/index.tsx",
"type": "registry:component",
"target": "components/remocn/typewriter.tsx"
}
@@ -39,7 +39,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/inline-highlight.tsx",
+ "path": "registry/remocn/inline-highlight/index.tsx",
"type": "registry:component",
"target": "components/remocn/inline-highlight.tsx"
}
@@ -53,7 +53,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/text-fade-replace.tsx",
+ "path": "registry/remocn/text-fade-replace/index.tsx",
"type": "registry:component",
"target": "components/remocn/text-fade-replace.tsx"
}
@@ -67,7 +67,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/strikethrough-replace.tsx",
+ "path": "registry/remocn/strikethrough-replace/index.tsx",
"type": "registry:component",
"target": "components/remocn/strikethrough-replace.tsx"
}
@@ -81,7 +81,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/staggered-fade-up.tsx",
+ "path": "registry/remocn/staggered-fade-up/index.tsx",
"type": "registry:component",
"target": "components/remocn/staggered-fade-up.tsx"
}
@@ -95,7 +95,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/masked-slide-reveal.tsx",
+ "path": "registry/remocn/masked-slide-reveal/index.tsx",
"type": "registry:component",
"target": "components/remocn/masked-slide-reveal.tsx"
}
@@ -109,7 +109,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/tracking-in.tsx",
+ "path": "registry/remocn/tracking-in/index.tsx",
"type": "registry:component",
"target": "components/remocn/tracking-in.tsx"
}
@@ -123,7 +123,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/shimmer-sweep.tsx",
+ "path": "registry/remocn/shimmer-sweep/index.tsx",
"type": "registry:component",
"target": "components/remocn/shimmer-sweep.tsx"
}
@@ -137,7 +137,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/marker-highlight.tsx",
+ "path": "registry/remocn/marker-highlight/index.tsx",
"type": "registry:component",
"target": "components/remocn/marker-highlight.tsx"
}
@@ -151,7 +151,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/slot-machine-roll.tsx",
+ "path": "registry/remocn/slot-machine-roll/index.tsx",
"type": "registry:component",
"target": "components/remocn/slot-machine-roll.tsx"
}
@@ -165,7 +165,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/matrix-decode.tsx",
+ "path": "registry/remocn/matrix-decode/index.tsx",
"type": "registry:component",
"target": "components/remocn/matrix-decode.tsx"
}
@@ -179,7 +179,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/rgb-glitch-text.tsx",
+ "path": "registry/remocn/rgb-glitch-text/index.tsx",
"type": "registry:component",
"target": "components/remocn/rgb-glitch-text.tsx"
}
@@ -193,7 +193,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/infinite-marquee.tsx",
+ "path": "registry/remocn/infinite-marquee/index.tsx",
"type": "registry:component",
"target": "components/remocn/infinite-marquee.tsx"
}
@@ -207,7 +207,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/mesh-gradient-bg.tsx",
+ "path": "registry/remocn/mesh-gradient-bg/index.tsx",
"type": "registry:component",
"target": "components/remocn/mesh-gradient-bg.tsx"
}
@@ -221,7 +221,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/dynamic-grid.tsx",
+ "path": "registry/remocn/dynamic-grid/index.tsx",
"type": "registry:component",
"target": "components/remocn/dynamic-grid.tsx"
}
@@ -235,7 +235,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/spring-pop-in.tsx",
+ "path": "registry/remocn/spring-pop-in/index.tsx",
"type": "registry:component",
"target": "components/remocn/spring-pop-in.tsx"
}
@@ -249,7 +249,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/simulated-cursor.tsx",
+ "path": "registry/remocn/simulated-cursor/index.tsx",
"type": "registry:component",
"target": "components/remocn/simulated-cursor.tsx"
}
@@ -263,7 +263,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/pulsing-indicator.tsx",
+ "path": "registry/remocn/pulsing-indicator/index.tsx",
"type": "registry:component",
"target": "components/remocn/pulsing-indicator.tsx"
}
@@ -277,7 +277,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/directional-wipe.tsx",
+ "path": "registry/remocn/directional-wipe/index.tsx",
"type": "registry:component",
"target": "components/remocn/directional-wipe.tsx"
}
@@ -291,7 +291,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/device-mockup-zoom.tsx",
+ "path": "registry/remocn/device-mockup-zoom/index.tsx",
"type": "registry:component",
"target": "components/remocn/device-mockup-zoom.tsx"
}
@@ -305,7 +305,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/zoom-through-transition.tsx",
+ "path": "registry/remocn/zoom-through-transition/index.tsx",
"type": "registry:component",
"target": "components/remocn/zoom-through-transition.tsx"
}
@@ -319,7 +319,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/staggered-bento-grid.tsx",
+ "path": "registry/remocn/staggered-bento-grid/index.tsx",
"type": "registry:component",
"target": "components/remocn/staggered-bento-grid.tsx"
}
@@ -333,7 +333,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/chat-to-preview-layout.tsx",
+ "path": "registry/remocn/chat-to-preview-layout/index.tsx",
"type": "registry:component",
"target": "components/remocn/chat-to-preview-layout.tsx"
}
@@ -347,7 +347,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/bounding-box-selector.tsx",
+ "path": "registry/remocn/bounding-box-selector/index.tsx",
"type": "registry:component",
"target": "components/remocn/bounding-box-selector.tsx"
}
@@ -361,7 +361,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/animated-line-chart.tsx",
+ "path": "registry/remocn/animated-line-chart/index.tsx",
"type": "registry:component",
"target": "components/remocn/animated-line-chart.tsx"
}
@@ -375,7 +375,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/animated-bar-chart.tsx",
+ "path": "registry/remocn/animated-bar-chart/index.tsx",
"type": "registry:component",
"target": "components/remocn/animated-bar-chart.tsx"
}
@@ -389,7 +389,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/terminal-simulator.tsx",
+ "path": "registry/remocn/terminal-simulator/index.tsx",
"type": "registry:component",
"target": "components/remocn/terminal-simulator.tsx"
}
@@ -403,7 +403,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/code-diff-wipe.tsx",
+ "path": "registry/remocn/code-diff-wipe/index.tsx",
"type": "registry:component",
"target": "components/remocn/code-diff-wipe.tsx"
}
@@ -417,7 +417,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/toast-notification.tsx",
+ "path": "registry/remocn/toast-notification/index.tsx",
"type": "registry:component",
"target": "components/remocn/toast-notification.tsx"
}
@@ -431,7 +431,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/drag-and-drop-flow.tsx",
+ "path": "registry/remocn/drag-and-drop-flow/index.tsx",
"type": "registry:component",
"target": "components/remocn/drag-and-drop-flow.tsx"
}
@@ -445,7 +445,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/progress-steps.tsx",
+ "path": "registry/remocn/progress-steps/index.tsx",
"type": "registry:component",
"target": "components/remocn/progress-steps.tsx"
}
@@ -459,7 +459,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/morphing-modal.tsx",
+ "path": "registry/remocn/morphing-modal/index.tsx",
"type": "registry:component",
"target": "components/remocn/morphing-modal.tsx"
}
@@ -473,7 +473,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/data-flow-pipes.tsx",
+ "path": "registry/remocn/data-flow-pipes/index.tsx",
"type": "registry:component",
"target": "components/remocn/data-flow-pipes.tsx"
}
@@ -487,7 +487,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/cursor-flow.tsx",
+ "path": "registry/remocn/cursor-flow/index.tsx",
"type": "registry:component",
"target": "components/remocn/cursor-flow.tsx"
}
@@ -501,7 +501,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/code-accordion.tsx",
+ "path": "registry/remocn/code-accordion/index.tsx",
"type": "registry:component",
"target": "components/remocn/code-accordion.tsx"
}
@@ -515,7 +515,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/glass-code-block.tsx",
+ "path": "registry/remocn/glass-code-block/index.tsx",
"type": "registry:component",
"target": "components/remocn/glass-code-block.tsx"
}
@@ -529,7 +529,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/spotlight-card.tsx",
+ "path": "registry/remocn/spotlight-card/index.tsx",
"type": "registry:component",
"target": "components/remocn/spotlight-card.tsx"
}
@@ -543,7 +543,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/perspective-marquee.tsx",
+ "path": "registry/remocn/perspective-marquee/index.tsx",
"type": "registry:component",
"target": "components/remocn/perspective-marquee.tsx"
}
@@ -557,7 +557,7 @@
"dependencies": ["remotion"],
"files": [
{
- "path": "registry/remocn/success-confetti.tsx",
+ "path": "registry/remocn/success-confetti/index.tsx",
"type": "registry:component",
"target": "components/remocn/success-confetti.tsx"
}
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
new file mode 100644
index 00000000..d28282c2
--- /dev/null
+++ b/registry/__index__.tsx
@@ -0,0 +1,139 @@
+import type React from "react";
+import { type ComponentConfig, SHARED_CONTROLS } from "@/lib/customizer-config";
+
+import { AnimatedBarChart } from "@/registry/remocn/animated-bar-chart";
+import { animatedBarChartConfig } from "@/registry/remocn/animated-bar-chart/config";
+import { AnimatedLineChart } from "@/registry/remocn/animated-line-chart";
+import { animatedLineChartConfig } from "@/registry/remocn/animated-line-chart/config";
+import { BlurReveal } from "@/registry/remocn/blur-reveal";
+import { blurRevealConfig } from "@/registry/remocn/blur-reveal/config";
+import { BoundingBoxSelector } from "@/registry/remocn/bounding-box-selector";
+import { boundingBoxSelectorConfig } from "@/registry/remocn/bounding-box-selector/config";
+import { ChatToPreviewLayout } from "@/registry/remocn/chat-to-preview-layout";
+import { chatToPreviewLayoutConfig } from "@/registry/remocn/chat-to-preview-layout/config";
+import { CodeAccordion } from "@/registry/remocn/code-accordion";
+import { codeAccordionConfig } from "@/registry/remocn/code-accordion/config";
+import { CodeDiffWipe } from "@/registry/remocn/code-diff-wipe";
+import { codeDiffWipeConfig } from "@/registry/remocn/code-diff-wipe/config";
+import { CursorFlow } from "@/registry/remocn/cursor-flow";
+import { cursorFlowConfig } from "@/registry/remocn/cursor-flow/config";
+import { DataFlowPipes } from "@/registry/remocn/data-flow-pipes";
+import { dataFlowPipesConfig } from "@/registry/remocn/data-flow-pipes/config";
+import { DeviceMockupZoom } from "@/registry/remocn/device-mockup-zoom";
+import { deviceMockupZoomConfig } from "@/registry/remocn/device-mockup-zoom/config";
+import { DirectionalWipe } from "@/registry/remocn/directional-wipe";
+import { directionalWipeConfig } from "@/registry/remocn/directional-wipe/config";
+import { DragAndDropFlow } from "@/registry/remocn/drag-and-drop-flow";
+import { dragAndDropFlowConfig } from "@/registry/remocn/drag-and-drop-flow/config";
+import { DynamicGrid } from "@/registry/remocn/dynamic-grid";
+import { dynamicGridConfig } from "@/registry/remocn/dynamic-grid/config";
+import { GlassCodeBlock } from "@/registry/remocn/glass-code-block";
+import { glassCodeBlockConfig } from "@/registry/remocn/glass-code-block/config";
+import { InfiniteMarquee } from "@/registry/remocn/infinite-marquee";
+import { infiniteMarqueeConfig } from "@/registry/remocn/infinite-marquee/config";
+import { InlineHighlight } from "@/registry/remocn/inline-highlight";
+import { inlineHighlightConfig } from "@/registry/remocn/inline-highlight/config";
+import { MarkerHighlight } from "@/registry/remocn/marker-highlight";
+import { markerHighlightConfig } from "@/registry/remocn/marker-highlight/config";
+import { MaskedSlideReveal } from "@/registry/remocn/masked-slide-reveal";
+import { maskedSlideRevealConfig } from "@/registry/remocn/masked-slide-reveal/config";
+import { MatrixDecode } from "@/registry/remocn/matrix-decode";
+import { matrixDecodeConfig } from "@/registry/remocn/matrix-decode/config";
+import { MeshGradientBg } from "@/registry/remocn/mesh-gradient-bg";
+import { meshGradientBgConfig } from "@/registry/remocn/mesh-gradient-bg/config";
+import { MorphingModal } from "@/registry/remocn/morphing-modal";
+import { morphingModalConfig } from "@/registry/remocn/morphing-modal/config";
+import { PerspectiveMarquee } from "@/registry/remocn/perspective-marquee";
+import { perspectiveMarqueeConfig } from "@/registry/remocn/perspective-marquee/config";
+import { ProgressSteps } from "@/registry/remocn/progress-steps";
+import { progressStepsConfig } from "@/registry/remocn/progress-steps/config";
+import { PulsingIndicator } from "@/registry/remocn/pulsing-indicator";
+import { pulsingIndicatorConfig } from "@/registry/remocn/pulsing-indicator/config";
+import { RGBGlitchText } from "@/registry/remocn/rgb-glitch-text";
+import { rgbGlitchTextConfig } from "@/registry/remocn/rgb-glitch-text/config";
+import { ShimmerSweep } from "@/registry/remocn/shimmer-sweep";
+import { shimmerSweepConfig } from "@/registry/remocn/shimmer-sweep/config";
+import { SimulatedCursor } from "@/registry/remocn/simulated-cursor";
+import { simulatedCursorConfig } from "@/registry/remocn/simulated-cursor/config";
+import { SlotMachineRoll } from "@/registry/remocn/slot-machine-roll";
+import { slotMachineRollConfig } from "@/registry/remocn/slot-machine-roll/config";
+import { SpotlightCard } from "@/registry/remocn/spotlight-card";
+import { spotlightCardConfig } from "@/registry/remocn/spotlight-card/config";
+import { SpringPopIn } from "@/registry/remocn/spring-pop-in";
+import { springPopInConfig } from "@/registry/remocn/spring-pop-in/config";
+import { StaggeredBentoGrid } from "@/registry/remocn/staggered-bento-grid";
+import { staggeredBentoGridConfig } from "@/registry/remocn/staggered-bento-grid/config";
+import { StaggeredFadeUp } from "@/registry/remocn/staggered-fade-up";
+import { staggeredFadeUpConfig } from "@/registry/remocn/staggered-fade-up/config";
+import { StrikethroughReplace } from "@/registry/remocn/strikethrough-replace";
+import { strikethroughReplaceConfig } from "@/registry/remocn/strikethrough-replace/config";
+import { SuccessConfetti } from "@/registry/remocn/success-confetti";
+import { successConfettiConfig } from "@/registry/remocn/success-confetti/config";
+import { TerminalSimulator } from "@/registry/remocn/terminal-simulator";
+import { terminalSimulatorConfig } from "@/registry/remocn/terminal-simulator/config";
+import { TextFadeReplace } from "@/registry/remocn/text-fade-replace";
+import { textFadeReplaceConfig } from "@/registry/remocn/text-fade-replace/config";
+import { ToastNotification } from "@/registry/remocn/toast-notification";
+import { toastNotificationConfig } from "@/registry/remocn/toast-notification/config";
+import { TrackingIn } from "@/registry/remocn/tracking-in";
+import { trackingInConfig } from "@/registry/remocn/tracking-in/config";
+import { Typewriter } from "@/registry/remocn/typewriter";
+import { typewriterConfig } from "@/registry/remocn/typewriter/config";
+import { ZoomThroughTransition } from "@/registry/remocn/zoom-through-transition";
+import { zoomThroughTransitionConfig } from "@/registry/remocn/zoom-through-transition/config";
+
+export interface RegistryEntry {
+ Component: React.ComponentType<any>;
+ config: ComponentConfig;
+}
+
+const registry: Record<string, RegistryEntry> = {
+ "blur-reveal": { Component: BlurReveal, config: blurRevealConfig },
+ typewriter: { Component: Typewriter, config: typewriterConfig },
+ "inline-highlight": { Component: InlineHighlight, config: inlineHighlightConfig },
+ "text-fade-replace": { Component: TextFadeReplace, config: textFadeReplaceConfig },
+ "strikethrough-replace": { Component: StrikethroughReplace, config: strikethroughReplaceConfig },
+ "staggered-fade-up": { Component: StaggeredFadeUp, config: staggeredFadeUpConfig },
+ "masked-slide-reveal": { Component: MaskedSlideReveal, config: maskedSlideRevealConfig },
+ "tracking-in": { Component: TrackingIn, config: trackingInConfig },
+ "shimmer-sweep": { Component: ShimmerSweep, config: shimmerSweepConfig },
+ "marker-highlight": { Component: MarkerHighlight, config: markerHighlightConfig },
+ "slot-machine-roll": { Component: SlotMachineRoll, config: slotMachineRollConfig },
+ "matrix-decode": { Component: MatrixDecode, config: matrixDecodeConfig },
+ "rgb-glitch-text": { Component: RGBGlitchText, config: rgbGlitchTextConfig },
+ "infinite-marquee": { Component: InfiniteMarquee, config: infiniteMarqueeConfig },
+ "perspective-marquee": { Component: PerspectiveMarquee, config: perspectiveMarqueeConfig },
+ "spotlight-card": { Component: SpotlightCard, config: spotlightCardConfig },
+ "glass-code-block": { Component: GlassCodeBlock, config: glassCodeBlockConfig },
+ "code-accordion": { Component: CodeAccordion, config: codeAccordionConfig },
+ "cursor-flow": { Component: CursorFlow, config: cursorFlowConfig },
+ "data-flow-pipes": { Component: DataFlowPipes, config: dataFlowPipesConfig },
+ "morphing-modal": { Component: MorphingModal, config: morphingModalConfig },
+ "mesh-gradient-bg": { Component: MeshGradientBg, config: meshGradientBgConfig },
+ "dynamic-grid": { Component: DynamicGrid, config: dynamicGridConfig },
+ "spring-pop-in": { Component: SpringPopIn, config: springPopInConfig },
+ "simulated-cursor": { Component: SimulatedCursor, config: simulatedCursorConfig },
+ "pulsing-indicator": { Component: PulsingIndicator, config: pulsingIndicatorConfig },
+ "directional-wipe": { Component: DirectionalWipe, config: directionalWipeConfig },
+ "device-mockup-zoom": { Component: DeviceMockupZoom, config: deviceMockupZoomConfig },
+ "zoom-through-transition": { Component: ZoomThroughTransition, config: zoomThroughTransitionConfig },
+ "staggered-bento-grid": { Component: StaggeredBentoGrid, config: staggeredBentoGridConfig },
+ "chat-to-preview-layout": { Component: ChatToPreviewLayout, config: chatToPreviewLayoutConfig },
+ "bounding-box-selector": { Component: BoundingBoxSelector, config: boundingBoxSelectorConfig },
+ "animated-line-chart": { Component: AnimatedLineChart, config: animatedLineChartConfig },
+ "animated-bar-chart": { Component: AnimatedBarChart, config: animatedBarChartConfig },
+ "terminal-simulator": { Component: TerminalSimulator, config: terminalSimulatorConfig },
+ "code-diff-wipe": { Component: CodeDiffWipe, config: codeDiffWipeConfig },
+ "toast-notification": { Component: ToastNotification, config: toastNotificationConfig },
+ "drag-and-drop-flow": { Component: DragAndDropFlow, config: dragAndDropFlowConfig },
+ "progress-steps": { Component: ProgressSteps, config: progressStepsConfig },
+ "success-confetti": { Component: SuccessConfetti, config: successConfettiConfig },
+};
+
+// Append the shared controls (e.g. `speed`) to every component config so
+// every animation in the customizer exposes the same baseline knobs.
+for (const { config } of Object.values(registry)) {
+ config.controls = { ...config.controls, ...SHARED_CONTROLS };
+}
+
+export default registry;
diff --git a/registry/remocn/animated-bar-chart/config.ts b/registry/remocn/animated-bar-chart/config.ts
new file mode 100644
index 00000000..667c5129
--- /dev/null
+++ b/registry/remocn/animated-bar-chart/config.ts
@@ -0,0 +1,30 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const animatedBarChartConfig: ComponentConfig = {
+ componentName: "AnimatedBarChart",
+ importPath: "@/components/remocn/animated-bar-chart",
+ controls: {
+ barColor: { type: "color", default: "#0ea5e9", label: "Bar color" },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ gap: {
+ type: "number",
+ default: 16,
+ min: 0,
+ max: 80,
+ step: 2,
+ label: "Gap",
+ },
+ staggerFrames: {
+ type: "number",
+ default: 6,
+ min: 0,
+ max: 30,
+ step: 1,
+ label: "Stagger frames",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/animated-bar-chart.tsx b/registry/remocn/animated-bar-chart/index.tsx
similarity index 100%
rename from registry/remocn/animated-bar-chart.tsx
rename to registry/remocn/animated-bar-chart/index.tsx
diff --git a/registry/remocn/animated-line-chart/config.ts b/registry/remocn/animated-line-chart/config.ts
new file mode 100644
index 00000000..a36d23ee
--- /dev/null
+++ b/registry/remocn/animated-line-chart/config.ts
@@ -0,0 +1,24 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const animatedLineChartConfig: ComponentConfig = {
+ componentName: "AnimatedLineChart",
+ importPath: "@/components/remocn/animated-line-chart",
+ controls: {
+ strokeColor: { type: "color", default: "#22c55e", label: "Stroke color" },
+ strokeWidth: {
+ type: "number",
+ default: 4,
+ min: 1,
+ max: 16,
+ step: 1,
+ label: "Stroke width",
+ },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ gridColor: { type: "color", default: "#27272a", label: "Grid color" },
+ showDot: { type: "boolean", default: true, label: "Show leading dot" },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/animated-line-chart.tsx b/registry/remocn/animated-line-chart/index.tsx
similarity index 100%
rename from registry/remocn/animated-line-chart.tsx
rename to registry/remocn/animated-line-chart/index.tsx
diff --git a/registry/remocn/blur-reveal/config.ts b/registry/remocn/blur-reveal/config.ts
new file mode 100644
index 00000000..52a13a26
--- /dev/null
+++ b/registry/remocn/blur-reveal/config.ts
@@ -0,0 +1,42 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const blurRevealConfig: ComponentConfig = {
+ componentName: "BlurReveal",
+ importPath: "@/components/remocn/blur-reveal",
+ controls: {
+ text: { type: "text", default: "BlurReveal", label: "Text" },
+ blur: {
+ type: "number",
+ default: 10,
+ min: 1,
+ max: 30,
+ step: 1,
+ label: "Blur",
+ },
+ fontSize: {
+ type: "number",
+ default: 72,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "600",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/blur-reveal.tsx b/registry/remocn/blur-reveal/index.tsx
similarity index 100%
rename from registry/remocn/blur-reveal.tsx
rename to registry/remocn/blur-reveal/index.tsx
diff --git a/registry/remocn/bounding-box-selector/config.ts b/registry/remocn/bounding-box-selector/config.ts
new file mode 100644
index 00000000..6a725c04
--- /dev/null
+++ b/registry/remocn/bounding-box-selector/config.ts
@@ -0,0 +1,31 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const boundingBoxSelectorConfig: ComponentConfig = {
+ componentName: "BoundingBoxSelector",
+ importPath: "@/components/remocn/bounding-box-selector",
+ controls: {
+ borderColor: { type: "color", default: "#0ea5e9", label: "Border color" },
+ handleColor: { type: "color", default: "#0ea5e9", label: "Handle color" },
+ borderWidth: {
+ type: "number",
+ default: 2,
+ min: 1,
+ max: 8,
+ step: 1,
+ label: "Border width",
+ },
+ appearAt: {
+ type: "number",
+ default: 15,
+ min: 0,
+ max: 60,
+ step: 1,
+ label: "Appear at (frame)",
+ },
+ background: { type: "color", default: "#fafafa", label: "Background" },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/bounding-box-selector.tsx b/registry/remocn/bounding-box-selector/index.tsx
similarity index 100%
rename from registry/remocn/bounding-box-selector.tsx
rename to registry/remocn/bounding-box-selector/index.tsx
diff --git a/registry/remocn/chat-to-preview-layout/config.ts b/registry/remocn/chat-to-preview-layout/config.ts
new file mode 100644
index 00000000..0a40e5b8
--- /dev/null
+++ b/registry/remocn/chat-to-preview-layout/config.ts
@@ -0,0 +1,29 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const chatToPreviewLayoutConfig: ComponentConfig = {
+ componentName: "ChatToPreviewLayout",
+ importPath: "@/components/remocn/chat-to-preview-layout",
+ controls: {
+ startChatRatio: {
+ type: "number",
+ default: 0.5,
+ min: 0.1,
+ max: 0.9,
+ step: 0.05,
+ label: "Start chat ratio",
+ },
+ endChatRatio: {
+ type: "number",
+ default: 0.25,
+ min: 0.05,
+ max: 0.9,
+ step: 0.05,
+ label: "End chat ratio",
+ },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ },
+ durationInFrames: 120,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/chat-to-preview-layout.tsx b/registry/remocn/chat-to-preview-layout/index.tsx
similarity index 94%
rename from registry/remocn/chat-to-preview-layout.tsx
rename to registry/remocn/chat-to-preview-layout/index.tsx
index 8e3ba852..d90b9a42 100644
--- a/registry/remocn/chat-to-preview-layout.tsx
+++ b/registry/remocn/chat-to-preview-layout/index.tsx
@@ -191,26 +191,16 @@ export function ChatToPreviewLayout({
// Right (preview) panel reveal: fade in + slide left into its growing slot.
// Anchored to the same morph window so it feels like the chat is physically
// dragging the preview into existence.
- const previewOpacity = interpolate(
- frame,
- [morphStart, morphEnd],
- [0, 1],
- {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: APPLE_EASE,
- },
- );
- const previewTx = interpolate(
- frame,
- [morphStart, morphEnd],
- [40, 0],
- {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- easing: APPLE_EASE,
- },
- );
+ const previewOpacity = interpolate(frame, [morphStart, morphEnd], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: APPLE_EASE,
+ });
+ const previewTx = interpolate(frame, [morphStart, morphEnd], [40, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: APPLE_EASE,
+ });
const chatBasis = `${ratio * 100}%`;
const previewBasis = `${(1 - ratio) * 100}%`;
diff --git a/registry/remocn/code-accordion/config.ts b/registry/remocn/code-accordion/config.ts
new file mode 100644
index 00000000..e9091618
--- /dev/null
+++ b/registry/remocn/code-accordion/config.ts
@@ -0,0 +1,41 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const codeAccordionConfig: ComponentConfig = {
+ componentName: "CodeAccordion",
+ importPath: "@/components/remocn/code-accordion",
+ controls: {
+ title: { type: "text", default: "process-orders.ts", label: "Title" },
+ collapseAt: {
+ type: "number",
+ default: 30,
+ min: 0,
+ max: 240,
+ step: 1,
+ label: "Collapse at (frame)",
+ },
+ fontSize: {
+ type: "number",
+ default: 16,
+ min: 10,
+ max: 28,
+ step: 1,
+ label: "Font size",
+ },
+ width: {
+ type: "number",
+ default: 720,
+ min: 320,
+ max: 1100,
+ step: 10,
+ label: "Width",
+ },
+ background: { type: "color", default: "#050505", label: "Background" },
+ cardColor: { type: "color", default: "#0a0a0a", label: "Card color" },
+ textColor: { type: "color", default: "#e4e4e7", label: "Text color" },
+ mutedColor: { type: "color", default: "#52525b", label: "Muted color" },
+ },
+ durationInFrames: 150,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/code-accordion.tsx b/registry/remocn/code-accordion/index.tsx
similarity index 100%
rename from registry/remocn/code-accordion.tsx
rename to registry/remocn/code-accordion/index.tsx
diff --git a/registry/remocn/code-diff-wipe/config.ts b/registry/remocn/code-diff-wipe/config.ts
new file mode 100644
index 00000000..1454eec7
--- /dev/null
+++ b/registry/remocn/code-diff-wipe/config.ts
@@ -0,0 +1,32 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const codeDiffWipeConfig: ComponentConfig = {
+ componentName: "CodeDiffWipe",
+ importPath: "@/components/remocn/code-diff-wipe",
+ controls: {
+ language: { type: "text", default: "tsx", label: "Language" },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ accent: { type: "color", default: "#0ea5e9", label: "Accent" },
+ transitionStart: {
+ type: "number",
+ default: 20,
+ min: 0,
+ max: 120,
+ step: 1,
+ label: "Transition start",
+ },
+ transitionDuration: {
+ type: "number",
+ default: 60,
+ min: 8,
+ max: 180,
+ step: 1,
+ label: "Transition duration",
+ },
+ showHandle: { type: "boolean", default: true, label: "Show handle" },
+ },
+ durationInFrames: 120,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/code-diff-wipe.tsx b/registry/remocn/code-diff-wipe/index.tsx
similarity index 100%
rename from registry/remocn/code-diff-wipe.tsx
rename to registry/remocn/code-diff-wipe/index.tsx
diff --git a/registry/remocn/cursor-flow/config.ts b/registry/remocn/cursor-flow/config.ts
new file mode 100644
index 00000000..2c3748ee
--- /dev/null
+++ b/registry/remocn/cursor-flow/config.ts
@@ -0,0 +1,31 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const cursorFlowConfig: ComponentConfig = {
+ componentName: "CursorFlow",
+ importPath: "@/components/remocn/cursor-flow",
+ controls: {
+ cursorColor: { type: "color", default: "#fafafa", label: "Cursor color" },
+ cursorSize: {
+ type: "number",
+ default: 28,
+ min: 12,
+ max: 64,
+ step: 1,
+ label: "Cursor size",
+ },
+ segmentDuration: {
+ type: "number",
+ default: 36,
+ min: 8,
+ max: 120,
+ step: 1,
+ label: "Segment duration",
+ },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ showTargets: { type: "boolean", default: true, label: "Show targets" },
+ },
+ durationInFrames: 180,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/cursor-flow.tsx b/registry/remocn/cursor-flow/index.tsx
similarity index 98%
rename from registry/remocn/cursor-flow.tsx
rename to registry/remocn/cursor-flow/index.tsx
index 2a5bde24..fb61d5bd 100644
--- a/registry/remocn/cursor-flow.tsx
+++ b/registry/remocn/cursor-flow/index.tsx
@@ -98,7 +98,11 @@ export function CursorFlow({
// Build the timeline: each segment is segmentDuration frames, with optional
// hold time at each waypoint.
- type SegmentTiming = { startFrame: number; endFrame: number; holdEnd: number };
+ type SegmentTiming = {
+ startFrame: number;
+ endFrame: number;
+ holdEnd: number;
+ };
const timings: SegmentTiming[] = [];
let cursorFrame = 0;
for (let i = 0; i < waypoints.length - 1; i++) {
diff --git a/registry/remocn/data-flow-pipes/config.ts b/registry/remocn/data-flow-pipes/config.ts
new file mode 100644
index 00000000..aa357a0c
--- /dev/null
+++ b/registry/remocn/data-flow-pipes/config.ts
@@ -0,0 +1,33 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const dataFlowPipesConfig: ComponentConfig = {
+ componentName: "DataFlowPipes",
+ importPath: "@/components/remocn/data-flow-pipes",
+ controls: {
+ pipeColor: { type: "color", default: "#1f1f23", label: "Pipe color" },
+ pulseColor: { type: "color", default: "#22d3ee", label: "Pulse color" },
+ pulseLength: {
+ type: "number",
+ default: 60,
+ min: 10,
+ max: 200,
+ step: 5,
+ label: "Pulse length",
+ },
+ pulseDuration: {
+ type: "number",
+ default: 36,
+ min: 8,
+ max: 120,
+ step: 1,
+ label: "Pulse duration",
+ },
+ background: { type: "color", default: "#050505", label: "Background" },
+ nodeColor: { type: "color", default: "#0a0a0a", label: "Node color" },
+ textColor: { type: "color", default: "#fafafa", label: "Text color" },
+ },
+ durationInFrames: 180,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/data-flow-pipes.tsx b/registry/remocn/data-flow-pipes/index.tsx
similarity index 95%
rename from registry/remocn/data-flow-pipes.tsx
rename to registry/remocn/data-flow-pipes/index.tsx
index 840da180..866bbb00 100644
--- a/registry/remocn/data-flow-pipes.tsx
+++ b/registry/remocn/data-flow-pipes/index.tsx
@@ -56,10 +56,7 @@ const DEFAULT_EDGES: DataFlowEdge[] = [
* points are pulled toward the midpoint and offset perpendicular for natural
* routing — straight lines look like circuit traces, curves look like data.
*/
-function bezierPath(
- a: { x: number; y: number },
- b: { x: number; y: number },
-) {
+function bezierPath(a: { x: number; y: number }, b: { x: number; y: number }) {
const dx = b.x - a.x;
const dy = b.y - a.y;
// Stronger horizontal handles → routes look like API/DB diagrams.
@@ -89,8 +86,16 @@ function bezierLength(
const t = i / steps;
const u = 1 - t;
const p = {
- x: u * u * u * a.x + 3 * u * u * t * c1.x + 3 * u * t * t * c2.x + t * t * t * b.x,
- y: u * u * u * a.y + 3 * u * u * t * c1.y + 3 * u * t * t * c2.y + t * t * t * b.y,
+ x:
+ u * u * u * a.x +
+ 3 * u * u * t * c1.x +
+ 3 * u * t * t * c2.x +
+ t * t * t * b.x,
+ y:
+ u * u * u * a.y +
+ 3 * u * u * t * c1.y +
+ 3 * u * t * t * c2.y +
+ t * t * t * b.y,
};
len += Math.hypot(p.x - prev.x, p.y - prev.y);
prev = p;
diff --git a/registry/remocn/device-mockup-zoom/config.ts b/registry/remocn/device-mockup-zoom/config.ts
new file mode 100644
index 00000000..ef2c3c5b
--- /dev/null
+++ b/registry/remocn/device-mockup-zoom/config.ts
@@ -0,0 +1,21 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const deviceMockupZoomConfig: ComponentConfig = {
+ componentName: "DeviceMockupZoom",
+ importPath: "@/components/remocn/device-mockup-zoom",
+ controls: {
+ device: {
+ type: "select",
+ default: "laptop",
+ options: ["laptop", "phone"],
+ label: "Device",
+ },
+ frameColor: { type: "color", default: "#1f1f1f", label: "Frame color" },
+ screenColor: { type: "color", default: "#0a0a0a", label: "Screen color" },
+ background: { type: "color", default: "#fafafa", label: "Background" },
+ },
+ durationInFrames: 120,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/device-mockup-zoom.tsx b/registry/remocn/device-mockup-zoom/index.tsx
similarity index 100%
rename from registry/remocn/device-mockup-zoom.tsx
rename to registry/remocn/device-mockup-zoom/index.tsx
diff --git a/registry/remocn/directional-wipe/config.ts b/registry/remocn/directional-wipe/config.ts
new file mode 100644
index 00000000..74217b38
--- /dev/null
+++ b/registry/remocn/directional-wipe/config.ts
@@ -0,0 +1,26 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const directionalWipeConfig: ComponentConfig = {
+ componentName: "DirectionalWipe",
+ importPath: "@/components/remocn/directional-wipe",
+ controls: {
+ direction: {
+ type: "select",
+ default: "left",
+ options: ["left", "right", "up", "down"],
+ label: "Direction",
+ },
+ transitionDuration: {
+ type: "number",
+ default: 20,
+ min: 4,
+ max: 60,
+ step: 1,
+ label: "Transition duration",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/directional-wipe.tsx b/registry/remocn/directional-wipe/index.tsx
similarity index 96%
rename from registry/remocn/directional-wipe.tsx
rename to registry/remocn/directional-wipe/index.tsx
index 39d4847f..9081c8fb 100644
--- a/registry/remocn/directional-wipe.tsx
+++ b/registry/remocn/directional-wipe/index.tsx
@@ -74,9 +74,7 @@ export function DirectionalWipe({
const toOffset = (1 - progress) * 100 * -sign;
const transformFor = (offset: number) =>
- axis === "x"
- ? `translateX(${offset}%)`
- : `translateY(${offset}%)`;
+ axis === "x" ? `translateX(${offset}%)` : `translateY(${offset}%)`;
const fromContent = from ?? <DefaultPanel label="Scene A" color="#0ea5e9" />;
const toContent = to ?? <DefaultPanel label="Scene B" color="#9333ea" />;
diff --git a/registry/remocn/drag-and-drop-flow/config.ts b/registry/remocn/drag-and-drop-flow/config.ts
new file mode 100644
index 00000000..6268b8ad
--- /dev/null
+++ b/registry/remocn/drag-and-drop-flow/config.ts
@@ -0,0 +1,20 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const dragAndDropFlowConfig: ComponentConfig = {
+ componentName: "DragAndDropFlow",
+ importPath: "@/components/remocn/drag-and-drop-flow",
+ controls: {
+ accent: { type: "color", default: "#0ea5e9", label: "Accent" },
+ dropzoneLabel: {
+ type: "text",
+ default: "Drop file to upload",
+ label: "Dropzone label",
+ },
+ fileName: { type: "text", default: "design.fig", label: "File name" },
+ background: { type: "color", default: "#fafafa", label: "Background" },
+ },
+ durationInFrames: 150,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/drag-and-drop-flow.tsx b/registry/remocn/drag-and-drop-flow/index.tsx
similarity index 89%
rename from registry/remocn/drag-and-drop-flow.tsx
rename to registry/remocn/drag-and-drop-flow/index.tsx
index d943f0c4..2208a716 100644
--- a/registry/remocn/drag-and-drop-flow.tsx
+++ b/registry/remocn/drag-and-drop-flow/index.tsx
@@ -26,10 +26,39 @@ function FileIcon({ color }: { color: string }) {
stroke={color}
strokeWidth="2"
/>
- <path d="M28 0v8a4 4 0 004 4h8" stroke={color} strokeWidth="2" fill="none" />
- <rect x="12" y="22" width="20" height="2" rx="1" fill={color} opacity="0.5" />
- <rect x="12" y="28" width="16" height="2" rx="1" fill={color} opacity="0.5" />
- <rect x="12" y="34" width="18" height="2" rx="1" fill={color} opacity="0.5" />
+ <path
+ d="M28 0v8a4 4 0 004 4h8"
+ stroke={color}
+ strokeWidth="2"
+ fill="none"
+ />
+ <rect
+ x="12"
+ y="22"
+ width="20"
+ height="2"
+ rx="1"
+ fill={color}
+ opacity="0.5"
+ />
+ <rect
+ x="12"
+ y="28"
+ width="16"
+ height="2"
+ rx="1"
+ fill={color}
+ opacity="0.5"
+ />
+ <rect
+ x="12"
+ y="34"
+ width="18"
+ height="2"
+ rx="1"
+ fill={color}
+ opacity="0.5"
+ />
</svg>
);
}
diff --git a/registry/remocn/dynamic-grid/config.ts b/registry/remocn/dynamic-grid/config.ts
new file mode 100644
index 00000000..b935176d
--- /dev/null
+++ b/registry/remocn/dynamic-grid/config.ts
@@ -0,0 +1,36 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const dynamicGridConfig: ComponentConfig = {
+ componentName: "DynamicGrid",
+ importPath: "@/components/remocn/dynamic-grid",
+ controls: {
+ cellSize: {
+ type: "number",
+ default: 40,
+ min: 8,
+ max: 160,
+ step: 4,
+ label: "Cell size",
+ },
+ lineColor: { type: "color", default: "#27272a", label: "Line color" },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ speed: {
+ type: "number",
+ default: 0.5,
+ min: 0,
+ max: 4,
+ step: 0.1,
+ label: "Speed",
+ },
+ direction: {
+ type: "select",
+ default: "diagonal",
+ options: ["diagonal", "horizontal", "vertical"],
+ label: "Direction",
+ },
+ },
+ durationInFrames: 150,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/dynamic-grid.tsx b/registry/remocn/dynamic-grid/index.tsx
similarity index 100%
rename from registry/remocn/dynamic-grid.tsx
rename to registry/remocn/dynamic-grid/index.tsx
diff --git a/registry/remocn/glass-code-block/config.ts b/registry/remocn/glass-code-block/config.ts
new file mode 100644
index 00000000..8bd797d0
--- /dev/null
+++ b/registry/remocn/glass-code-block/config.ts
@@ -0,0 +1,56 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const glassCodeBlockConfig: ComponentConfig = {
+ componentName: "GlassCodeBlock",
+ importPath: "@/components/remocn/glass-code-block",
+ controls: {
+ title: { type: "text", default: "hero.tsx", label: "Title" },
+ width: {
+ type: "number",
+ default: 760,
+ min: 300,
+ max: 1100,
+ step: 10,
+ label: "Width",
+ },
+ height: {
+ type: "number",
+ default: 460,
+ min: 200,
+ max: 700,
+ step: 10,
+ label: "Height",
+ },
+ fontSize: {
+ type: "number",
+ default: 16,
+ min: 10,
+ max: 28,
+ step: 1,
+ label: "Font size",
+ },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ glassColor: {
+ type: "text",
+ default: "rgba(10, 10, 10, 0.6)",
+ label: "Glass color",
+ },
+ staggerFrames: {
+ type: "number",
+ default: 4,
+ min: 0,
+ max: 30,
+ step: 1,
+ label: "Stagger frames",
+ },
+ showTrafficLights: {
+ type: "boolean",
+ default: true,
+ label: "Traffic lights",
+ },
+ },
+ durationInFrames: 180,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/glass-code-block.tsx b/registry/remocn/glass-code-block/index.tsx
similarity index 98%
rename from registry/remocn/glass-code-block.tsx
rename to registry/remocn/glass-code-block/index.tsx
index 177acc29..267904ad 100644
--- a/registry/remocn/glass-code-block.tsx
+++ b/registry/remocn/glass-code-block/index.tsx
@@ -53,7 +53,10 @@ const KEYWORDS = new Set([
"undefined",
]);
-type Token = { text: string; kind: "code" | "comment" | "string" | "keyword" | "number" };
+type Token = {
+ text: string;
+ kind: "code" | "comment" | "string" | "keyword" | "number";
+};
function tokenizeLine(line: string): Token[] {
// Whole-line comment.
diff --git a/registry/remocn/infinite-marquee/config.ts b/registry/remocn/infinite-marquee/config.ts
new file mode 100644
index 00000000..1fda8707
--- /dev/null
+++ b/registry/remocn/infinite-marquee/config.ts
@@ -0,0 +1,45 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const infiniteMarqueeConfig: ComponentConfig = {
+ componentName: "InfiniteMarquee",
+ importPath: "@/components/remocn/infinite-marquee",
+ controls: {
+ text: { type: "text", default: "ship · build · animate · ", label: "Text" },
+ fontSize: {
+ type: "number",
+ default: 120,
+ min: 12,
+ max: 240,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "700",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ pixelsPerFrame: {
+ type: "number",
+ default: 4,
+ min: 1,
+ max: 30,
+ step: 1,
+ label: "Pixels / frame",
+ },
+ stroke: { type: "boolean", default: false, label: "Stroke" },
+ strokeColor: { type: "color", default: "#171717", label: "Stroke color" },
+ background: { type: "color", default: "#fafafa", label: "Background" },
+ },
+ durationInFrames: 180,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/infinite-marquee.tsx b/registry/remocn/infinite-marquee/index.tsx
similarity index 100%
rename from registry/remocn/infinite-marquee.tsx
rename to registry/remocn/infinite-marquee/index.tsx
diff --git a/registry/remocn/inline-highlight/config.ts b/registry/remocn/inline-highlight/config.ts
new file mode 100644
index 00000000..636c27fe
--- /dev/null
+++ b/registry/remocn/inline-highlight/config.ts
@@ -0,0 +1,41 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const inlineHighlightConfig: ComponentConfig = {
+ componentName: "InlineHighlight",
+ importPath: "@/components/remocn/inline-highlight",
+ controls: {
+ before: { type: "text", default: "Ship faster with ", label: "Before" },
+ highlight: { type: "text", default: "remocn", label: "Highlight" },
+ after: { type: "text", default: ".", label: "After" },
+ baseColor: { type: "color", default: "#171717", label: "Base color" },
+ highlightColor: {
+ type: "color",
+ default: "#ff5e3a",
+ label: "Highlight color",
+ },
+ fontSize: {
+ type: "number",
+ default: 72,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ fontWeight: {
+ type: "select",
+ default: "600",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/inline-highlight.tsx b/registry/remocn/inline-highlight/index.tsx
similarity index 93%
rename from registry/remocn/inline-highlight.tsx
rename to registry/remocn/inline-highlight/index.tsx
index 890cf8c0..81ac109a 100644
--- a/registry/remocn/inline-highlight.tsx
+++ b/registry/remocn/inline-highlight/index.tsx
@@ -40,7 +40,11 @@ export function InlineHighlight({
{ extrapolateLeft: "clamp", extrapolateRight: "clamp" },
);
- const color = interpolateColors(progress, [0, 1], [baseColor, highlightColor]);
+ const color = interpolateColors(
+ progress,
+ [0, 1],
+ [baseColor, highlightColor],
+ );
return (
<div
diff --git a/registry/remocn/marker-highlight/config.ts b/registry/remocn/marker-highlight/config.ts
new file mode 100644
index 00000000..bfc86382
--- /dev/null
+++ b/registry/remocn/marker-highlight/config.ts
@@ -0,0 +1,42 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const markerHighlightConfig: ComponentConfig = {
+ componentName: "MarkerHighlight",
+ importPath: "@/components/remocn/marker-highlight",
+ controls: {
+ before: { type: "text", default: "Made for ", label: "Before" },
+ highlight: { type: "text", default: "builders", label: "Highlight" },
+ after: { type: "text", default: ".", label: "After" },
+ markerColor: { type: "color", default: "#facc15", label: "Marker color" },
+ baseColor: { type: "color", default: "#171717", label: "Base color" },
+ highlightedTextColor: {
+ type: "color",
+ default: "#171717",
+ label: "Highlighted text color",
+ },
+ fontSize: {
+ type: "number",
+ default: 72,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ fontWeight: {
+ type: "select",
+ default: "600",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/marker-highlight.tsx b/registry/remocn/marker-highlight/index.tsx
similarity index 100%
rename from registry/remocn/marker-highlight.tsx
rename to registry/remocn/marker-highlight/index.tsx
diff --git a/registry/remocn/masked-slide-reveal/config.ts b/registry/remocn/masked-slide-reveal/config.ts
new file mode 100644
index 00000000..4859d30b
--- /dev/null
+++ b/registry/remocn/masked-slide-reveal/config.ts
@@ -0,0 +1,42 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const maskedSlideRevealConfig: ComponentConfig = {
+ componentName: "MaskedSlideReveal",
+ importPath: "@/components/remocn/masked-slide-reveal",
+ controls: {
+ text: { type: "text", default: "Reveal from the mask", label: "Text" },
+ staggerDelay: {
+ type: "number",
+ default: 3,
+ min: 0,
+ max: 30,
+ step: 1,
+ label: "Stagger delay",
+ },
+ fontSize: {
+ type: "number",
+ default: 72,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "700",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/masked-slide-reveal.tsx b/registry/remocn/masked-slide-reveal/index.tsx
similarity index 100%
rename from registry/remocn/masked-slide-reveal.tsx
rename to registry/remocn/masked-slide-reveal/index.tsx
diff --git a/registry/remocn/matrix-decode/config.ts b/registry/remocn/matrix-decode/config.ts
new file mode 100644
index 00000000..945b2226
--- /dev/null
+++ b/registry/remocn/matrix-decode/config.ts
@@ -0,0 +1,47 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const matrixDecodeConfig: ComponentConfig = {
+ componentName: "MatrixDecode",
+ importPath: "@/components/remocn/matrix-decode",
+ controls: {
+ text: { type: "text", default: "DECRYPTED", label: "Text" },
+ charset: {
+ type: "text",
+ default: "!@#$%^&*()_+-=<>?/\\|",
+ label: "Charset",
+ },
+ fontSize: {
+ type: "number",
+ default: 72,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#22c55e", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "600",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ revealDuration: {
+ type: "number",
+ default: 60,
+ min: 10,
+ max: 240,
+ step: 1,
+ label: "Reveal duration",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/matrix-decode.tsx b/registry/remocn/matrix-decode/index.tsx
similarity index 100%
rename from registry/remocn/matrix-decode.tsx
rename to registry/remocn/matrix-decode/index.tsx
diff --git a/registry/remocn/mesh-gradient-bg/config.ts b/registry/remocn/mesh-gradient-bg/config.ts
new file mode 100644
index 00000000..4833a90c
--- /dev/null
+++ b/registry/remocn/mesh-gradient-bg/config.ts
@@ -0,0 +1,29 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const meshGradientBgConfig: ComponentConfig = {
+ componentName: "MeshGradientBg",
+ importPath: "@/components/remocn/mesh-gradient-bg",
+ controls: {
+ speed: {
+ type: "number",
+ default: 1,
+ min: 0.1,
+ max: 4,
+ step: 0.1,
+ label: "Speed",
+ },
+ blur: {
+ type: "number",
+ default: 80,
+ min: 20,
+ max: 200,
+ step: 4,
+ label: "Blur",
+ },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ },
+ durationInFrames: 150,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/mesh-gradient-bg.tsx b/registry/remocn/mesh-gradient-bg/index.tsx
similarity index 100%
rename from registry/remocn/mesh-gradient-bg.tsx
rename to registry/remocn/mesh-gradient-bg/index.tsx
diff --git a/registry/remocn/morphing-modal/config.ts b/registry/remocn/morphing-modal/config.ts
new file mode 100644
index 00000000..01a924c2
--- /dev/null
+++ b/registry/remocn/morphing-modal/config.ts
@@ -0,0 +1,51 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const morphingModalConfig: ComponentConfig = {
+ componentName: "MorphingModal",
+ importPath: "@/components/remocn/morphing-modal",
+ controls: {
+ morphAt: {
+ type: "number",
+ default: 30,
+ min: 0,
+ max: 240,
+ step: 1,
+ label: "Morph at (frame)",
+ },
+ borderRadiusFrom: {
+ type: "number",
+ default: 24,
+ min: 0,
+ max: 80,
+ step: 1,
+ label: "Radius from",
+ },
+ borderRadiusTo: {
+ type: "number",
+ default: 0,
+ min: 0,
+ max: 80,
+ step: 1,
+ label: "Radius to",
+ },
+ sourceTitle: {
+ type: "text",
+ default: "Compose video",
+ label: "Source title",
+ },
+ sourceBody: {
+ type: "text",
+ default: "Click to start a new project",
+ label: "Source body",
+ },
+ modalTitle: { type: "text", default: "New project", label: "Modal title" },
+ background: { type: "color", default: "#050505", label: "Background" },
+ cardColor: { type: "color", default: "#0a0a0a", label: "Card color" },
+ textColor: { type: "color", default: "#fafafa", label: "Text color" },
+ mutedColor: { type: "color", default: "#71717a", label: "Muted color" },
+ },
+ durationInFrames: 180,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/morphing-modal.tsx b/registry/remocn/morphing-modal/index.tsx
similarity index 98%
rename from registry/remocn/morphing-modal.tsx
rename to registry/remocn/morphing-modal/index.tsx
index d725c0c5..e17d963a 100644
--- a/registry/remocn/morphing-modal.tsx
+++ b/registry/remocn/morphing-modal/index.tsx
@@ -170,7 +170,9 @@ export function MorphingModal({
>
{sourceTitle}
</div>
- <div style={{ fontSize: 14, color: mutedColor }}>{sourceBody}</div>
+ <div style={{ fontSize: 14, color: mutedColor }}>
+ {sourceBody}
+ </div>
</>
)}
</div>
diff --git a/registry/remocn/perspective-marquee/config.ts b/registry/remocn/perspective-marquee/config.ts
new file mode 100644
index 00000000..58d190c9
--- /dev/null
+++ b/registry/remocn/perspective-marquee/config.ts
@@ -0,0 +1,67 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const perspectiveMarqueeConfig: ComponentConfig = {
+ componentName: "PerspectiveMarquee",
+ importPath: "@/components/remocn/perspective-marquee",
+ controls: {
+ fontSize: {
+ type: "number",
+ default: 84,
+ min: 24,
+ max: 200,
+ step: 2,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#fafafa", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "700",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ pixelsPerFrame: {
+ type: "number",
+ default: 2,
+ min: 0.25,
+ max: 10,
+ step: 0.25,
+ label: "Pixels / frame",
+ },
+ rotateY: {
+ type: "number",
+ default: -28,
+ min: -60,
+ max: 60,
+ step: 1,
+ label: "Rotate Y (deg)",
+ },
+ rotateX: {
+ type: "number",
+ default: 8,
+ min: -30,
+ max: 30,
+ step: 1,
+ label: "Rotate X (deg)",
+ },
+ perspective: {
+ type: "number",
+ default: 1200,
+ min: 400,
+ max: 3000,
+ step: 50,
+ label: "Perspective",
+ },
+ fadeColor: { type: "color", default: "#050505", label: "Fade color" },
+ background: { type: "color", default: "#050505", label: "Background" },
+ },
+ durationInFrames: 240,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/perspective-marquee.tsx b/registry/remocn/perspective-marquee/index.tsx
similarity index 100%
rename from registry/remocn/perspective-marquee.tsx
rename to registry/remocn/perspective-marquee/index.tsx
diff --git a/registry/remocn/progress-steps/config.ts b/registry/remocn/progress-steps/config.ts
new file mode 100644
index 00000000..b8662d29
--- /dev/null
+++ b/registry/remocn/progress-steps/config.ts
@@ -0,0 +1,34 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const progressStepsConfig: ComponentConfig = {
+ componentName: "ProgressSteps",
+ importPath: "@/components/remocn/progress-steps",
+ controls: {
+ orientation: {
+ type: "select",
+ default: "horizontal",
+ options: ["horizontal", "vertical"],
+ label: "Orientation",
+ },
+ activeColor: { type: "color", default: "#22c55e", label: "Active color" },
+ inactiveColor: {
+ type: "color",
+ default: "#27272a",
+ label: "Inactive color",
+ },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ textColor: { type: "color", default: "#ffffff", label: "Text color" },
+ stepDuration: {
+ type: "number",
+ default: 30,
+ min: 4,
+ max: 120,
+ step: 1,
+ label: "Step duration",
+ },
+ },
+ durationInFrames: 150,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/progress-steps.tsx b/registry/remocn/progress-steps/index.tsx
similarity index 98%
rename from registry/remocn/progress-steps.tsx
rename to registry/remocn/progress-steps/index.tsx
index 0584b0c9..7c4d8b1b 100644
--- a/registry/remocn/progress-steps.tsx
+++ b/registry/remocn/progress-steps/index.tsx
@@ -69,9 +69,7 @@ export function ProgressSteps({
position: "absolute",
left: isHorizontal ? nodeRadius : "50%",
top: isHorizontal ? "50%" : nodeRadius,
- transform: isHorizontal
- ? "translateY(-50%)"
- : "translateX(-50%)",
+ transform: isHorizontal ? "translateY(-50%)" : "translateX(-50%)",
overflow: "visible",
pointerEvents: "none",
}}
diff --git a/registry/remocn/pulsing-indicator/config.ts b/registry/remocn/pulsing-indicator/config.ts
new file mode 100644
index 00000000..d907d63e
--- /dev/null
+++ b/registry/remocn/pulsing-indicator/config.ts
@@ -0,0 +1,30 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const pulsingIndicatorConfig: ComponentConfig = {
+ componentName: "PulsingIndicator",
+ importPath: "@/components/remocn/pulsing-indicator",
+ controls: {
+ color: { type: "color", default: "#22c55e", label: "Color" },
+ size: {
+ type: "number",
+ default: 32,
+ min: 8,
+ max: 120,
+ step: 1,
+ label: "Size",
+ },
+ period: {
+ type: "number",
+ default: 8,
+ min: 1,
+ max: 30,
+ step: 0.5,
+ label: "Period (frames)",
+ },
+ background: { type: "color", default: "#ffffff", label: "Background" },
+ },
+ durationInFrames: 120,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/pulsing-indicator.tsx b/registry/remocn/pulsing-indicator/index.tsx
similarity index 100%
rename from registry/remocn/pulsing-indicator.tsx
rename to registry/remocn/pulsing-indicator/index.tsx
diff --git a/registry/remocn/rgb-glitch-text/config.ts b/registry/remocn/rgb-glitch-text/config.ts
new file mode 100644
index 00000000..c1f11a32
--- /dev/null
+++ b/registry/remocn/rgb-glitch-text/config.ts
@@ -0,0 +1,59 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const rgbGlitchTextConfig: ComponentConfig = {
+ componentName: "RGBGlitchText",
+ importPath: "@/components/remocn/rgb-glitch-text",
+ controls: {
+ text: { type: "text", default: "GLITCH", label: "Text" },
+ fontSize: {
+ type: "number",
+ default: 96,
+ min: 12,
+ max: 200,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "700",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ glitchAt: {
+ type: "number",
+ default: 20,
+ min: 0,
+ max: 120,
+ step: 1,
+ label: "Glitch at (frame)",
+ },
+ glitchDuration: {
+ type: "number",
+ default: 8,
+ min: 1,
+ max: 60,
+ step: 1,
+ label: "Glitch duration",
+ },
+ intensity: {
+ type: "number",
+ default: 6,
+ min: 0,
+ max: 30,
+ step: 1,
+ label: "Intensity (px)",
+ },
+ seed: { type: "text", default: "glitch", label: "Seed" },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/rgb-glitch-text.tsx b/registry/remocn/rgb-glitch-text/index.tsx
similarity index 100%
rename from registry/remocn/rgb-glitch-text.tsx
rename to registry/remocn/rgb-glitch-text/index.tsx
diff --git a/registry/remocn/shimmer-sweep/config.ts b/registry/remocn/shimmer-sweep/config.ts
new file mode 100644
index 00000000..19fd3940
--- /dev/null
+++ b/registry/remocn/shimmer-sweep/config.ts
@@ -0,0 +1,35 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const shimmerSweepConfig: ComponentConfig = {
+ componentName: "ShimmerSweep",
+ importPath: "@/components/remocn/shimmer-sweep",
+ controls: {
+ text: { type: "text", default: "Generating", label: "Text" },
+ baseColor: { type: "color", default: "#3f3f46", label: "Base color" },
+ shineColor: { type: "color", default: "#fafafa", label: "Shine color" },
+ fontSize: {
+ type: "number",
+ default: 96,
+ min: 12,
+ max: 200,
+ step: 1,
+ label: "Font size",
+ },
+ fontWeight: {
+ type: "select",
+ default: "700",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 120,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/shimmer-sweep.tsx b/registry/remocn/shimmer-sweep/index.tsx
similarity index 100%
rename from registry/remocn/shimmer-sweep.tsx
rename to registry/remocn/shimmer-sweep/index.tsx
diff --git a/registry/remocn/simulated-cursor/config.ts b/registry/remocn/simulated-cursor/config.ts
new file mode 100644
index 00000000..913235f7
--- /dev/null
+++ b/registry/remocn/simulated-cursor/config.ts
@@ -0,0 +1,22 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const simulatedCursorConfig: ComponentConfig = {
+ componentName: "SimulatedCursor",
+ importPath: "@/components/remocn/simulated-cursor",
+ controls: {
+ color: { type: "color", default: "#ffffff", label: "Color" },
+ size: {
+ type: "number",
+ default: 32,
+ min: 12,
+ max: 96,
+ step: 1,
+ label: "Size",
+ },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ },
+ durationInFrames: 150,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/simulated-cursor.tsx b/registry/remocn/simulated-cursor/index.tsx
similarity index 100%
rename from registry/remocn/simulated-cursor.tsx
rename to registry/remocn/simulated-cursor/index.tsx
diff --git a/registry/remocn/slot-machine-roll/config.ts b/registry/remocn/slot-machine-roll/config.ts
new file mode 100644
index 00000000..7109c9db
--- /dev/null
+++ b/registry/remocn/slot-machine-roll/config.ts
@@ -0,0 +1,35 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const slotMachineRollConfig: ComponentConfig = {
+ componentName: "SlotMachineRoll",
+ importPath: "@/components/remocn/slot-machine-roll",
+ controls: {
+ from: { type: "text", default: "$99", label: "From" },
+ to: { type: "text", default: "$199", label: "To" },
+ fontSize: {
+ type: "number",
+ default: 120,
+ min: 12,
+ max: 240,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "700",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/slot-machine-roll.tsx b/registry/remocn/slot-machine-roll/index.tsx
similarity index 100%
rename from registry/remocn/slot-machine-roll.tsx
rename to registry/remocn/slot-machine-roll/index.tsx
diff --git a/registry/remocn/spotlight-card/config.ts b/registry/remocn/spotlight-card/config.ts
new file mode 100644
index 00000000..b64a0a8d
--- /dev/null
+++ b/registry/remocn/spotlight-card/config.ts
@@ -0,0 +1,55 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const spotlightCardConfig: ComponentConfig = {
+ componentName: "SpotlightCard",
+ importPath: "@/components/remocn/spotlight-card",
+ controls: {
+ title: { type: "text", default: "Spotlight Card", label: "Title" },
+ body: {
+ type: "text",
+ default:
+ "Soft radial light follows the cursor, picking out the microborder.",
+ label: "Body",
+ },
+ cardWidth: {
+ type: "number",
+ default: 520,
+ min: 200,
+ max: 900,
+ step: 10,
+ label: "Card width",
+ },
+ cardHeight: {
+ type: "number",
+ default: 320,
+ min: 160,
+ max: 700,
+ step: 10,
+ label: "Card height",
+ },
+ glowSize: {
+ type: "number",
+ default: 600,
+ min: 100,
+ max: 1400,
+ step: 20,
+ label: "Glow size",
+ },
+ glowOpacity: {
+ type: "number",
+ default: 0.08,
+ min: 0,
+ max: 0.4,
+ step: 0.01,
+ label: "Glow opacity",
+ },
+ background: { type: "color", default: "#050505", label: "Background" },
+ cardColor: { type: "color", default: "#0a0a0a", label: "Card color" },
+ textColor: { type: "color", default: "#fafafa", label: "Text color" },
+ mutedColor: { type: "color", default: "#71717a", label: "Muted color" },
+ },
+ durationInFrames: 240,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/spotlight-card.tsx b/registry/remocn/spotlight-card/index.tsx
similarity index 100%
rename from registry/remocn/spotlight-card.tsx
rename to registry/remocn/spotlight-card/index.tsx
diff --git a/registry/remocn/spring-pop-in/config.ts b/registry/remocn/spring-pop-in/config.ts
new file mode 100644
index 00000000..603f0d39
--- /dev/null
+++ b/registry/remocn/spring-pop-in/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const springPopInConfig: ComponentConfig = {
+ componentName: "SpringPopIn",
+ importPath: "@/components/remocn/spring-pop-in",
+ controls: {
+ damping: {
+ type: "number",
+ default: 12,
+ min: 1,
+ max: 40,
+ step: 1,
+ label: "Damping",
+ },
+ mass: {
+ type: "number",
+ default: 1,
+ min: 0.1,
+ max: 5,
+ step: 0.1,
+ label: "Mass",
+ },
+ stiffness: {
+ type: "number",
+ default: 100,
+ min: 10,
+ max: 400,
+ step: 5,
+ label: "Stiffness",
+ },
+ delayInFrames: {
+ type: "number",
+ default: 0,
+ min: 0,
+ max: 60,
+ step: 1,
+ label: "Delay (frames)",
+ },
+ },
+ durationInFrames: 60,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/spring-pop-in.tsx b/registry/remocn/spring-pop-in/index.tsx
similarity index 100%
rename from registry/remocn/spring-pop-in.tsx
rename to registry/remocn/spring-pop-in/index.tsx
diff --git a/registry/remocn/staggered-bento-grid/config.ts b/registry/remocn/staggered-bento-grid/config.ts
new file mode 100644
index 00000000..56ed5d66
--- /dev/null
+++ b/registry/remocn/staggered-bento-grid/config.ts
@@ -0,0 +1,31 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const staggeredBentoGridConfig: ComponentConfig = {
+ componentName: "StaggeredBentoGrid",
+ importPath: "@/components/remocn/staggered-bento-grid",
+ controls: {
+ staggerDelay: {
+ type: "number",
+ default: 8,
+ min: 1,
+ max: 30,
+ step: 1,
+ label: "Stagger delay",
+ },
+ columns: {
+ type: "number",
+ default: 3,
+ min: 2,
+ max: 5,
+ step: 1,
+ label: "Columns",
+ },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ cardColor: { type: "color", default: "#1a1a1a", label: "Card color" },
+ textColor: { type: "color", default: "#ffffff", label: "Text color" },
+ },
+ durationInFrames: 120,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/staggered-bento-grid.tsx b/registry/remocn/staggered-bento-grid/index.tsx
similarity index 97%
rename from registry/remocn/staggered-bento-grid.tsx
rename to registry/remocn/staggered-bento-grid/index.tsx
index 59e0e588..1c94ecca 100644
--- a/registry/remocn/staggered-bento-grid.tsx
+++ b/registry/remocn/staggered-bento-grid/index.tsx
@@ -1,11 +1,6 @@
"use client";
-import {
- Sequence,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
+import { Sequence, spring, useCurrentFrame, useVideoConfig } from "remotion";
export interface BentoItem {
title: string;
diff --git a/registry/remocn/staggered-fade-up/config.ts b/registry/remocn/staggered-fade-up/config.ts
new file mode 100644
index 00000000..6ca0454a
--- /dev/null
+++ b/registry/remocn/staggered-fade-up/config.ts
@@ -0,0 +1,50 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const staggeredFadeUpConfig: ComponentConfig = {
+ componentName: "StaggeredFadeUp",
+ importPath: "@/components/remocn/staggered-fade-up",
+ controls: {
+ text: { type: "text", default: "Ship faster with remocn", label: "Text" },
+ staggerDelay: {
+ type: "number",
+ default: 4,
+ min: 0,
+ max: 30,
+ step: 1,
+ label: "Stagger delay",
+ },
+ distance: {
+ type: "number",
+ default: 20,
+ min: 0,
+ max: 120,
+ step: 1,
+ label: "Distance",
+ },
+ fontSize: {
+ type: "number",
+ default: 72,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "600",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/staggered-fade-up.tsx b/registry/remocn/staggered-fade-up/index.tsx
similarity index 100%
rename from registry/remocn/staggered-fade-up.tsx
rename to registry/remocn/staggered-fade-up/index.tsx
diff --git a/registry/remocn/strikethrough-replace/config.ts b/registry/remocn/strikethrough-replace/config.ts
new file mode 100644
index 00000000..04110270
--- /dev/null
+++ b/registry/remocn/strikethrough-replace/config.ts
@@ -0,0 +1,36 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const strikethroughReplaceConfig: ComponentConfig = {
+ componentName: "StrikethroughReplace",
+ importPath: "@/components/remocn/strikethrough-replace",
+ controls: {
+ from: { type: "text", default: "$49/mo", label: "From" },
+ to: { type: "text", default: "Free", label: "To" },
+ lineColor: { type: "color", default: "#ff5e3a", label: "Line color" },
+ fontSize: {
+ type: "number",
+ default: 96,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "700",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 120,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/strikethrough-replace.tsx b/registry/remocn/strikethrough-replace/index.tsx
similarity index 100%
rename from registry/remocn/strikethrough-replace.tsx
rename to registry/remocn/strikethrough-replace/index.tsx
diff --git a/registry/remocn/success-confetti/config.ts b/registry/remocn/success-confetti/config.ts
new file mode 100644
index 00000000..c1d51a08
--- /dev/null
+++ b/registry/remocn/success-confetti/config.ts
@@ -0,0 +1,56 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const successConfettiConfig: ComponentConfig = {
+ componentName: "SuccessConfetti",
+ importPath: "@/components/remocn/success-confetti",
+ controls: {
+ count: {
+ type: "number",
+ default: 60,
+ min: 10,
+ max: 200,
+ step: 5,
+ label: "Particle count",
+ },
+ originX: {
+ type: "number",
+ default: 0.5,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Origin X",
+ },
+ originY: {
+ type: "number",
+ default: 0.5,
+ min: 0,
+ max: 1,
+ step: 0.05,
+ label: "Origin Y",
+ },
+ gravity: {
+ type: "number",
+ default: 0.4,
+ min: 0,
+ max: 2,
+ step: 0.05,
+ label: "Gravity",
+ },
+ velocity: {
+ type: "number",
+ default: 12,
+ min: 1,
+ max: 40,
+ step: 0.5,
+ label: "Velocity",
+ },
+ text: { type: "text", default: "Merged!", label: "Text" },
+ textColor: { type: "color", default: "#171717", label: "Text color" },
+ background: { type: "color", default: "#fafafa", label: "Background" },
+ seed: { type: "text", default: "remocn", label: "Seed" },
+ },
+ durationInFrames: 120,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/success-confetti.tsx b/registry/remocn/success-confetti/index.tsx
similarity index 94%
rename from registry/remocn/success-confetti.tsx
rename to registry/remocn/success-confetti/index.tsx
index 010081a2..e1ec6332 100644
--- a/registry/remocn/success-confetti.tsx
+++ b/registry/remocn/success-confetti/index.tsx
@@ -64,12 +64,9 @@ export function SuccessConfetti({
const particles = Array.from({ length: count }, (_, i) => {
const seedKey = `${seed}:${i}`;
- const angle =
- random(`${seedKey}:angle`) * Math.PI * 2; // 0..2pi for full burst
+ const angle = random(`${seedKey}:angle`) * Math.PI * 2; // 0..2pi for full burst
const speed = velocity * (0.6 + random(`${seedKey}:speed`) * 0.8);
- const colorIndex = Math.floor(
- random(`${seedKey}:color`) * colors.length,
- );
+ const colorIndex = Math.floor(random(`${seedKey}:color`) * colors.length);
const color = colors[colorIndex] ?? colors[0];
const size = 6 + random(`${seedKey}:size`) * 8;
const rotationSpeed = (random(`${seedKey}:rot`) - 0.5) * 16;
@@ -79,8 +76,7 @@ export function SuccessConfetti({
const f = Math.max(0, frame - lifeOffset);
const x = cx + Math.cos(angle) * speed * f;
- const y =
- cy + Math.sin(angle) * speed * f + 0.5 * gravity * f * f;
+ const y = cy + Math.sin(angle) * speed * f + 0.5 * gravity * f * f;
const rotation = initialRotation + rotationSpeed * f;
const opacity = interpolate(
diff --git a/registry/remocn/terminal-simulator/config.ts b/registry/remocn/terminal-simulator/config.ts
new file mode 100644
index 00000000..04fa51ea
--- /dev/null
+++ b/registry/remocn/terminal-simulator/config.ts
@@ -0,0 +1,40 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const terminalSimulatorConfig: ComponentConfig = {
+ componentName: "TerminalSimulator",
+ importPath: "@/components/remocn/terminal-simulator",
+ controls: {
+ prompt: { type: "text", default: "$", label: "Prompt" },
+ title: { type: "text", default: "~/projects/remocn", label: "Title" },
+ background: { type: "color", default: "#0a0a0a", label: "Background" },
+ chromeColor: { type: "color", default: "#1a1a1a", label: "Chrome color" },
+ fontSize: {
+ type: "number",
+ default: 18,
+ min: 10,
+ max: 32,
+ step: 1,
+ label: "Font size",
+ },
+ charsPerFrame: {
+ type: "number",
+ default: 1,
+ min: 0.25,
+ max: 6,
+ step: 0.25,
+ label: "Chars / frame",
+ },
+ chunkSize: {
+ type: "number",
+ default: 4,
+ min: 1,
+ max: 20,
+ step: 1,
+ label: "Chunk size",
+ },
+ },
+ durationInFrames: 240,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/terminal-simulator.tsx b/registry/remocn/terminal-simulator/index.tsx
similarity index 95%
rename from registry/remocn/terminal-simulator.tsx
rename to registry/remocn/terminal-simulator/index.tsx
index 7b249bb0..920ca925 100644
--- a/registry/remocn/terminal-simulator.tsx
+++ b/registry/remocn/terminal-simulator/index.tsx
@@ -1,6 +1,11 @@
"use client";
-import { Sequence, interpolate, useCurrentFrame, useVideoConfig } from "remotion";
+import {
+ Sequence,
+ interpolate,
+ useCurrentFrame,
+ useVideoConfig,
+} from "remotion";
export type TerminalLineType = "command" | "log" | "success" | "error";
@@ -89,7 +94,9 @@ export function TerminalSimulator({
acc += delay;
starts.push(acc);
// Approximate typing duration (in frames) for chunked output.
- const typingFrames = Math.ceil(lines[i].text.length / (chunkSize * charsPerFrame));
+ const typingFrames = Math.ceil(
+ lines[i].text.length / (chunkSize * charsPerFrame),
+ );
acc += typingFrames + autoPause(lines[i]);
}
@@ -240,12 +247,10 @@ function TerminalLineRow({
// nearest multiple of `chunkSize`. This is what gives the bursty terminal
// feel — text doesn't drip, it lurches.
const linearRevealed = Math.floor(
- interpolate(
- localFrame,
- [0, totalChars / charsPerFrame],
- [0, totalChars],
- { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
- ),
+ interpolate(localFrame, [0, totalChars / charsPerFrame], [0, totalChars], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ }),
);
const revealed = Math.min(
totalChars,
diff --git a/registry/remocn/text-fade-replace/config.ts b/registry/remocn/text-fade-replace/config.ts
new file mode 100644
index 00000000..6c0ad4d4
--- /dev/null
+++ b/registry/remocn/text-fade-replace/config.ts
@@ -0,0 +1,35 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const textFadeReplaceConfig: ComponentConfig = {
+ componentName: "TextFadeReplace",
+ importPath: "@/components/remocn/text-fade-replace",
+ controls: {
+ from: { type: "text", default: "Loading...", label: "From" },
+ to: { type: "text", default: "Ready!", label: "To" },
+ fontSize: {
+ type: "number",
+ default: 72,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "600",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/text-fade-replace.tsx b/registry/remocn/text-fade-replace/index.tsx
similarity index 100%
rename from registry/remocn/text-fade-replace.tsx
rename to registry/remocn/text-fade-replace/index.tsx
diff --git a/registry/remocn/toast-notification/config.ts b/registry/remocn/toast-notification/config.ts
new file mode 100644
index 00000000..db0bf48f
--- /dev/null
+++ b/registry/remocn/toast-notification/config.ts
@@ -0,0 +1,28 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const toastNotificationConfig: ComponentConfig = {
+ componentName: "ToastNotification",
+ importPath: "@/components/remocn/toast-notification",
+ controls: {
+ title: { type: "text", default: "Deployment successful", label: "Title" },
+ message: {
+ type: "text",
+ default: "Your changes are live at remocn.dev",
+ label: "Message",
+ },
+ variant: {
+ type: "select",
+ default: "success",
+ options: ["success", "error", "info", "warning"],
+ label: "Variant",
+ },
+ background: { type: "color", default: "#fafafa", label: "Background" },
+ cardColor: { type: "color", default: "#ffffff", label: "Card color" },
+ textColor: { type: "color", default: "#171717", label: "Text color" },
+ mutedColor: { type: "color", default: "#71717a", label: "Muted color" },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/toast-notification.tsx b/registry/remocn/toast-notification/index.tsx
similarity index 94%
rename from registry/remocn/toast-notification.tsx
rename to registry/remocn/toast-notification/index.tsx
index e87caa56..5ab8870b 100644
--- a/registry/remocn/toast-notification.tsx
+++ b/registry/remocn/toast-notification/index.tsx
@@ -1,11 +1,6 @@
"use client";
-import {
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
+import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
export type ToastVariant = "success" | "error" | "info" | "warning";
@@ -28,7 +23,13 @@ const VARIANT_COLORS: Record<ToastVariant, string> = {
warning: "#f59e0b",
};
-function VariantIcon({ variant, color }: { variant: ToastVariant; color: string }) {
+function VariantIcon({
+ variant,
+ color,
+}: {
+ variant: ToastVariant;
+ color: string;
+}) {
const common = {
width: 22,
height: 22,
@@ -146,8 +147,7 @@ export function ToastNotification({
maxWidth: 420,
background: cardColor,
borderRadius: 14,
- boxShadow:
- "0 10px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06)",
+ boxShadow: "0 10px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06)",
border: "1px solid rgba(0,0,0,0.06)",
}}
>
diff --git a/registry/remocn/tracking-in/config.ts b/registry/remocn/tracking-in/config.ts
new file mode 100644
index 00000000..db161726
--- /dev/null
+++ b/registry/remocn/tracking-in/config.ts
@@ -0,0 +1,50 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const trackingInConfig: ComponentConfig = {
+ componentName: "TrackingIn",
+ importPath: "@/components/remocn/tracking-in",
+ controls: {
+ text: { type: "text", default: "tracking in", label: "Text" },
+ startTracking: {
+ type: "number",
+ default: 0.5,
+ min: 0,
+ max: 2,
+ step: 0.05,
+ label: "Start tracking (em)",
+ },
+ startBlur: {
+ type: "number",
+ default: 12,
+ min: 0,
+ max: 40,
+ step: 1,
+ label: "Start blur",
+ },
+ fontSize: {
+ type: "number",
+ default: 96,
+ min: 12,
+ max: 200,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "700",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 90,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/tracking-in.tsx b/registry/remocn/tracking-in/index.tsx
similarity index 88%
rename from registry/remocn/tracking-in.tsx
rename to registry/remocn/tracking-in/index.tsx
index 9f94fa38..3a558c86 100644
--- a/registry/remocn/tracking-in.tsx
+++ b/registry/remocn/tracking-in/index.tsx
@@ -1,11 +1,6 @@
"use client";
-import {
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
+import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
export interface TrackingInProps {
text: string;
@@ -37,8 +32,7 @@ export function TrackingIn({
config: { damping: 18, stiffness: 90 },
});
- const letterSpacing =
- interpolate(t, [0, 1], [startTracking, -0.03]) + "em";
+ const letterSpacing = interpolate(t, [0, 1], [startTracking, -0.03]) + "em";
const blurAmount = interpolate(t, [0, 1], [startBlur, 0]);
const opacity = interpolate(frame, [0, 15], [0, 1], {
extrapolateLeft: "clamp",
diff --git a/registry/remocn/typewriter/config.ts b/registry/remocn/typewriter/config.ts
new file mode 100644
index 00000000..1f34bd1d
--- /dev/null
+++ b/registry/remocn/typewriter/config.ts
@@ -0,0 +1,48 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const typewriterConfig: ComponentConfig = {
+ componentName: "Typewriter",
+ importPath: "@/components/remocn/typewriter",
+ controls: {
+ text: {
+ type: "text",
+ default: "console.log('hello, world')",
+ label: "Text",
+ },
+ cursor: { type: "boolean", default: true, label: "Show cursor" },
+ charsPerSecond: {
+ type: "number",
+ default: 20,
+ min: 4,
+ max: 60,
+ step: 1,
+ label: "Chars / sec",
+ },
+ fontSize: {
+ type: "number",
+ default: 72,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ cursorColor: { type: "color", default: "#171717", label: "Cursor color" },
+ fontWeight: {
+ type: "select",
+ default: "600",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 120,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/typewriter.tsx b/registry/remocn/typewriter/index.tsx
similarity index 100%
rename from registry/remocn/typewriter.tsx
rename to registry/remocn/typewriter/index.tsx
diff --git a/registry/remocn/volumetric-rays.tsx b/registry/remocn/volumetric-rays/index.tsx
similarity index 100%
rename from registry/remocn/volumetric-rays.tsx
rename to registry/remocn/volumetric-rays/index.tsx
diff --git a/registry/remocn/zoom-through-transition/config.ts b/registry/remocn/zoom-through-transition/config.ts
new file mode 100644
index 00000000..4b81ced9
--- /dev/null
+++ b/registry/remocn/zoom-through-transition/config.ts
@@ -0,0 +1,21 @@
+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
+
+export const zoomThroughTransitionConfig: ComponentConfig = {
+ componentName: "ZoomThroughTransition",
+ importPath: "@/components/remocn/zoom-through-transition",
+ controls: {
+ targetScale: {
+ type: "number",
+ default: 20,
+ min: 2,
+ max: 60,
+ step: 1,
+ label: "Target scale",
+ },
+ background: { type: "color", default: "#ffffff", label: "Background" },
+ },
+ durationInFrames: 60,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+};
diff --git a/registry/remocn/zoom-through-transition.tsx b/registry/remocn/zoom-through-transition/index.tsx
similarity index 91%
rename from registry/remocn/zoom-through-transition.tsx
rename to registry/remocn/zoom-through-transition/index.tsx
index 9816f748..06338431 100644
--- a/registry/remocn/zoom-through-transition.tsx
+++ b/registry/remocn/zoom-through-transition/index.tsx
@@ -50,15 +50,10 @@ export function ZoomThroughTransition({
const frame = useCurrentFrame() * speed;
const { durationInFrames } = useVideoConfig();
- const scale = interpolate(
- frame,
- [0, durationInFrames],
- [1, targetScale],
- {
- extrapolateRight: "clamp",
- easing: Easing.bezier(0.7, 0, 0.84, 0),
- },
- );
+ const scale = interpolate(frame, [0, durationInFrames], [1, targetScale], {
+ extrapolateRight: "clamp",
+ easing: Easing.bezier(0.7, 0, 0.84, 0),
+ });
const opacity = interpolate(
frame,