Open Source — MIT Licensed

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

settings-page.tsx
// 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

settings-page.tsx
// 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.

01

Browse

Explore a curated catalog of primitives — layouts, forms, tables, auth, and more. Each one is tested, typed, and documented.

02

Assemble

Point your AI agent at the primitives it needs. It composes them into your feature instead of generating from scratch.

03

Ship

Get production-ready code in minutes, not hours. Consistent APIs, accessible markup, responsive by default.

terminal
# Install Primstack
pnpm add @primstack/ui @primstack/core
# Generate a CRUD feature using primitives
pnpm 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.ts

Measurably 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

4 primitives

Layouts

App shells, sidebars, split views, responsive grids

12 primitives

Forms

Validated inputs, field groups, multi-step wizards

12 primitives

Tables

Sortable, filterable, paginated data tables

6 primitives

Auth

Login, signup, password reset, OAuth flows

8 primitives

Feedback

Toasts, modals, alerts, confirmation dialogs

12 primitives

Data Display

Stats, charts, KPI cards, metric grids

6 primitives

Navigation

Breadcrumbs, tabs, command palettes, menus

3 primitives

File Handling

Upload zones, file lists, image previews

3 primitives

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 License

Free 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
Get Started

Cloud

Waitlist

Coming soon

Managed services for teams shipping with AI agents.

  • Hosted primitive registry
  • Team collaboration
  • Usage analytics
  • Private primitives
  • Priority support
  • Custom integrations
Join Waitlist

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.