Build Admin-Heavy Apps with Confidence
Access Control First • AI-Safe • Type-Safe
OpenSaaS Stack is an open-source framework built on Next.js App Router with automatic access control, AI-safe architecture, and production-ready components. Build secure admin interfaces in minutes, not months.
Security, type-safety, and developer experience are at the core
Automatic access control on all database operations. Operation-level, field-level, and filter-based access with silent failures to prevent information leakage.
Built to be easy and safe for AI coding agents. Clear APIs, predictable patterns, and automatic guardrails prevent common security mistakes.
Full TypeScript support with automatically generated types from your schema. Catch errors at compile time, not runtime.
Built on Prisma for reliable, type-safe database operations. Supports PostgreSQL, MySQL, SQLite, and more.
Choose from 4 levels of abstraction: primitives, fields, standalone components, or complete admin UI. Use what you need.
Built with Radix UI and shadcn/ui for accessibility. OAuth support, file storage, rich text editing, and more out of the box.
Production-ready components built with Radix UI and shadcn/ui

Admin Dashboard

List View with Filters

Edit Form

Create Form
Define your schema, generate your database, and get a full admin UI
import { config, list } from '@opensaas/stack-core'
import { text, relationship, select } from '@opensaas/stack-core/fields'
export default config({
db: { provider: 'sqlite', url: 'file:./dev.db' },
lists: {
Post: list({
fields: {
title: text({ validation: { isRequired: true } }),
content: text(),
status: select({
options: [
{ label: 'Draft', value: 'draft' },
{ label: 'Published', value: 'published' },
],
}),
author: relationship({ ref: 'User.posts' }),
},
access: {
operation: {
query: ({ session }) => {
// Public can see published posts only
if (!session) return { status: { equals: 'published' } }
return true
},
update: ({ session, item }) => {
// Only authors can update their own posts
return session?.userId === item?.authorId
},
},
},
}),
},
})Run pnpm generate to create your Prisma schema and TypeScript types
Standing on the shoulders of giants
App Router & Server Components
Latest React features
Full type safety
Type-safe ORM
Accessible primitives
Beautiful components
Utility-first styling
Modern authentication
OpenSaaS Stack is open source and MIT licensed. Get started today!
Current Status: Alpha • Active Development • MIT License
Build multi-tenant applications with role-based access control and user management out of the box.
Create blogs, news sites, and documentation platforms with rich text editing and media management.
Rapidly build admin dashboards, backoffice systems, and internal applications for your team.
Develop secure customer-facing portals for account management, support tickets, and more.