Stop generating.
Start assembling.
Curated, tested primitives that AI coding agents compose into production-ready applications. No more token-wasting generation from scratch.
Without Primstack
// Without Primstack: AI generates from scratch every time// 🔴 2,400 tokens spent generating a settings page export function SettingsPage() { const [tab, setTab] = useState('general') const [formData, setFormData] = useState({}) const [errors, setErrors] = useState({}) const [saving, setSaving] = useState(false) // ... 200+ lines of hand-rolled form logic // ... validation, error handling, toast notifications // ... responsive layout, loading states // ... every project, regenerated from scratch}With Primstack
// With Primstack: AI assembles tested building blocks// ✅ 180 tokens — same result, production-ready import { SettingsShell } from '@primstack/ui'import { useForm } from '@primstack/core' export function SettingsPage() { const form = useForm({ schema: settingsSchema }) return ( <SettingsShell tabs={['General', 'Billing', 'Notifications']} form={form} onSave={updateSettings} /> )}AI-generated code has a problem
Every time an AI agent writes code from scratch, the same issues compound.
Token waste
AI agents burn thousands of tokens regenerating the same patterns — forms, tables, auth flows — every single project.
Inconsistency
Every generation is slightly different. Naming conventions drift, component APIs diverge, and your codebase becomes a patchwork.
Maintenance trap
Generated code has no upstream. Bug fixes and improvements happen once and stay in one project — never propagated.
Generic output
AI models optimize for "works" not "works well." Generated code lacks the edge-case handling that production demands.
Three steps to production
Primstack works with your existing AI workflow. No lock-in, no special syntax.
Browse
Explore a curated catalog of primitives — layouts, forms, tables, auth, and more. Each one is tested, typed, and documented.
Assemble
Point your AI agent at the primitives it needs. It composes them into your feature instead of generating from scratch.
Ship
Get production-ready code in minutes, not hours. Consistent APIs, accessible markup, responsive by default.
# Install Primstackpnpm add @primstack/ui @primstack/core # Generate a CRUD feature using primitivespnpm primstack generate crud users \ --fields "name:string, email:email, role:enum" \ --features "search, pagination, bulk-actions" # ✅ Created:# src/features/users/UsersPage.tsx# src/features/users/UserForm.tsx# src/features/users/UserTable.tsx# src/features/users/user.schema.tsMeasurably better output
Early benchmarks show significant improvements when AI agents use curated primitives versus generating from scratch.
Metric | Without | With Primstack | Improvement |
|---|---|---|---|
| Tokens per feature | [BENCHMARK PLACEHOLDER] | [BENCHMARK PLACEHOLDER] | [BENCHMARK PLACEHOLDER] |
| Time to working feature | [BENCHMARK PLACEHOLDER] | [BENCHMARK PLACEHOLDER] | [BENCHMARK PLACEHOLDER] |
| Accessibility violations | [BENCHMARK PLACEHOLDER] | [BENCHMARK PLACEHOLDER] | [BENCHMARK PLACEHOLDER] |
| Type coverage | [BENCHMARK PLACEHOLDER] | [BENCHMARK PLACEHOLDER] | [BENCHMARK PLACEHOLDER] |
| Bundle size (avg feature) | [BENCHMARK PLACEHOLDER] | [BENCHMARK PLACEHOLDER] | [BENCHMARK PLACEHOLDER] |
The primitive catalog
Every primitive is typed, tested, accessible, and designed to be composed by AI agents or humans alike.
71 primitives across 10 categories
Layouts
App shells, sidebars, split views, responsive grids
Forms
Validated inputs, field groups, multi-step wizards
Tables
Sortable, filterable, paginated data tables
Auth
Login, signup, password reset, OAuth flows
Feedback
Toasts, modals, alerts, confirmation dialogs
Data Display
Stats, charts, KPI cards, metric grids
Navigation
Breadcrumbs, tabs, command palettes, menus
File Handling
Upload zones, file lists, image previews
Settings
Preference panels, feature flags, config forms
The vision
We believe the future of software development is AI agents assembling applications from curated, battle-tested building blocks — not generating code from scratch every time. Primstack is the foundation: an open-source library of primitives purpose-built for the agentic era. Every component is designed to be discovered, composed, and shipped by AI and humans working together.
Open source at the core
Core
MIT LicenseFree forever
Everything you need to build with Primstack.
- Full primitive catalog
- CLI generator tools
- TypeScript + React
- Tailwind CSS integration
- Community support
- All future core updates
Cloud
WaitlistComing soon
Managed services for teams shipping with AI agents.
- Hosted primitive registry
- Team collaboration
- Usage analytics
- Private primitives
- Priority support
- Custom integrations
Built with Primstack
Projects and teams using Primstack to ship faster.
Your project here
Build something amazing with Primstack and get featured.
Your project here
Build something amazing with Primstack and get featured.
Your project here
Build something amazing with Primstack and get featured.