Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: rewrite content
kapishdima89471c9e82b0
diff --git a/app/(home)/components/install-command.tsx b/app/(home)/components/install-command.tsxdeleted file mode 100644index 99e51637..00000000--- a/app/(home)/components/install-command.tsx+++ /dev/null@@ -1,79 +0,0 @@-"use client";--import { cva, type VariantProps } from "class-variance-authority";-import { Check, Copy } from "lucide-react";-import { useState } from "react";-import { Button } from "@/components/ui/button";-import { useTrackEvent } from "@/lib/analytics";-import { cn } from "@/lib/utils";--const installCommandVariants = cva(- "group rounded-full border-border bg-card/60 font-mono font-normal text-muted-foreground backdrop-blur-sm hover:border-foreground/20 hover:text-foreground",- {- variants: {- size: {- default: "h-11 gap-3 px-4 text-sm",- sm: "h-9 gap-2.5 px-3.5 text-xs",- },- },- defaultVariants: {- size: "default",- },- },-);--const iconSizeForSize: Record<- NonNullable<VariantProps<typeof installCommandVariants>["size"]>,- string-> = {- default: "size-4",- sm: "size-3.5",-};--interface InstallCommandProps- extends VariantProps<typeof installCommandVariants> {- command: string;- className?: string;-}--export function InstallCommand({- command,- size,- className,-}: InstallCommandProps) {- const [copied, setCopied] = useState(false);- const trackEvent = useTrackEvent();- const iconSize = iconSizeForSize[size ?? "default"];-- const copy = () => {- navigator.clipboard.writeText(command);- setCopied(true);- trackEvent("install_command_copied", {- component: "hero",- package_manager: "npm",- surface: "landing",- });- setTimeout(() => setCopied(false), 1500);- };-- return (- <Button- variant="outline"- onClick={copy}- aria-label="Copy install command"- className={cn(installCommandVariants({ size }), className)}- >- <span aria-hidden className="select-none text-muted-foreground/50">- $- </span>- <span className="truncate text-foreground">{command}</span>- <span aria-hidden className="text-muted-foreground/70">- {copied ? (- <Check className={cn(iconSize, "text-foreground")} />- ) : (- <Copy className={iconSize} />- )}- </span>- </Button>- );-}diff --git a/app/(home)/components/sections/bento-registry.tsx b/app/(home)/components/sections/bento-registry.tsxdeleted file mode 100644index 69625f2e..00000000--- a/app/(home)/components/sections/bento-registry.tsx+++ /dev/null@@ -1,257 +0,0 @@-"use client";--import { Player, type PlayerRef } from "@remotion/player";-import { ArrowRight, Check, Copy } from "lucide-react";-import { motion } from "motion/react";-import Link from "next/link";-import { useMemo, useRef, useState } from "react";-import { SpotlightSurface } from "@/components/spotlight-surface";-import { Button } from "@/components/ui/button";-import { SPRING_SOFT } from "@/config/site";-import { useTrackEvent } from "@/lib/analytics";-import { cn } from "@/lib/utils";-import registry from "@/registry/__index__";-import { Backdrop, type BackdropFill } from "@/registry/remocn/backdrop";-import { FadeUp } from "../fade-up";-import { SectionHeading } from "../section-heading";-import { useAutoplay } from "../use-autoplay";--/** Copyable `npx shadcn add` pill shown in each card footer. */-function InstallPill({ name }: { name: string }) {- const command = `npx shadcn@latest add remocn/${name}`;- const [copied, setCopied] = useState(false);- const trackEvent = useTrackEvent();-- const copy = () => {- navigator.clipboard.writeText(command);- setCopied(true);- trackEvent("install_command_copied", {- component: name,- surface: "bento",- package_manager: "npm",- });- setTimeout(() => setCopied(false), 1500);- };-- return (- <Button- variant="outline"- type="button"- onClick={copy}- aria-label={`Copy install command for ${name}`}- className="mt-4 flex w-full items-center gap-2.5 rounded-xl border-border bg-muted/40 px-3 py-2 font-mono text-xs text-muted-foreground transition-colors hover:border-foreground/20 hover:text-foreground focus-visible:ring-ring/40"- >- <span aria-hidden className="select-none text-muted-foreground/50">- $- </span>- <span className="min-w-0 flex-1 truncate text-left text-foreground/90">- npx shadcn@latest add{" "}- <span className="text-foreground">remocn/{name}</span>- </span>- <span aria-hidden className="shrink-0 text-muted-foreground/70">- {copied ? (- <Check className="size-3.5 text-foreground" />- ) : (- <Copy className="size-3.5" />- )}- </span>- </Button>- );-}--function BentoCard({- name,- title,- description,- className = "",- previewClassName,- inputProps,- featured = false,- compositionWidth,- compositionHeight,- backdrop,-}: {- name: string;- title: string;- description: string;- className?: string;- previewClassName?: string;- inputProps?: Record<string, unknown>;- featured?: boolean;- compositionWidth?: number;- compositionHeight?: number;- backdrop?: BackdropFill;-}) {- const entry = registry[name];- const playerRef = useRef<PlayerRef>(null);-- const { containerRef } = useAutoplay(playerRef, Boolean(entry));-- const lazyComponent = useMemo(() => {- if (!entry) return undefined;- const { load } = entry;- if (!backdrop) return load;- return () =>- load().then(({ default: Inner }) => ({- default: (props: Record<string, unknown>) => (- <Backdrop fill={backdrop} padding={0} radius={0} shadow="">- <Inner {...props} />- </Backdrop>- ),- }));- }, [entry, backdrop]);-- return (- <motion.div- whileHover={{ y: -4 }}- transition={SPRING_SOFT}- className={cn(- "surface-card group relative flex flex-col overflow-hidden rounded-2xl sm:rounded-3xl",- className,- )}- >- {/* Spotlight overlay (driven by parent --mx/--my) — theme-aware. */}- <div- aria-hidden- className="pointer-events-none absolute inset-0 z-10 opacity-0 transition-opacity duration-300 group-hover:opacity-100"- style={{- background:- "radial-gradient(500px circle at var(--mx) var(--my), color-mix(in oklab, var(--color-foreground) 8%, transparent), transparent 40%)",- }}- />-- <div- ref={containerRef}- className={cn(- "relative w-full overflow-hidden",- featured- ? "aspect-[16/9] md:aspect-auto md:min-h-0 md:flex-1"- : "aspect-[16/9]",- previewClassName ?? "bg-muted",- )}- >- {entry && lazyComponent ? (- <Player- ref={playerRef}- lazyComponent={lazyComponent}- inputProps={inputProps ?? {}}- durationInFrames={entry.config.durationInFrames}- fps={entry.config.fps}- compositionWidth={compositionWidth ?? entry.config.compositionWidth}- compositionHeight={- compositionHeight ?? entry.config.compositionHeight- }- style={{ width: "100%", height: "100%" }}- loop- initiallyMuted- acknowledgeRemotionLicense- />- ) : null}- </div>- <div- className={cn(- "relative flex flex-col border-t border-border p-5 sm:p-6",- featured ? "flex-none" : "flex-1",- )}- >- <h3 className="text-base font-semibold tracking-tight text-foreground">- {title}- </h3>- <p className="mt-1.5 text-sm leading-relaxed text-muted-foreground">- {description}- </p>- <div className={featured ? undefined : "mt-auto"}>- <InstallPill name={name} />- </div>- </div>- </motion.div>- );-}--export function BentoRegistry() {- const trackEvent = useTrackEvent();-- return (- <section id="components" className="relative py-14 sm:py-20">- <div className="section">- <SectionHeading- eyebrow="The registry"- title="A registry of motion"- lead="Transitions, primitives and text reveals — production-ready, autoplaying, and one command away."- action={- <Button- variant="outline"- size="lg"- className="h-11 gap-2 rounded-full px-5"- render={- <Link- href="/docs/components"- onClick={() =>- trackEvent("cta_clicked", {- cta: "bento_browse",- destination: "/docs/components",- })- }- />- }- >- Browse all- <ArrowRight className="size-4" aria-hidden="true" />- </Button>- }- />-- <FadeUp delay={0.1} className="mt-10 sm:mt-16">- <SpotlightSurface className="grid gap-4 sm:gap-6 md:grid-cols-3">- <BentoCard- name="claude-code"- title="Claude Code"- description="A live agent session — typed prompt and all"- className="md:col-span-2"- previewClassName="bg-[#0a0a0a]"- inputProps={{ theme: "dark", background: "transparent" }}- />- <BentoCard- name="x-follow-card"- title="X Follow Card"- description="A profile card that follows itself on cue"- className="md:col-span-1"- previewClassName="bg-[#0a0a0a]"- inputProps={{- orientation: "vertical",- theme: "dark",- background: "transparent",- }}- compositionWidth={720}- compositionHeight={1280}- featured- />- </SpotlightSurface>- </FadeUp>-- <FadeUp delay={0.18}>- <SpotlightSurface className="mt-4 grid gap-4 sm:mt-6 sm:gap-6 md:grid-cols-3">- <BentoCard- name="kinetic-center-build"- title="Kinetic Center Build"- description="Words push left as each new one builds from the center"- inputProps={{ text: "Words push left." }}- backdrop={{ type: "color", value: "#ffffff" }}- />- <BentoCard- name="x-followers-overview"- title="X Followers"- description="Names cycle, then the total lands with confetti"- backdrop={{ type: "color", value: "#ffffff" }}- />- <BentoCard- name="shader-swirl"- title="Shader Swirl"- description="Twisting bands of color churn behind your scene"- />- </SpotlightSurface>- </FadeUp>- </div>- </section>- );-}diff --git a/app/(home)/components/sections/final-cta.tsx b/app/(home)/components/sections/final-cta.tsxindex 985bac8c..ea44d08f 100644--- a/app/(home)/components/sections/final-cta.tsx+++ b/app/(home)/components/sections/final-cta.tsx@@ -47,13 +47,13 @@ export function FinalCTA() {}transition={{ ...SPRING_BOUNCE, duration: 0.8 }}>- Stop fighting keyframes. Start writing code.+ Your product deserves better than a screen recording.</motion.h2><FadeUp delay={0.2}><p className="mx-auto mt-5 max-w-xl text-base leading-relaxed text-muted-foreground sm:text-lg">- Install your first component and render a video today. It's open- source, all the way down.+ An agent, an empty folder, ten minutes. It's open source, all the+ way down.</p></FadeUp>@@ -64,17 +64,17 @@ export function FinalCTA() {className="h-11 gap-2 rounded-full px-6 text-sm"render={<Link- href="/docs/getting-started/introduction"+ href="/docs/guides/setup"onClick={() =>trackEvent("cta_clicked", {cta: "final_cta",- destination: "/docs/getting-started/introduction",+ destination: "/docs/guides/setup",})}/>}>- Read the documentation+ Make your first video<ArrowRight className="size-4" aria-hidden="true" /></Button><Buttondiff --git a/app/(home)/components/sections/hero.tsx b/app/(home)/components/sections/hero.tsxindex f677f6e5..1bcec848 100644--- a/app/(home)/components/sections/hero.tsx+++ b/app/(home)/components/sections/hero.tsx@@ -7,7 +7,6 @@ import { useTrackEvent } from "@/lib/analytics";import { FadeUp } from "../fade-up";import { HeroBadge } from "../hero-badge";import { HeroNeuroBg } from "../hero-shader-bg";-import { InstallAll } from "../install-all";import { HeroScrollVideo } from "./hero-scroll-video";export function Hero() {@@ -25,15 +24,15 @@ export function Hero() {<FadeUp delay={0.06} className="flex flex-col items-center"><HeroBadge /><h1 className="max-w-3xl text-balance text-3xl font-semibold leading-[1.1] tracking-tight text-foreground sm:text-4xl md:text-5xl">- Cinematic video components,- <br className="hidden sm:block" /> now copy-pasteable+ You want the video,+ <br className="hidden sm:block" /> not the ordeal.</h1></FadeUp><FadeUp delay={0.12}><p className="mt-4 max-w-2xl text-balance text-base leading-relaxed text-muted-foreground sm:text-lg">- Production-ready Remotion animations, transitions and backgrounds.- Install with the shadcn CLI and own every line of code.+ Describe your product to your AI agent. It builds the demo video+ from ready-made pieces while you watch in the browser.</p></FadeUp>@@ -44,20 +43,37 @@ export function Hero() {className="rounded-full"render={<Link- href="/docs/getting-started/introduction"+ href="/docs/guides/setup"onClick={() =>trackEvent("cta_clicked", {- cta: "hero_browse",- destination: "/docs/getting-started/introduction",+ cta: "hero_start",+ destination: "/docs/guides/setup",})}/>}>- Browse components+ Make your first video<ArrowRight className="size-4" aria-hidden="true" /></Button>- <InstallAll />+ <Button+ variant="secondary"+ size="lg"+ className="rounded-full font-medium"+ render={+ <Link+ href="/showcases"+ onClick={() =>+ trackEvent("cta_clicked", {+ cta: "hero_showcases",+ destination: "/showcases",+ })+ }+ />+ }+ >+ See what ships+ </Button></div></FadeUp></div>diff --git a/app/(home)/components/sections/interactive-code.tsx b/app/(home)/components/sections/interactive-code.tsxdeleted file mode 100644index e28796f9..00000000--- a/app/(home)/components/sections/interactive-code.tsx+++ /dev/null@@ -1,388 +0,0 @@-"use client";--import { Player, type PlayerRef } from "@remotion/player";-import { motion } from "motion/react";-import {- type KeyboardEvent,- type PointerEvent,- useCallback,- useMemo,- useRef,- useState,-} from "react";-import { SPRING_SOFT } from "@/config/site";-import { useTrackEvent } from "@/lib/analytics";-import { TYPEWRITER_DEFAULTS } from "@/lib/config/snippets";-import registry from "@/registry/__index__";-import { FadeUp } from "../fade-up";-import { SectionHeading } from "../section-heading";-import { SYNTAX_DARK, TypewriterCodeBlock } from "../typewriter-code-block";-import { useAutoplay } from "../use-autoplay";--const COMPONENT = "typewriter";--const CHIP =- "rounded-[5px] bg-white/[0.07] px-1 align-baseline outline-none ring-1 ring-transparent transition-colors hover:bg-white/[0.12] focus-visible:bg-white/[0.12] focus-visible:ring-white/30";--const EDIT_INPUT =- "rounded-[5px] bg-white/[0.12] px-1 align-baseline outline-none ring-1 ring-white/30";--/** Horizontal-drag number, with click-to-type and keyboard nudge. */-function DraggableNumber({- value,- onChange,- min,- max,- step = 1,- pxPerStep = 6,- label,-}: {- value: number;- onChange: (next: number) => void;- min: number;- max: number;- step?: number;- pxPerStep?: number;- label: string;-}) {- const [editing, setEditing] = useState(false);- const [draft, setDraft] = useState("");- const drag = useRef<{- startX: number;- startVal: number;- moved: boolean;- } | null>(null);-- const clamp = useCallback(- (n: number) => Math.min(max, Math.max(min, n)),- [min, max],- );-- const onPointerDown = (e: PointerEvent<HTMLButtonElement>) => {- if (editing) return;- e.currentTarget.setPointerCapture(e.pointerId);- drag.current = { startX: e.clientX, startVal: value, moved: false };- };-- const onPointerMove = (e: PointerEvent<HTMLButtonElement>) => {- const d = drag.current;- if (!d) return;- const dx = e.clientX - d.startX;- if (Math.abs(dx) > 3) d.moved = true;- const next = clamp(d.startVal + Math.round(dx / pxPerStep) * step);- if (next !== value) onChange(next);- };-- const onPointerUp = (e: PointerEvent<HTMLButtonElement>) => {- const d = drag.current;- drag.current = null;- e.currentTarget.releasePointerCapture?.(e.pointerId);- if (d && !d.moved) {- setDraft(String(value));- setEditing(true);- }- };-- const onKeyDown = (e: KeyboardEvent<HTMLButtonElement>) => {- if (e.key === "ArrowUp" || e.key === "ArrowRight") {- e.preventDefault();- onChange(clamp(value + step));- } else if (e.key === "ArrowDown" || e.key === "ArrowLeft") {- e.preventDefault();- onChange(clamp(value - step));- } else if (e.key === "Enter") {- e.preventDefault();- setDraft(String(value));- setEditing(true);- }- };-- const commit = () => {- const parsed = Number(draft);- if (Number.isFinite(parsed)) onChange(clamp(parsed));- setEditing(false);- };-- if (editing) {- return (- <input- // biome-ignore lint/a11y/noAutofocus: focus follows an explicit click-to-edit- autoFocus- type="text"- inputMode="numeric"- value={draft}- onChange={(e) => setDraft(e.target.value)}- onBlur={commit}- onKeyDown={(e) => {- if (e.key === "Enter") commit();- if (e.key === "Escape") setEditing(false);- }}- style={{- color: SYNTAX_DARK.number,- width: `${Math.max(draft.length, 1)}ch`,- }}- className={EDIT_INPUT}- />- );- }-- return (- <button- type="button"- aria-label={`${label}: ${value}. Drag or use arrow keys to change.`}- onPointerDown={onPointerDown}- onPointerMove={onPointerMove}- onPointerUp={onPointerUp}- onKeyDown={onKeyDown}- style={{ color: SYNTAX_DARK.number, touchAction: "none" }}- className={`${CHIP} cursor-ew-resize select-none`}- >- {value}- </button>- );-}--/** Quoted string value that becomes an inline input on click. */-function EditableString({- value,- onChange,-}: {- value: string;- onChange: (next: string) => void;-}) {- const [editing, setEditing] = useState(false);- const [draft, setDraft] = useState("");-- const commit = () => {- onChange(draft);- setEditing(false);- };-- if (editing) {- return (- <span style={{ color: SYNTAX_DARK.string }}>- "- <input- // biome-ignore lint/a11y/noAutofocus: focus follows an explicit click-to-edit- autoFocus- type="text"- value={draft}- onChange={(e) => setDraft(e.target.value)}- onBlur={commit}- onKeyDown={(e) => {- if (e.key === "Enter") commit();- if (e.key === "Escape") setEditing(false);- }}- style={{- color: SYNTAX_DARK.string,- width: `${Math.max(draft.length, 1)}ch`,- }}- className={EDIT_INPUT}- />- "- </span>- );- }-- return (- <button- type="button"- aria-label="Edit text"- onClick={() => {- setDraft(value);- setEditing(true);- }}- style={{ color: SYNTAX_DARK.string }}- className={`${CHIP} cursor-text`}- >- "{value}"- </button>- );-}--/** Color swatch + hex that opens the native color picker on click. */-function ColorValue({- value,- onChange,-}: {- value: string;- onChange: (next: string) => void;-}) {- return (- <span- style={{ color: SYNTAX_DARK.string }}- className={`${CHIP} relative inline-flex cursor-pointer items-center gap-1.5`}- >- <span- aria-hidden- className="size-2.5 rounded-full ring-1 ring-white/20"- style={{ backgroundColor: value }}- />- "{value.toUpperCase()}"- <input- type="color"- value={value}- onChange={(e) => onChange(e.target.value)}- aria-label="Text color"- className="absolute inset-0 cursor-pointer opacity-0"- />- </span>- );-}--/** Boolean literal that toggles on click / Enter / Space. */-function ToggleBool({- value,- onChange,-}: {- value: boolean;- onChange: (next: boolean) => void;-}) {- return (- <button- type="button"- aria-label="Toggle cursor"- aria-pressed={value}- onClick={() => onChange(!value)}- style={{ color: SYNTAX_DARK.boolean }}- className={`${CHIP} cursor-pointer select-none`}- >- {String(value)}- </button>- );-}--export function InteractiveCode() {- const entry = registry[COMPONENT];- const playerRef = useRef<PlayerRef>(null);-- const { containerRef } = useAutoplay(playerRef, Boolean(entry));-- const [text, setText] = useState(TYPEWRITER_DEFAULTS.text);- const [fontSize, setFontSize] = useState(TYPEWRITER_DEFAULTS.fontSize);- const [color, setColor] = useState(TYPEWRITER_DEFAULTS.color);- const [fontWeight, setFontWeight] = useState(TYPEWRITER_DEFAULTS.fontWeight);- const [cursor, setCursor] = useState(TYPEWRITER_DEFAULTS.cursor);-- const trackEvent = useTrackEvent();- const timers = useRef<Map<string, ReturnType<typeof setTimeout>>>(new Map());- const track = useCallback(- (prop: string) => {- const existing = timers.current.get(prop);- if (existing) clearTimeout(existing);- timers.current.set(- prop,- setTimeout(() => {- trackEvent("component_customized", { component: COMPONENT, prop });- timers.current.delete(prop);- }, 500),- );- },- [trackEvent],- );-- const set =- <T,>(setter: (v: T) => void, prop: string) =>- (v: T) => {- setter(v);- track(prop);- };-- const inputProps = useMemo(- () => ({ text, fontSize, color, cursorColor: color, fontWeight, cursor }),- [text, fontSize, color, fontWeight, cursor],- );-- const aspectRatio = entry- ? `${entry.config.compositionWidth} / ${entry.config.compositionHeight}`- : "16 / 9";-- return (- <section id="showcase" className="relative py-14 sm:py-20">- <div className="section">- <SectionHeading- eyebrow="It's just props"- title="Tweak it live"- lead="Every component is plain React driven by the Remotion API. Drag a number, click a color — the props are the controls, and the frame re-renders instantly."- />-- <FadeUp delay={0.1}>- <div className="mt-12 grid items-stretch gap-6 sm:mt-16 lg:grid-cols-2">- {/* Interactive code editor — the JSX values are the controls. */}- <TypewriterCodeBlock- theme="dark"- text={- <EditableString value={text} onChange={set(setText, "text")} />- }- fontSize={- <DraggableNumber- value={fontSize}- onChange={set(setFontSize, "fontSize")}- min={48}- max={160}- step={1}- pxPerStep={4}- label="Font size"- />- }- color={- <ColorValue value={color} onChange={set(setColor, "color")} />- }- fontWeight={- <DraggableNumber- value={fontWeight}- onChange={set(setFontWeight, "fontWeight")}- min={100}- max={900}- step={100}- pxPerStep={10}- label="Font weight"- />- }- cursor={- <ToggleBool- value={cursor}- onChange={set(setCursor, "cursor")}- />- }- footer={- <span className="font-mono text-xs text-white/30">- Drag or click values to edit- </span>- }- />-- {/* Live preview — the real registry Typewriter. */}- <motion.div- whileHover={{ y: -4 }}- transition={SPRING_SOFT}- className="relative flex items-center justify-center overflow-hidden rounded-2xl bg-white ring-1 ring-black/5 sm:rounded-3xl"- >- <div- ref={containerRef}- className="w-full"- style={{ aspectRatio }}- >- {entry ? (- <Player- ref={playerRef}- lazyComponent={entry.load}- inputProps={inputProps}- durationInFrames={entry.config.durationInFrames}- fps={entry.config.fps}- compositionWidth={entry.config.compositionWidth}- compositionHeight={entry.config.compositionHeight}- style={{ width: "100%", height: "100%", display: "block" }}- loop- initiallyMuted- acknowledgeRemotionLicense- />- ) : null}- </div>- </motion.div>- </div>- </FadeUp>- </div>- </section>- );-}diff --git a/app/(home)/components/sections/testimonials.tsx b/app/(home)/components/sections/testimonials.tsxindex 12fa5fea..5194c52d 100644--- a/app/(home)/components/sections/testimonials.tsx+++ b/app/(home)/components/sections/testimonials.tsx@@ -69,7 +69,7 @@ export function Testimonials() {align="center"eyebrow="Wall of love"title="Builders are shipping with remocn"- lead="Developers turning their products into demo videos — one registry component at a time."+ lead="Builders who needed a demo video for their product and shipped one the same day."/></div>diff --git a/app/(home)/components/sections/ui-registry.tsx b/app/(home)/components/sections/ui-registry.tsxdeleted file mode 100644index 31395e15..00000000--- a/app/(home)/components/sections/ui-registry.tsx+++ /dev/null@@ -1,293 +0,0 @@-"use client";--import { Player, type PlayerRef } from "@remotion/player";-import { ArrowUpRight } from "lucide-react";-import { motion } from "motion/react";-import Link from "next/link";-import { type ComponentType, type ReactNode, useRef } from "react";-import { CommandMenuExampleScene } from "@/components/docs/examples/command-menu-example";-import { InputExampleScene } from "@/components/docs/examples/input-example";-import { SelectExampleScene } from "@/components/docs/examples/select-example";-import { SignupFlowExampleScene } from "@/components/docs/examples/signup-flow-example";-import { SwitchExampleScene } from "@/components/docs/examples/switch-example";-import { SpotlightSurface } from "@/components/spotlight-surface";-import { SPRING_SOFT } from "@/config/site";-import { FPS, H, W } from "@/lib/customizer-config";-import { cn } from "@/lib/utils";-import { FadeUp } from "../fade-up";-import { InstallCommand } from "../install-command";-import { SectionHeading } from "../section-heading";-import { useAutoplay } from "../use-autoplay";--interface SceneEntry {- Component: ComponentType;- durationInFrames: number;- fps: number;- width: number;- height: number;-}--const ATOM_SCENES: Record<string, SceneEntry> = {- select: {- Component: SelectExampleScene,- durationInFrames: 120,- fps: FPS,- width: W,- height: H,- },- input: {- Component: InputExampleScene,- durationInFrames: 120,- fps: FPS,- width: W,- height: H,- },- switch: {- Component: SwitchExampleScene,- durationInFrames: 100,- fps: FPS,- width: W,- height: H,- },- "command-menu": {- Component: CommandMenuExampleScene,- durationInFrames: 130,- fps: FPS,- width: W,- height: H,- },-};--const FLOW_SCENES: Record<string, SceneEntry> = {- "signup-flow": {- Component: SignupFlowExampleScene,- durationInFrames: 380,- fps: FPS,- width: W,- height: H,- },-};--const atomEntry = (name: string): SceneEntry | undefined => ATOM_SCENES[name];-const flowEntry = (name: string): SceneEntry | undefined => FLOW_SCENES[name];--const EYEBROW = "remocn-ui";-const TITLE = "shadcn, on the timeline";-const LEAD =- "The shadcn primitives you already know — Button, Input, Select, Dialog — but their states are scripted on the Remotion frame. No useState, no event handlers: every pixel is a pure function of the timeline.";--interface Atom {- name: string;- title: string;- description: string;-}--const ATOMS: Atom[] = [- {- name: "select",- title: "Select",- description: "Panel reveals, then an item check lands",- },- {- name: "input",- title: "Input",- description: "Focus ring and a typed value reveal",- },- {- name: "switch",- title: "Switch",- description: "Track fill with a sliding thumb",- },- {- name: "command-menu",- title: "Command Menu",- description: "⌘K palette opens, then filters",- },-];--const PRIMITIVE_CHIPS = [- "button",- "input",- "checkbox",- "switch",- "select",- "dialog",- "toast",- "command-menu",- "tabs",- "slider",- "tooltip",- "stepper",- "message-bubble",- "typing-indicator",-];--function ScenePlayer({ entry }: { entry: SceneEntry | undefined }) {- const ref = useRef<PlayerRef>(null);- const { containerRef } = useAutoplay(ref, Boolean(entry));-- if (!entry) return null;-- return (- <div ref={containerRef} style={{ width: "100%", height: "100%" }}>- <Player- ref={ref}- component={entry.Component}- inputProps={{}}- durationInFrames={entry.durationInFrames}- fps={entry.fps}- compositionWidth={entry.width}- compositionHeight={entry.height}- style={{ width: "100%", height: "100%", pointerEvents: "none" }}- clickToPlay={false}- loop- initiallyMuted- acknowledgeRemotionLicense- />- </div>- );-}--function PreviewSurface({- entry,- className,-}: {- entry: SceneEntry | undefined;- className?: string;-}) {- return (- <motion.div- whileHover={{ y: -4 }}- transition={SPRING_SOFT}- className={cn(- "surface-card relative aspect-video overflow-hidden rounded-2xl sm:rounded-3xl",- className,- )}- >- <ScenePlayer entry={entry} />- </motion.div>- );-}--function PreviewCardLink({- href,- entry,- label,- className,- surfaceClassName,- children,-}: {- href: string;- entry: SceneEntry | undefined;- label: string;- className?: string;- surfaceClassName?: string;- children?: ReactNode;-}) {- return (- <Link- href={href}- aria-label={label}- className={cn(- "group block rounded-2xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40 sm:rounded-3xl",- className,- )}- >- <PreviewSurface entry={entry} className={surfaceClassName} />- {children}- </Link>- );-}--function AtomCard({ atom, className }: { atom: Atom; className?: string }) {- return (- <PreviewCardLink- href={`/docs/ui/components/${atom.name}`}- entry={atomEntry(atom.name)}- label={`Open the ${atom.title} documentation`}- surfaceClassName="sm:rounded-2xl"- className={cn("flex flex-col", className)}- >- <div className="flex items-start justify-between gap-2 px-1 pt-3">- <div>- <h3 className="text-sm font-semibold tracking-tight text-foreground">- {atom.title}- </h3>- <p className="mt-1 text-xs leading-relaxed text-muted-foreground">- {atom.description}- </p>- </div>- <ArrowUpRight- aria-hidden- className="size-4 shrink-0 text-muted-foreground/50 transition-colors group-hover:text-foreground"- />- </div>- </PreviewCardLink>- );-}--function PrimitiveChips({ className }: { className?: string }) {- return (- <div className={cn("flex flex-wrap gap-2", className)}>- {PRIMITIVE_CHIPS.map((name) => (- <Link- key={name}- href={`/docs/ui/components/${name}`}- className="rounded-lg border border-border bg-muted/40 px-2.5 py-1 font-mono text-xs text-muted-foreground transition-colors hover:border-foreground/20 hover:text-foreground"- >- {name}- </Link>- ))}- <Link- href="/docs/ui"- className="rounded-lg px-2.5 py-1 text-xs text-muted-foreground/70 transition-colors hover:text-foreground"- >- + more- </Link>- </div>- );-}--function UiRegistryIntro({ className }: { className?: string }) {- return (- <div className={className}>- <SectionHeading eyebrow={EYEBROW} title={TITLE} lead={LEAD} />- <FadeUp delay={0.06}>- <PrimitiveChips className="mt-6" />- <InstallCommand- command="npx shadcn add @remocn/signup-flow"- size="sm"- className="mt-7"- />- </FadeUp>- </div>- );-}--export function UiRegistry() {- return (- <section id="ui-registry" className="relative py-14 sm:py-20">- <div className="section">- <div className="grid items-center gap-10 lg:grid-cols-2 lg:gap-12">- <UiRegistryIntro />-- <FadeUp delay={0.12}>- <PreviewCardLink- href="/docs/ui/blocks/signup-flow"- entry={flowEntry("signup-flow")}- label="Open the Signup Flow documentation"- />- </FadeUp>- </div>-- <FadeUp delay={0.18}>- <SpotlightSurface className="mt-6 grid gap-4 sm:mt-8 sm:gap-6 md:grid-cols-2 lg:grid-cols-4">- {ATOMS.map((atom) => (- <AtomCard key={atom.name} atom={atom} />- ))}- </SpotlightSurface>- </FadeUp>- </div>- </section>- );-}diff --git a/app/(home)/components/sections/whats-inside.tsx b/app/(home)/components/sections/whats-inside.tsxindex 843d9b35..1c8a8606 100644--- a/app/(home)/components/sections/whats-inside.tsx+++ b/app/(home)/components/sections/whats-inside.tsx@@ -31,7 +31,7 @@ const ShadersViz = dynamic(const EYEBROW = "What's inside";const TITLE = "Five kinds of building blocks";const LEAD =- "Every remocn component belongs to one of these families. Compose them on the Remotion timeline to build a full video, one scene at a time.";+ "Every remocn component belongs to one of these families. Your agent composes them on the timeline, one scene at a time.";interface VizProps {play: boolean;@@ -232,7 +232,7 @@ const CATEGORIES: Category[] = [{title: "Typography",description:- "Text that animates itself in — blur-ins, line reveals, kinetic builds.",+ "Words that arrive with weight instead of just appearing on screen.",href: "/docs/typography",icon: Type,Viz: TypographyViz,@@ -240,7 +240,8 @@ const CATEGORIES: Category[] = [},{title: "Shaders",- description: "GPU backgrounds — animated noise, gradients, and meshes.",+ description:+ "Backgrounds that move — the kind sitting behind every good hero shot.",href: "/docs/shaders/getting-started/introduction",icon: Waves,Viz: ShadersViz,@@ -248,7 +249,7 @@ const CATEGORIES: Category[] = [},{title: "Transitions",- description: "Scene-to-scene cuts — pushes, dissolves, and shader wipes.",+ description: "Cuts between scenes that don't look like a slideshow.",href: "/docs/transitions",icon: Shuffle,Viz: TransitionsViz,@@ -256,7 +257,7 @@ const CATEGORIES: Category[] = [},{title: "Animated Icons",- description: "Lucide icons redrawn for video, each with its own action.",+ description: "Icons that actually do the thing they stand for.",href: "/docs/icons/gallery",icon: Sparkles,Viz: AnimatedIconsViz,@@ -265,7 +266,7 @@ const CATEGORIES: Category[] = [{title: "UI Primitives",description:- "shadcn components scripted on the frame — buttons, switches, dialogs.",+ "Fake app screens — buttons, dialogs and menus that behave like the real thing.",href: "/docs/ui",icon: Component,Viz: UiPrimitivesViz,diff --git a/app/(home)/components/sections/why-remocn.tsx b/app/(home)/components/sections/why-remocn.tsxindex 97ba5cdb..891a0132 100644--- a/app/(home)/components/sections/why-remocn.tsx+++ b/app/(home)/components/sections/why-remocn.tsx@@ -5,7 +5,7 @@ import {Bot,Check,Clapperboard,- Clock,+ MonitorPlay,Wallet,} from "lucide-react";import { motion, useInView, useReducedMotion } from "motion/react";@@ -18,9 +18,9 @@ import { SectionHeading } from "../section-heading";const MINT = "#3aad78";const EYEBROW = "Why remocn";-const TITLE = "You want the video, not the ordeal.";+const TITLE = "Every other way costs you something.";const LEAD =- "Motion usually costs tokens, an afternoon, a designer's invoice, and a weekend lost in After Effects. remocn hands you the animation — copy, paste, render.";+ "A designer's invoice, a weekend in After Effects, or a screen recording you're not proud of. remocn hands the animation to your agent already built.";interface Problem {icon: ComponentType<{ className?: string }>;@@ -30,18 +30,6 @@ interface Problem {}const PROBLEMS: Problem[] = [- {- icon: Bot,- task: "Teaching an AI to keyframe",- cost: "~40k tokens",- gain: "Included",- },- {- icon: Clock,- task: "Inventing the animation",- cost: "An afternoon",- gain: "Already built",- },{icon: Wallet,task: "Hiring a motion designer",@@ -54,6 +42,18 @@ const PROBLEMS: Problem[] = [cost: "A weekend",gain: "Skip it",},+ {+ icon: Bot,+ task: "Teaching an AI to keyframe",+ cost: "~40k tokens",+ gain: "Included",+ },+ {+ icon: MonitorPlay,+ task: "Settling for a screen recording",+ cost: "Looks unfinished",+ gain: "Looks shipped",+ },];function InstallLine({ className }: { className?: string }) {diff --git a/app/(home)/stars/components/avatar-chips.tsx b/app/(home)/stars/components/avatar-chips.tsxdeleted file mode 100644index 74ee02e9..00000000--- a/app/(home)/stars/components/avatar-chips.tsx+++ /dev/null@@ -1,23 +0,0 @@-import { motion } from "motion/react";-import { Skeleton } from "@/components/ui/skeleton";-import { SPRING_BOUNCE } from "@/config/site";--/** Ghost avatar chips streaming in — the "stargazers flying in" tease. */-export function AvatarChips({ reduced }: { reduced: boolean }) {- return (- <div className="flex flex-wrap justify-center gap-2">- {Array.from({ length: 9 }).map((_, i) => (- <motion.div- key={i}- initial={reduced ? false : { opacity: 0, x: -12 }}- animate={{ opacity: 1, x: 0 }}- transition={- reduced ? undefined : { ...SPRING_BOUNCE, delay: i * 0.06 }- }- >- <Skeleton className="size-9 rounded-full" />- </motion.div>- ))}- </div>- );-}diff --git a/app/(home)/stars/components/customizer-panel.tsx b/app/(home)/stars/components/customizer-panel.tsxdeleted file mode 100644index 6157316e..00000000--- a/app/(home)/stars/components/customizer-panel.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { ComponentCustomizer } from "@/components/docs/component-customizer";-import { CUSTOM_CONTROLS } from "../lib/constants";--/** Optional customizer panel (scalar inputProps). Hidden unless `show`. */-export function CustomizerPanel({- show,- values,- onChange,-}: {- show: boolean;- values: Record<string, unknown>;- onChange: (key: string, value: unknown) => void;-}) {- if (!show) return null;-- return (- <div className="mt-4">- <ComponentCustomizer- controls={CUSTOM_CONTROLS}- values={values}- onChange={onChange}- />- </div>- );-}diff --git a/app/(home)/stars/components/export-controls.tsx b/app/(home)/stars/components/export-controls.tsxdeleted file mode 100644index 7afc6f67..00000000--- a/app/(home)/stars/components/export-controls.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { Download, X } from "lucide-react";-import { Button } from "@/components/ui/button";-import { Progress } from "@/components/ui/progress";--/** Download MP4 button; while a server render runs it becomes a progress bar +- * cancel. Server renders for every browser, so there's no unsupported state. */-export function ExportControls({- exporting,- exportProgress,- onDownload,- onCancelExport,-}: {- exporting: boolean;- exportProgress: number;- onDownload: () => void;- onCancelExport: () => void;-}) {- if (exporting) {- return (- <div className="flex w-full items-center gap-3 sm:w-72">- <Progress value={Math.round(exportProgress * 100)} className="flex-1" />- <Button- variant="ghost"- size="icon"- onClick={onCancelExport}- aria-label="Cancel export"- className="rounded-full"- >- <X className="size-4" />- </Button>- </div>- );- }-- return (- <Button size="lg" onClick={onDownload} className="gap-2 rounded-full">- <Download className="size-4" aria-hidden="true" />- Download MP4- </Button>- );-}diff --git a/app/(home)/stars/components/generating-view.tsx b/app/(home)/stars/components/generating-view.tsxdeleted file mode 100644index 52aae3dd..00000000--- a/app/(home)/stars/components/generating-view.tsx+++ /dev/null@@ -1,39 +0,0 @@-import { Button } from "@/components/ui/button";-import { Progress } from "@/components/ui/progress";-import { useGenerationTicker } from "../hooks/use-generation-ticker";-import { AvatarChips } from "./avatar-chips";--export function GeneratingView({- reduced,- onCancel,-}: {- reduced: boolean;- onCancel: () => void;-}) {- const { progress, count } = useGenerationTicker(reduced);-- return (- <div className="flex min-h-[70vh] flex-col items-center justify-center">- <div className="surface-card mx-auto w-full max-w-xl rounded-3xl p-8">- <AvatarChips reduced={reduced} />-- <div className="mt-6">- <Progress value={progress} />- </div>-- <p className="mt-4 text-center text-sm font-medium text-foreground">- Fetching stargazers…{" "}- <span className="tabular-nums text-muted-foreground">- {count.toLocaleString("en-US")}- </span>- </p>-- <div className="mt-6 flex justify-center">- <Button variant="ghost" onClick={onCancel} className="rounded-full">- Cancel- </Button>- </div>- </div>- </div>- );-}diff --git a/app/(home)/stars/components/idle-view.tsx b/app/(home)/stars/components/idle-view.tsxdeleted file mode 100644index 76daf258..00000000--- a/app/(home)/stars/components/idle-view.tsx+++ /dev/null@@ -1,42 +0,0 @@-import { FadeUp } from "../../components/fade-up";-import { RepoInputForm } from "./repo-input-form";--export function IdleView({- inputValue,- onInputChange,- onSubmit,- canGenerate,- zeroStars: _zeroStars,-}: {- inputValue: string;- onInputChange: (v: string) => void;- onSubmit: () => void;- canGenerate: boolean;- zeroStars: boolean;-}) {- return (- <div className="flex min-h-[70vh] flex-col items-center justify-center text-center">- <FadeUp delay={0.06} className="flex flex-col items-center">- <h1 className="max-w-3xl text-balance text-3xl font-semibold leading-[1.1] tracking-tight text-foreground sm:text-4xl md:text-5xl">- Turn your repo’s stars into a video- </h1>- </FadeUp>-- <FadeUp delay={0.12}>- <p className="mt-4 max-w-2xl text-balance text-base leading-relaxed text-muted-foreground sm:text-lg">- Paste a GitHub repo. We fetch every stargazer and animate it into a- shareable clip.- </p>- </FadeUp>-- <FadeUp delay={0.18} className="w-full">- <RepoInputForm- inputValue={inputValue}- onInputChange={onInputChange}- onSubmit={onSubmit}- canGenerate={canGenerate}- />- </FadeUp>- </div>- );-}diff --git a/app/(home)/stars/components/orientation-toggle.tsx b/app/(home)/stars/components/orientation-toggle.tsxdeleted file mode 100644index a9b66476..00000000--- a/app/(home)/stars/components/orientation-toggle.tsx+++ /dev/null@@ -1,30 +0,0 @@-import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";-import { orientationToParam } from "../lib/dims";-import type { Orientation } from "../lib/types";--export function OrientationToggle({- orientation,- onOrientationChange,-}: {- orientation: Orientation;- onOrientationChange: (o: Orientation) => void;-}) {- return (- <ToggleGroup- value={[orientationToParam(orientation)]}- onValueChange={(value: string[]) => {- const next = value[0];- if (next) onOrientationChange(next === "v" ? "vertical" : "horizontal");- }}- aria-label="Video orientation"- className="w-full sm:w-auto"- >- <ToggleGroupItem value="h" className="flex-1 sm:flex-none">- Horizontal- </ToggleGroupItem>- <ToggleGroupItem value="v" className="flex-1 sm:flex-none">- Vertical- </ToggleGroupItem>- </ToggleGroup>- );-}diff --git a/app/(home)/stars/components/player-frame.tsx b/app/(home)/stars/components/player-frame.tsxdeleted file mode 100644index ac931f2a..00000000--- a/app/(home)/stars/components/player-frame.tsx+++ /dev/null@@ -1,78 +0,0 @@-import { Player } from "@remotion/player";-import { Pause, Play } from "lucide-react";-import type { RegistryEntry } from "@/registry/__index__";-import { usePlayerControls } from "../hooks/use-player-controls";-import { dims } from "../lib/dims";-import type { GitHubStarsInputProps, Orientation } from "../lib/types";--export function PlayerFrame({- entry,- inputProps,- orientation,- reduced: _reduced,-}: {- entry: RegistryEntry;- inputProps: GitHubStarsInputProps;- orientation: Orientation;- reduced: boolean;-}) {- const { ref, playing, togglePlay } = usePlayerControls(true);- const { width, height } = dims(orientation);-- return (- // Player card — a fixed 16:9 frame so toggling orientation never reflows- // the page. Vertical renders pillarboxed + centered inside it, while the- // Player still gets the true 720×1280 composition so the exported MP4 is- // genuinely vertical (only the on-page container width stays constant).- <div- className="group surface-card relative w-full overflow-hidden rounded-2xl sm:rounded-3xl"- style={{ aspectRatio: "1280 / 720" }}- >- <div className="absolute inset-0 flex items-center justify-center">- <div- className="h-full"- style={- orientation === "vertical"- ? {- height: "100%",- width: "auto",- aspectRatio: `${width} / ${height}`,- }- : { width: "100%", height: "100%" }- }- >- <Player- ref={ref}- lazyComponent={entry.load}- inputProps={inputProps}- durationInFrames={entry.config.durationInFrames}- fps={entry.config.fps}- compositionWidth={width}- compositionHeight={height}- style={{ width: "100%", height: "100%", display: "block" }}- loop- acknowledgeRemotionLicense- />- </div>- </div>- <button- type="button"- onClick={togglePlay}- aria-label={playing ? "Pause preview" : "Play preview"}- className="absolute inset-0 flex items-center justify-center bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"- >- <span- aria-hidden- data-show={!playing}- className="pointer-events-none flex size-14 items-center justify-center rounded-full bg-background/70 text-foreground opacity-0 backdrop-blur-md transition-opacity duration-200 group-hover:opacity-100 motion-reduce:transition-none data-[show=true]:opacity-100"- >- {playing ? (- <Pause className="size-5" />- ) : (- <Play className="size-5 translate-x-0.5" />- )}- </span>- </button>- </div>- );-}diff --git a/app/(home)/stars/components/ready-footer.tsx b/app/(home)/stars/components/ready-footer.tsxdeleted file mode 100644index 2211fe70..00000000--- a/app/(home)/stars/components/ready-footer.tsx+++ /dev/null@@ -1,56 +0,0 @@-import { BookOpen, RotateCcw } from "lucide-react";-import Link from "next/link";-import { Button } from "@/components/ui/button";-import { InstallCommand } from "../../components/install-command";-import { DOCS_HREF, INSTALL_COMMAND } from "../lib/constants";-import { ExportControls } from "./export-controls";--/** Footer row: install advert + docs link on the left, reset + export on the right. */-export function ReadyFooter({- onReset,- exporting,- exportProgress,- onDownload,- onCancelExport,-}: {- onReset: () => void;- exporting: boolean;- exportProgress: number;- onDownload: () => void;- onCancelExport: () => void;-}) {- return (- <div className="mt-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">- <div className="flex flex-col items-stretch gap-2 sm:flex-row sm:items-center">- <InstallCommand command={INSTALL_COMMAND} />- <Button- variant="outline"- size="lg"- className="h-11 gap-2 rounded-full"- render={<Link href={DOCS_HREF} />}- >- <BookOpen className="size-4" aria-hidden="true" />- View component docs- </Button>- </div>-- <div className="flex items-center justify-end gap-2">- <Button- variant="ghost"- size="lg"- onClick={onReset}- className="gap-2 rounded-full"- >- <RotateCcw className="size-4" aria-hidden="true" />- Change repository- </Button>- <ExportControls- exporting={exporting}- exportProgress={exportProgress}- onDownload={onDownload}- onCancelExport={onCancelExport}- />- </div>- </div>- );-}diff --git a/app/(home)/stars/components/ready-view.tsx b/app/(home)/stars/components/ready-view.tsxdeleted file mode 100644index 727453a7..00000000--- a/app/(home)/stars/components/ready-view.tsx+++ /dev/null@@ -1,106 +0,0 @@-import { Settings2 } from "lucide-react";-import { motion } from "motion/react";-import { Button } from "@/components/ui/button";-import { SPRING_BOUNCE } from "@/config/site";-import type { RegistryEntry } from "@/registry/__index__";-import type { GitHubStarsInputProps, Orientation } from "../lib/types";-import { CustomizerPanel } from "./customizer-panel";-import { OrientationToggle } from "./orientation-toggle";-import { PlayerFrame } from "./player-frame";-import { ReadyFooter } from "./ready-footer";-import { RepoTitle } from "./repo-title";-import { TruncatedNotice } from "./truncated-notice";--export function ReadyView({- entry,- inputProps,- repo,- totalStars,- truncated,- reduced,- orientation,- onOrientationChange,- onReset,- showCustomizer,- onToggleCustomizer,- customValues,- onCustomChange,- exporting,- exportProgress,- onDownload,- onCancelExport,-}: {- entry: RegistryEntry;- inputProps: GitHubStarsInputProps;- repo: string;- totalStars: number;- truncated: boolean;- reduced: boolean;- orientation: Orientation;- onOrientationChange: (o: Orientation) => void;- onReset: () => void;- showCustomizer: boolean;- onToggleCustomizer: () => void;- customValues: Record<string, unknown>;- onCustomChange: (key: string, value: unknown) => void;- exporting: boolean;- exportProgress: number;- onDownload: () => void;- onCancelExport: () => void;-}) {- return (- // Constant width regardless of orientation — the preview frame stays- // put when toggling horizontal/vertical (refinement #3).- <div className="mx-auto max-w-5xl">- <TruncatedNotice truncated={truncated} totalStars={totalStars} />-- <motion.div- initial={reduced ? false : { y: 40, opacity: 0 }}- animate={{ y: 0, opacity: 1 }}- transition={{ ...SPRING_BOUNCE, delay: 0.05 }}- >- <RepoTitle repo={repo} totalStars={totalStars} />-- {/* Controls bar */}- <div className="mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">- <OrientationToggle- orientation={orientation}- onOrientationChange={onOrientationChange}- />-- <Button- variant="ghost"- size="sm"- onClick={onToggleCustomizer}- aria-expanded={showCustomizer}- className="gap-2 rounded-full"- >- <Settings2 className="size-4" aria-hidden="true" />- Customize- </Button>- </div>-- <PlayerFrame- entry={entry}- inputProps={inputProps}- orientation={orientation}- reduced={reduced}- />-- <CustomizerPanel- show={showCustomizer}- values={customValues}- onChange={onCustomChange}- />-- <ReadyFooter- onReset={onReset}- exporting={exporting}- exportProgress={exportProgress}- onDownload={onDownload}- onCancelExport={onCancelExport}- />- </motion.div>- </div>- );-}diff --git a/app/(home)/stars/components/repo-input-form.tsx b/app/(home)/stars/components/repo-input-form.tsxdeleted file mode 100644index 5540a3e3..00000000--- a/app/(home)/stars/components/repo-input-form.tsx+++ /dev/null@@ -1,42 +0,0 @@-import { ArrowRight } from "lucide-react";-import { Button } from "@/components/ui/button";-import { Input } from "@/components/ui/input";--export function RepoInputForm({- inputValue,- onInputChange,- onSubmit,- canGenerate,-}: {- inputValue: string;- onInputChange: (v: string) => void;- onSubmit: () => void;- canGenerate: boolean;-}) {- return (- <form- className="mt-7 flex flex-col items-center gap-3 sm:flex-row sm:justify-center"- onSubmit={(e) => {- e.preventDefault();- onSubmit();- }}- >- <Input- value={inputValue}- onChange={(e) => onInputChange(e.target.value)}- aria-label="GitHub repository"- placeholder="github.com/owner/repo or owner/repo"- className="h-11 w-full rounded-full px-5 sm:max-w-sm"- />- <Button- type="submit"- size="lg"- disabled={!canGenerate}- className="h-11 gap-2 rounded-full px-6"- >- Generate- <ArrowRight className="size-4" aria-hidden="true" />- </Button>- </form>- );-}diff --git a/app/(home)/stars/components/repo-title.tsx b/app/(home)/stars/components/repo-title.tsxdeleted file mode 100644index 4d25d9db..00000000--- a/app/(home)/stars/components/repo-title.tsx+++ /dev/null@@ -1,21 +0,0 @@-import { formatStars } from "@/lib/github";--/** Centered repo heading + star count. */-export function RepoTitle({- repo,- totalStars,-}: {- repo: string;- totalStars: number;-}) {- return (- <div className="mb-4 text-center">- <h2 className="truncate text-xl font-semibold tracking-tight text-foreground sm:text-4xl">- {repo}- </h2>- <p className="mt-0.5 text-sm text-muted-foreground">- {formatStars(totalStars)} stars- </p>- </div>- );-}diff --git a/app/(home)/stars/components/stars-tool.tsx b/app/(home)/stars/components/stars-tool.tsxdeleted file mode 100644index ca2f82a7..00000000--- a/app/(home)/stars/components/stars-tool.tsx+++ /dev/null@@ -1,32 +0,0 @@-"use client";--import { Toaster } from "@/components/ui/sonner";-import { TooltipProvider } from "@/components/ui/tooltip";-import { useStarsTool } from "../hooks/use-stars-tool";-import { GeneratingView } from "./generating-view";-import { IdleView } from "./idle-view";-import { ReadyView } from "./ready-view";--export function StarsTool() {- const vm = useStarsTool();-- return (- <TooltipProvider>- <Toaster />- <section className="relative overflow-hidden pt-10 pb-16 sm:pt-16 sm:pb-24">- {/* Backdrop: dotted grid that fades out. No glow ornaments. */}- <div aria-hidden className="absolute inset-0 -z-10">- <div className="absolute inset-0 bg-grid-fade" />- </div>-- <div className="section">- {vm.status === "idle" && <IdleView {...vm.idle} />}-- {vm.status === "generating" && <GeneratingView {...vm.generating} />}-- {vm.status === "ready" && vm.ready && <ReadyView {...vm.ready} />}- </div>- </section>- </TooltipProvider>- );-}diff --git a/app/(home)/stars/components/truncated-notice.tsx b/app/(home)/stars/components/truncated-notice.tsxdeleted file mode 100644index 91553c36..00000000--- a/app/(home)/stars/components/truncated-notice.tsx+++ /dev/null@@ -1,23 +0,0 @@-import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";-import { formatStars } from "@/lib/github";--/** Inline "we sampled a subset" notice shown for very-high-star repos. */-export function TruncatedNotice({- truncated,- totalStars,-}: {- truncated: boolean;- totalStars: number;-}) {- if (!truncated) return null;-- return (- <Alert className="mb-4">- <AlertTitle>Showing a sample</AlertTitle>- <AlertDescription>- This repo has {formatStars(totalStars)} stars — the clip animates an- evenly sampled subset for a smooth render.- </AlertDescription>- </Alert>- );-}diff --git a/app/(home)/stars/hooks/use-generation-ticker.ts b/app/(home)/stars/hooks/use-generation-ticker.tsdeleted file mode 100644index ee1b008b..00000000--- a/app/(home)/stars/hooks/use-generation-ticker.ts+++ /dev/null@@ -1,27 +0,0 @@-"use client";--import { useEffect, useState } from "react";--/**- * The fake "Fetching… N" progress ticker for the generating view. Eases a- * progress bar toward 90% and counts a jittery stargazer tally, or snaps- * straight to 90% when reduced motion is requested.- */-export function useGenerationTicker(reduced: boolean) {- const [count, setCount] = useState(0);- const [progress, setProgress] = useState(0);-- useEffect(() => {- if (reduced) {- setProgress(90);- return;- }- const id = setInterval(() => {- setCount((t) => t + Math.floor(Math.random() * 40) + 10);- setProgress((v) => Math.min(v + (90 - v) * 0.12, 90));- }, 160);- return () => clearInterval(id);- }, [reduced]);-- return { progress, count };-}diff --git a/app/(home)/stars/hooks/use-mp4-export.ts b/app/(home)/stars/hooks/use-mp4-export.tsdeleted file mode 100644index 36819f69..00000000--- a/app/(home)/stars/hooks/use-mp4-export.ts+++ /dev/null@@ -1,131 +0,0 @@-"use client";--import { useCallback, useEffect, useRef, useState } from "react";-import { toast } from "sonner";-import type { GitHubStarsInputProps } from "../lib/types";--/**- * Owns the server-side MP4 export: POST the inputProps to `/api/render`, then- * poll the job until it's done and trigger a browser download of the result.- * Server renders work in every browser, so there's no feature-detect — the- * Download button is always available. `cancel()` stops the client polling.- */--type RenderStatus = "queued" | "rendering" | "done" | "error";--type JobState = {- status: RenderStatus;- progress: number;- downloadUrl?: string;- error?: string;-};--const POLL_INTERVAL_MS = 700;--export function useMp4Export() {- const [exporting, setExporting] = useState(false);- const [progress, setProgress] = useState(0);- // Pending poll timer + a flag so cancel()/unmount can abandon a live job.- const pollRef = useRef<ReturnType<typeof setTimeout> | null>(null);- const cancelledRef = useRef(false);-- const stopPolling = useCallback(() => {- if (pollRef.current) {- clearTimeout(pollRef.current);- pollRef.current = null;- }- }, []);-- // Drop any in-flight poll if the component unmounts mid-export.- useEffect(() => stopPolling, [stopPolling]);-- const download = useCallback(- async (inputProps: GitHubStarsInputProps) => {- cancelledRef.current = false;- setExporting(true);- setProgress(0);-- try {- const res = await fetch("/api/render", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify(inputProps),- });- if (!res.ok) {- throw new Error(await readError(res));- }- const { jobId } = (await res.json()) as { jobId: string };-- await new Promise<void>((resolve, reject) => {- const tick = async () => {- if (cancelledRef.current) return resolve();- try {- const r = await fetch(`/api/render/${jobId}`);- if (!r.ok) throw new Error("Lost track of the render job");- const job = (await r.json()) as JobState;- if (cancelledRef.current) return resolve();-- setProgress(job.progress ?? 0);-- if (job.status === "done" && job.downloadUrl) {- triggerDownload(job.downloadUrl);- return resolve();- }- if (job.status === "error") {- return reject(new Error(job.error || "Render failed"));- }- pollRef.current = setTimeout(tick, POLL_INTERVAL_MS);- } catch (err) {- reject(err);- }- };- void tick();- });- } catch (err) {- // Cancellation isn't an error; anything else is retryable (the Download- // button comes back when exporting flips false) and gets a toast.- if (!cancelledRef.current) {- console.error("[stars] MP4 export failed:", err);- const detail = err instanceof Error ? err.message : String(err);- toast.error("Export failed", { description: detail });- }- } finally {- stopPolling();- setExporting(false);- }- },- [stopPolling],- );-- const cancel = useCallback(() => {- cancelledRef.current = true;- stopPolling();- setExporting(false);- setProgress(0);- }, [stopPolling]);-- return { exporting, progress, download, cancel };-}--/** Navigate a transient anchor to the download route; the server's- * Content-Disposition supplies the filename and keeps the page in place. */-function triggerDownload(url: string) {- const a = document.createElement("a");- a.href = url;- a.rel = "noopener";- document.body.appendChild(a);- a.click();- a.remove();-}--/** Best-effort human-readable message from a failed render response. */-async function readError(res: Response): Promise<string> {- try {- const body = (await res.json()) as { error?: string };- if (body?.error) return body.error;- } catch {- // non-JSON body — fall through to a status-based message- }- if (res.status === 429) return "Too many requests. Please wait and retry.";- return `Render request failed (${res.status})`;-}diff --git a/app/(home)/stars/hooks/use-orientation.ts b/app/(home)/stars/hooks/use-orientation.tsdeleted file mode 100644index 1bbdcedc..00000000--- a/app/(home)/stars/hooks/use-orientation.ts+++ /dev/null@@ -1,24 +0,0 @@-"use client";--import { useQueryState } from "nuqs";-import { useCallback } from "react";-import { orientationToParam, paramToOrientation } from "../lib/dims";-import type { Orientation } from "../lib/types";--/**- * Wraps the nuqs `?o=h|v` query state (project rule: nuqs, not raw- * useSearchParams). `?o=h|v` persists the orientation across reloads.- */-export function useOrientation() {- const [oParam, setOParam] = useQueryState("o", { defaultValue: "h" });- const orientation = paramToOrientation(oParam);-- const setOrientation = useCallback(- (o: Orientation) => {- void setOParam(orientationToParam(o));- },- [setOParam],- );-- return { orientation, setOrientation };-}diff --git a/app/(home)/stars/hooks/use-player-controls.ts b/app/(home)/stars/hooks/use-player-controls.tsdeleted file mode 100644index c6c38a36..00000000--- a/app/(home)/stars/hooks/use-player-controls.ts+++ /dev/null@@ -1,61 +0,0 @@-"use client";--import type { PlayerRef } from "@remotion/player";-import { useCallback, useEffect, useRef, useState } from "react";--/**- * Owns the Remotion Player play/pause control + a `playing` flag that mirrors the- * ACTUAL player (driven by its play/pause events, not a guess).- *- * The `<Player autoPlay>` prop is unreliable here — the player tends to mount a- * tick before its imperative handle is ready (and React Strict Mode's dev- * double-mount makes it worse), so it silently fails to start and the preview- * looks frozen until you manually pause/play. Instead we imperatively call- * `play()` once mounted (on the next animation frame, after avatars are- * preloaded) and retry if it didn't take.- */-export function usePlayerControls(initialPlaying: boolean) {- const ref = useRef<PlayerRef>(null);- const [playing, setPlaying] = useState(initialPlaying);-- useEffect(() => {- const player = ref.current;- if (!player) return;-- const onPlay = () => setPlaying(true);- const onPause = () => setPlaying(false);- player.addEventListener("play", onPlay);- player.addEventListener("pause", onPause);-- let raf1 = 0;- let raf2 = 0;- if (initialPlaying) {- // Defer to the next frame so the player's imperative API is fully wired,- // then start. A second rAF retries if the first play() didn't take (e.g.- // the player was still finishing its initial buffering pass).- raf1 = requestAnimationFrame(() => {- ref.current?.play();- raf2 = requestAnimationFrame(() => {- if (ref.current && !ref.current.isPlaying()) ref.current.play();- });- });- }-- return () => {- if (raf1) cancelAnimationFrame(raf1);- if (raf2) cancelAnimationFrame(raf2);- player.removeEventListener("play", onPlay);- player.removeEventListener("pause", onPause);- };- }, [initialPlaying]);-- const togglePlay = useCallback(() => {- const player = ref.current;- if (!player) return;- // `playing` updates via the play/pause event listeners above.- if (player.isPlaying()) player.pause();- else player.play();- }, []);-- return { ref, playing, togglePlay };-}diff --git a/app/(home)/stars/hooks/use-stargazers.ts b/app/(home)/stars/hooks/use-stargazers.tsdeleted file mode 100644index 6cd4836c..00000000--- a/app/(home)/stars/hooks/use-stargazers.ts+++ /dev/null@@ -1,94 +0,0 @@-"use client";--import { useCallback, useRef, useState } from "react";-import { toast } from "sonner";-import { parseRepoInput } from "@/lib/parse-repo";-import { fetchStargazers, StargazersApiError } from "../lib/api";-import { messageForApiError } from "../lib/api-errors";-import { preloadAvatars } from "../lib/preload-avatars";-import type { StargazersPayload, StarsStatus } from "../lib/types";--/**- * Owns the generation state machine: status (idle/generating/ready), the- * fetched payload, the zero-star inline flag, and the in-flight AbortController.- */-export function useStargazers() {- const [status, setStatus] = useState<StarsStatus>("idle");- const [data, setData] = useState<StargazersPayload | null>(null);- const [zeroStars, setZeroStars] = useState(false);- const genAbortRef = useRef<AbortController | null>(null);-- const generate = useCallback(async (rawRepo: string) => {- const valid = parseRepoInput(rawRepo);- if (!valid) {- toast.error("Enter a repo as owner/name");- return;- }- setZeroStars(false);- setStatus("generating");-- const controller = new AbortController();- genAbortRef.current = controller;-- try {- const json = await fetchStargazers(rawRepo, controller.signal);-- // Zero-star repos come back 200 with an empty list — a friendly inline- // state, not a hard error.- if (json.totalStars === 0 || json.stargazers.length === 0) {- setZeroStars(true);- setStatus("idle");- return;- }-- setData(json);- // Warm the avatar cache while the generating animation is still on screen,- // so the Player mounts ready-to-play (autoPlay won't stall on un-cached- // remote <Img>s). Bounded + non-blocking on failures; skip if cancelled.- await preloadAvatars(json.stargazers.map((s) => s.avatarUrl));- if (controller.signal.aborted) return;- setStatus("ready");- } catch (err) {- // Cancel (AbortController) returns to idle silently.- if (err instanceof DOMException && err.name === "AbortError") {- setStatus("idle");- return;- }- if (err instanceof StargazersApiError) {- toast.error(messageForApiError(err.code, err.status));- setStatus("idle");- return;- }- toast.error("Couldn't reach GitHub — retry");- setStatus("idle");- } finally {- genAbortRef.current = null;- }- }, []);-- const cancel = useCallback(() => {- genAbortRef.current?.abort();- setStatus("idle");- }, []);-- const reset = useCallback(() => {- genAbortRef.current?.abort();- setData(null);- setZeroStars(false);- setStatus("idle");- }, []);-- const clearZeroStars = useCallback(() => {- setZeroStars(false);- }, []);-- return {- status,- data,- zeroStars,- generate,- cancel,- reset,- clearZeroStars,- };-}diff --git a/app/(home)/stars/hooks/use-stars-customizer.ts b/app/(home)/stars/hooks/use-stars-customizer.tsdeleted file mode 100644index 2d1a8b9c..00000000--- a/app/(home)/stars/hooks/use-stars-customizer.ts+++ /dev/null@@ -1,31 +0,0 @@-"use client";--import { useCallback, useMemo, useState } from "react";--/**- * Owns the optional Customize panel: scalar inputProps (accent/theme/speed)- * plus the panel's open/closed visibility.- */-export function useStarsCustomizer() {- const [accentColor, setAccentColor] = useState("#ffbb00");- const [theme, setTheme] = useState<"light" | "dark">("light");- const [speed, setSpeed] = useState(1);- const [showCustomizer, setShowCustomizer] = useState(false);-- const onChange = useCallback((key: string, value: unknown) => {- if (key === "accentColor") setAccentColor(value as string);- else if (key === "theme") setTheme(value as "light" | "dark");- else if (key === "speed") setSpeed(value as number);- }, []);-- const toggleCustomizer = useCallback(() => {- setShowCustomizer((s) => !s);- }, []);-- const values = useMemo(- () => ({ accentColor, theme, speed }),- [accentColor, theme, speed],- );-- return { values, onChange, showCustomizer, toggleCustomizer };-}diff --git a/app/(home)/stars/hooks/use-stars-tool.ts b/app/(home)/stars/hooks/use-stars-tool.tsdeleted file mode 100644index 23b2e88a..00000000--- a/app/(home)/stars/hooks/use-stars-tool.ts+++ /dev/null@@ -1,144 +0,0 @@-"use client";--import { useQueryState } from "nuqs";-import { useCallback, useEffect, useMemo, useRef, useState } from "react";-import { toast } from "sonner";-import { parseRepoInput } from "@/lib/parse-repo";-import { usePrefersReducedMotion } from "@/lib/use-prefers-reduced-motion";-import registry from "@/registry/__index__";-import type { GitHubStarsInputProps } from "../lib/types";-import { useMp4Export } from "./use-mp4-export";-import { useOrientation } from "./use-orientation";-import { useStargazers } from "./use-stargazers";-import { useStarsCustomizer } from "./use-stars-customizer";--/**- * THE ORCHESTRATOR. Composes orientation + stargazers + customizer + export- * into a single view-model the render-only component tree spreads. Owns the- * input value, the `?repo=` query state, the auto-advance guard, submit/reset,- * and the memoized inputProps.- */-export function useStarsTool() {- const entry = registry["github-stars"];- const reduced = usePrefersReducedMotion();-- // URL state (project rule: nuqs, not raw useSearchParams). `?repo=` reopens a- // shared link; `?o=h|v` persists the orientation.- const [repoParam, setRepoParam] = useQueryState("repo", {- defaultValue: "",- });- const { orientation, setOrientation } = useOrientation();-- const [inputValue, setInputValue] = useState(repoParam ?? "");-- const stargazers = useStargazers();- const customizer = useStarsCustomizer();- const mp4 = useMp4Export();-- const { data, zeroStars, generate, clearZeroStars } = stargazers;-- const canGenerate = parseRepoInput(inputValue) !== null;-- // ---- generation ---------------------------------------------------------- const onInputChange = useCallback(- (v: string) => {- setInputValue(v);- if (zeroStars) clearZeroStars();- },- [zeroStars, clearZeroStars],- );-- // Auto-advance past idle when the page loads with a valid `?repo=` (shared link).- const didAutoStart = useRef(false);- useEffect(() => {- if (didAutoStart.current) return;- didAutoStart.current = true;- if (repoParam && parseRepoInput(repoParam)) {- setInputValue(repoParam);- void generate(repoParam);- }- }, [repoParam, generate]);-- const handleSubmit = useCallback(() => {- const value = inputValue.trim();- if (!parseRepoInput(value)) {- toast.error("Enter a repo as owner/name");- return;- }- void setRepoParam(value);- void generate(value);- }, [inputValue, generate, setRepoParam]);-- // Clear the current repo and return to the idle input so the user can paste a- // different one. The `didAutoStart` ref stays set, so wiping `?repo=` here does- // NOT re-trigger the auto-advance (that only runs on a fresh page load).- const handleReset = useCallback(() => {- stargazers.reset();- mp4.cancel();- setInputValue("");- void setRepoParam(null);- }, [stargazers, mp4, setRepoParam]);-- // ---- inputProps + export ------------------------------------------------ const inputProps = useMemo<GitHubStarsInputProps | null>(- () =>- data- ? {- repo: `${data.owner}/${data.repo}`,- totalStars: data.totalStars,- stargazers: data.stargazers,- orientation,- accentColor: customizer.values.accentColor,- speed: customizer.values.speed,- theme: customizer.values.theme,- }- : null,- [data, orientation, customizer.values],- );-- const handleDownload = useCallback(() => {- if (!inputProps) return;- // inputProps already carry orientation/accent/speed/theme — they are the- // exact POST body the render API expects; the server names the file.- void mp4.download(inputProps);- }, [inputProps, mp4]);-- return {- status: stargazers.status,- idle: {- inputValue,- onInputChange,- onSubmit: handleSubmit,- canGenerate,- zeroStars,- },- generating: {- reduced,- onCancel: stargazers.cancel,- },- ready:- entry && data && inputProps- ? {- entry,- inputProps,- repo: `${data.owner}/${data.repo}`,- totalStars: data.totalStars,- truncated: data.truncated,- reduced,- orientation,- onOrientationChange: setOrientation,- onReset: handleReset,- showCustomizer: customizer.showCustomizer,- onToggleCustomizer: customizer.toggleCustomizer,- customValues: customizer.values,- onCustomChange: customizer.onChange,- exporting: mp4.exporting,- exportProgress: mp4.progress,- onDownload: handleDownload,- onCancelExport: mp4.cancel,- }- : null,- };-}diff --git a/app/(home)/stars/lib/api-errors.ts b/app/(home)/stars/lib/api-errors.tsdeleted file mode 100644index 88b2ae2c..00000000--- a/app/(home)/stars/lib/api-errors.ts+++ /dev/null@@ -1,13 +0,0 @@-/** Map an /api/stargazers error (code + HTTP status) to a friendly toast string. */-export function messageForApiError(code?: string, status?: number): string {- if (code === "not_found" || status === 404) {- return "Repository not found — check owner/name";- }- if (code === "rate_limited" || status === 429) {- return "GitHub rate limit hit — try again shortly";- }- if (code === "invalid_repo" || status === 400) {- return "Invalid repository. Use owner/name";- }- return "Couldn't reach GitHub — retry";-}diff --git a/app/(home)/stars/lib/api.ts b/app/(home)/stars/lib/api.tsdeleted file mode 100644index b0f9e590..00000000--- a/app/(home)/stars/lib/api.ts+++ /dev/null@@ -1,40 +0,0 @@-import type { StargazersPayload } from "./types";--/** Carries the GitHub-side `code` + HTTP `status` so callers can map a message. */-export class StargazersApiError extends Error {- code?: string;- status: number;-- constructor(status: number, code?: string) {- super(`stargazers request failed (${status})`);- this.name = "StargazersApiError";- this.status = status;- this.code = code;- }-}--/**- * Fetch the stargazers payload for a raw repo reference.- *- * Throws {@link StargazersApiError} on a non-OK response. Returns the payload- * unmodified on success — including the zero-star 200 case, so the caller can- * branch into a friendly inline state rather than a hard error.- */-export async function fetchStargazers(- rawRepo: string,- signal: AbortSignal,-): Promise<StargazersPayload> {- const res = await fetch(- `/api/stargazers?repo=${encodeURIComponent(rawRepo)}`,- { signal },- );-- if (!res.ok) {- const body = (await res.json().catch(() => null)) as {- code?: string;- } | null;- throw new StargazersApiError(res.status, body?.code);- }-- return (await res.json()) as StargazersPayload;-}diff --git a/app/(home)/stars/lib/constants.ts b/app/(home)/stars/lib/constants.tsdeleted file mode 100644index 2d79562f..00000000--- a/app/(home)/stars/lib/constants.ts+++ /dev/null@@ -1,24 +0,0 @@-import type { ControlConfig } from "@/lib/customizer-config";--export const INSTALL_COMMAND = "npx shadcn@latest add remocn/github-stars";--export const DOCS_HREF = "/docs/social/github-stars";--/** Scalar controls surfaced in the optional Customize panel (no array control). */-export const CUSTOM_CONTROLS: ControlConfig = {- accentColor: { type: "color", default: "#ffbb00", label: "Accent" },- theme: {- type: "select",- default: "light",- options: ["light", "dark"],- label: "Theme",- },- speed: {- type: "number",- default: 1,- min: 1,- max: 4,- step: 0.25,- label: "Speed",- },-};diff --git a/app/(home)/stars/lib/dims.ts b/app/(home)/stars/lib/dims.tsdeleted file mode 100644index 4dc06e26..00000000--- a/app/(home)/stars/lib/dims.ts+++ /dev/null@@ -1,18 +0,0 @@-import type { Orientation } from "./types";--/** 1280×720 ↔ 720×1280 — the two presets the composition + export render at. */-export function dims(orientation: Orientation) {- return orientation === "vertical"- ? { width: 720, height: 1280 }- : { width: 1280, height: 720 };-}--/** Orientation → the compact `?o=` query value. */-export function orientationToParam(o: Orientation): "h" | "v" {- return o === "vertical" ? "v" : "h";-}--/** `?o=` query value → orientation (anything but "v" is horizontal). */-export function paramToOrientation(p: string): Orientation {- return p === "v" ? "vertical" : "horizontal";-}diff --git a/app/(home)/stars/lib/preload-avatars.ts b/app/(home)/stars/lib/preload-avatars.tsdeleted file mode 100644index e224cad4..00000000--- a/app/(home)/stars/lib/preload-avatars.ts+++ /dev/null@@ -1,39 +0,0 @@-/**- * Warm the browser cache for the stargazer avatars BEFORE the Remotion Player- * mounts. The composition renders them with Remotion's <Img> (which blocks the- * first frame via delayRender until each image loads). If the Player autoPlays- * into a batch of un-cached remote avatars it buffers and doesn't reliably- * resume — the preview appears frozen until you manually pause/play. Preloading- * first makes <Img> resolve from cache instantly, so autoPlay just works.- *- * `crossOrigin = "anonymous"` MUST match Remotion's <Img> so the CORS-enabled- * cache entry is reused (otherwise the browser keeps a separate entry and- * Remotion re-fetches). Each image resolves on load OR error (a broken avatar- * must not block), and the whole batch is bounded by a timeout so one slow image- * can't stall the transition to the ready state.- */-export function preloadAvatars(- urls: string[],- timeoutMs = 2500,-): Promise<void> {- if (typeof window === "undefined" || urls.length === 0) {- return Promise.resolve();- }-- const loads = urls.map(- (url) =>- new Promise<void>((resolve) => {- const img = new Image();- img.crossOrigin = "anonymous";- img.onload = () => resolve();- img.onerror = () => resolve();- img.src = url;- }),- );-- const all = Promise.all(loads).then(() => undefined);- const timeout = new Promise<void>((resolve) => {- window.setTimeout(resolve, timeoutMs);- });- return Promise.race([all, timeout]);-}diff --git a/app/(home)/stars/lib/types.ts b/app/(home)/stars/lib/types.tsdeleted file mode 100644index c1e86635..00000000--- a/app/(home)/stars/lib/types.ts+++ /dev/null@@ -1,30 +0,0 @@-export type Orientation = "horizontal" | "vertical";--export type StarsStatus = "idle" | "generating" | "ready";--/** A single stargazer as surfaced by GET /api/stargazers. */-export type Stargazer = {- login: string;- avatarUrl: string;- starredAt: string;-};--/** Exactly the success shape returned by GET /api/stargazers. */-export type StargazersPayload = {- owner: string;- repo: string;- totalStars: number;- truncated: boolean;- stargazers: Stargazer[];-};--/** JSON-serializable props fed to the GitHubStars composition + export. */-export type GitHubStarsInputProps = {- repo: string;- totalStars: number;- stargazers: Stargazer[];- orientation: Orientation;- accentColor: string;- speed: number;- theme: "light" | "dark";-};diff --git a/app/layout.tsx b/app/layout.tsxindex d3367553..b0559151 100644--- a/app/layout.tsx+++ b/app/layout.tsx@@ -25,9 +25,9 @@ const outfit = Outfit({});const SITE_URL = "https://remocn.dev";-const SITE_TITLE = "Remocn - Cinematic video components for React";+const SITE_TITLE = "Remocn - Make a product demo video with your AI agent";const SITE_DESCRIPTION =- "Production-ready Remotion animations, transitions and backgrounds. Install with the shadcn CLI and own the code";+ "Describe your product, get a demo video. Ready-made animations, transitions and app-screen sims your coding agent can use. No video editor, no motion designer.";export const metadata: Metadata = {// Resolves the relative `/hero.png` below into an absolute URL for crawlers.diff --git a/config/site.ts b/config/site.tsindex 03964f62..af44cbe8 100644--- a/config/site.ts+++ b/config/site.ts@@ -14,6 +14,9 @@ export const SUPPORT_EMAIL = "[email protected]";/** Canonical example install command shown on the landing page. */export const INSTALL_COMMAND = "npx shadcn@latest add remocn/soft-blur-in";+export const QUICKSTART_PROMPT =+ "Set up a new Remotion video project in this folder, then install the remocn agent skill: npx skills add Remocn/remocn --yes. When you're done, start the preview studio so I can watch while we work. I want to make a demo video for my product.";+export const INSTALL_ALL_NAMES: string[] = [...remocnRegistry.items,...remocnUiRegistry.items,