A Next.js tool that generates ready-to-import Bricks Builder JSON templates. Use pre-built sections or generate full page layouts via prompt and export them as Bricks-compatible JSON.
- Pre-built template library (Hero, Navbar, Features, Pricing, Testimonials, Footer and more)
- Full page presets
- Design tokens (colors, border-radius, shadows, spacing, typography, dark mode)
- API route for AI-powered generation (
/api/generate) - Export as Bricks Import JSON + copy-to-clipboard
- Node.js 20+
- npm 10+
npm install
npm run devThen open in your browser:
http://localhost:3000
npm run lint
npm run build
npm run startThe API route supports OpenAI and Anthropic. Send your API key in the request to /api/generate.
Request fields:
prompt(string)apiKey(string)useAi(boolean)provider("openai" | "anthropic")
src/app/page.tsx– Main UIsrc/app/api/generate/route.ts– Generation APIsrc/lib/bricks-engine.ts– Bricks JSON engine + section generatorssrc/lib/templates.ts– Template catalogsrc/components/*– UI components (form, preview, cards)
- Built with the Next.js App Router.
- For production deployments, consider adding API rate limits before going public.