Primebrick v3 is an open-source framework that defines infrastructure, architecture, and coding rules according to best practices. MIT license: use it in commercial projects, no strings attached.
Everything is an entity — not just your domain models, but settings, configurations, and metadata too. Define your entities, and Primebrick handles the rest: database migrations, API endpoints, RBAC, backoffice UI, tests — all generated following your conventions.
Your infrastructure, your rules. No vendor lock-in: Primebrick runs identically from your laptop to the enterprise datacenter, from K8s cluster to the public cloud closest to your users.
Primebrick integrates AI directly into the development workflow. Describe a feature in natural language and the AI generates the schema, API endpoints, UI pages, and tests — all following the framework conventions. What used to take days of boilerplate now takes minutes.
Describe your entity, get the database migration, API CRUD, RBAC permissions, and backoffice UI generated automatically.
The AI knows Primebrick patterns: it generates code that follows your architecture, not generic boilerplate.
Every generated feature comes with test scaffolding. Ship with confidence, not with hope.
Primebrick supports the full spectrum of development workflows. Use your IDE of choice for deep, hands-on coding. Or let AI agents build features directly from the web app — no local environment needed.
In-browser AI agents
Describe what you want, approve the plan, and AI agents build it directly in the web app. No local setup, no environment config. From idea to deployed feature without leaving the browser.
VS Code, Cursor, Windsurf
Clone, run locally, debug with breakpoints, full control. The traditional developer experience with all the framework conventions enforced by tooling.
Primebrick is opinionated about architecture but design-free about UI. Use any component library — vanilla HTML, Svelte, or our own Primebrick UI Library. The micro-frontend architecture lets you build any page with any component, while the framework enforces best practices.
Settings, configurations, metadata — all entities. The same CRUD, RBAC, and validation patterns apply everywhere.
Best practices enforced by the framework. But you choose the UI: vanilla HTML, Svelte, or our Primebrick UI Library.
Our own component library with best practices built in. Use it directly or as a reference for your own components.
Like microservices, but for the frontend. Each page is independent, deployable, and can use different component stacks.
Every backoffice starts well and ends in chaos. Primebrick v3 flips the perspective: we start from best practices and enforce them through the framework.
K8s manifests, Helm charts, Terraform templates ready for staging and production.
Clean separation between domain, application, infrastructure, and UI. Testable by construction.
Linting, strict types, mandatory patterns: technical debt is prevented, not paid later.
OpenTelemetry, structured logging, health-checks integrated from the first commit.
We made the hard decisions once, so your teams don't make them every sprint. Every brick is tested, integrated, and documented.
/ AUTHOIDC, role management, granular schema-level permissions.
/ DATAPostgreSQL: DB server AND vector server for generative AI. Soft-delete, audit fields, bulk operations.
/ UICRUD, tables, forms, filters generated from domain schemas.
/ OBSOpenTelemetry integrated, tracing, metrics, correlated logs.
/ MULTILogical and physical isolation for thousands of organizations.
/ SDKTypeScript clients generated from endpoints, end-to-end type safety.
Primebrick uses PostgreSQL not just as a database, but as a vector server for generative AI. No separate vector database to manage. More database support coming soon.
From browser to database — clear ports, protocols, and data flow. Dockerized for local dev, Terraform-ready for production.
Frontend, Backend, Microservices, Libraries, Data — each layer has a clear responsibility and communicates through defined protocols.
SvelteKit Admin UI — communicates only with the Backend API
Express API — Auth, RBAC, Service Registry, Proxy
Independent Docker services — self-register via NATS
@primebrick/sdk + @primebrick/dal-pg — shared across all services
PostgreSQL — single data store, accessed via DAL
Clear structure, objective coding rules, DX designed for speed. Clone, run, and you're already in a best-practice environment — CI/CD, linting, types, tests, observability all ready.
MIT license, open and inspectable code, deploy where you decide. Reduce time-to-market and technical debt from minute zero. No vendor lock-in, no contractual surprises.
Primebrick v3 is released under the MIT license: you can use, modify, redistribute, and integrate it in commercial products without royalties. Code is public on GitHub, design decisions are documented, contributions are welcome.
Clone the repo, follow the quick-start, and you're in production with an architecture your future developers will thank you for choosing.