← All work/stagger

Stagger

Production SaaS generating React loading animations from natural-language prompts.

Live at stagger.dev: describe an animation, get production-ready TSX.

Production SaaS generating React loading animations from natural-language prompts.

Stagger is a live SaaS, running under the AKBUILDS banner. The idea for stagger came from a struggle to build production-ready vector graphics and animations that didn't look exactly like every other animation on the web. It takes a natural-language prompt and produces a self-contained TSX component using motion/react and Tailwind CSS. No runtime dependency on Stagger required. There's a curated library of 100+ pre-built animations, Sandpack-powered in-browser previews, and a Brand Kit system that applies your brand tokens to anything generated. Full production stack: Clerk auth, Stripe billing, rate limiting, background jobs, validation, and observability.

Output is self-contained TSX using motion/react and Tailwind. Copy, paste, ship. Zero runtime dependency on Stagger.

  • 01Live, paying SaaS with three pricing tiers
  • 02100+ curated animations shipped in the library
  • 03Self-contained TSX output. No runtime tie-in for customers
  • 04Full production stack: auth, billing, rate limiting, validation, observability

01. Core product

  • AI generation: describe any loading state in plain English, get production TSX back
  • Curated library of 100+ pre-built animations across loaders, icons, transitions
  • Sandpack-powered in-browser preview of every generated component
  • Brand Kit system: apply your brand colors, typography, and design tokens to generations
  • Copy-paste output with zero runtime dependency on Stagger

02. Asset library

  • Loaders: skeletons, spinners, dots, progress bars, shimmer, AI states, chat indicators
  • Icons: state-toggle icons and status icons with full state-machine animations
  • Transitions: page transitions, modals, drawers, notifications, toasts

03. Platform

  • Clerk auth with social providers
  • Multi-tier stripe billing with usage-based pricing
  • Upstash Redis rate limiting per user
  • Inngest background jobs for async generation
  • MCP server (v2) planned for Cursor and Claude Code
  • API access planned for the Studio tier

04. Quality & observability

  • Validation pipeline checks generated code for correctness before serving it
  • Sentry for error tracking
  • PostHog for product analytics
  • Defined performance budgets for load time and bundle size
+-----------------------------------------------------------+
|                    Turborepo Monorepo                     |
+-------------------+-------------------+-------------------+
| apps/web          | packages/shared   | packages/prompts  |
| Next.js App       | Zod schemas       | System prompt     |
| (marketing + app) | Drizzle schema    | Few-shot examples |
|                   | Shared types      | Prompt builder    |
+-------------------+-------------------+-------------------+
| packages/library: 100+ curated animation components       |
+-----------------------------------------------------------+

User Prompt
         |
         v
+------------------+
| Prompt Builder   |
| (system prompt + |
| few-shot +       |
| brand kit)       |
+------------------+
         |
         v
+------------------+
| Claude Sonnet    |
| (generation)     |
+------------------+
         |
         v
+------------------+
| Validation       |
| Pipeline         |
| (syntax, deps,   |
| Tailwind, a11y)  |
+------------------+
         |
         v
+------------------+
| Sandpack Preview |
| + Copy TSX       |
+------------------+

Prompt builder shapes the request, Claude generates, validation gates the result.

Framework
Next.js (App Router)
Language
TypeScript
Styling
Tailwind CSS
UI
shadcn/ui, Lucide
Auth
Clerk
Database
Neon Postgres + Drizzle ORM
Payments
Stripe Billing
Background jobs
Inngest
Storage
Cloudflare R2
Rate limiting
Upstash Redis
LLM
Anthropic Claude Sonnet
Preview
Sandpack
Analytics
PostHog
Errors
Sentry
Hosting
Vercel
Monorepo
Turborepo + pnpm
Generation interface: prompt, live Sandpack preview, output TSX panel
GenerationPrompt, live Sandpack preview, output TSX panel
Library browser: 100+ curated animations by category with live previews
Library100+ curated animations by category with live previews
Brand kit editor: colors, fonts, design tokens applied across generations
Brand kitColors, fonts, design tokens applied across generations
Settings: brand kit editor, API key, and usage metrics
SettingsBrand kit editor, API key, and usage metrics
Single animation preview: full-screen with the copy-able TSX output
PreviewFull-screen with the copy-able TSX output