Overview
snapcn extends the code-ownership model popularised by shadcn/ui to programmatic video. Instead of treating animations as closed npm dependencies with fixed props, running npx shadcn add drops readable TypeScript source code directly into components/snap-cn/.
Technical Foundation
The library requires an existing Remotion project initialised with components.json. Because CSS custom properties do not consistently survive Remotion video rendering, snapcn avoids Tailwind utility classes in favour of an inline theme prop. All motion relies on standard Remotion primitives—spring, interpolate, and useCurrentFrame—meaning frame counts and easing curves can be adjusted directly in the file. Render outputs export to MP4 using standard Remotion workflows (CLI, SSR, or Remotion Lambda).
AI Workflow Integration
snapcn includes a dedicated agent skill that exposes the component catalogue, motion design rules, and parameter constraints over the Model Context Protocol (MCP). Tools like Claude Code and Cursor can consume this context to script, lay out, and render video demos automatically.