Open Source • MIT Licensed • Alpha

OpenSaas Stack

Build Admin-Heavy Apps with Confidence
Access Control First • AI-Safe • Type-Safe

A Modern Framework for Admin-Heavy Applications

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.

Built for Modern Development

Security, type-safety, and developer experience are at the core

Access Control First

Automatic access control on all database operations. Operation-level, field-level, and filter-based access with silent failures to prevent information leakage.

AI-Safe Architecture

Built to be easy and safe for AI coding agents. Clear APIs, predictable patterns, and automatic guardrails prevent common security mistakes.

Type-Safe

Full TypeScript support with automatically generated types from your schema. Catch errors at compile time, not runtime.

Prisma-Powered

Built on Prisma for reliable, type-safe database operations. Supports PostgreSQL, MySQL, SQLite, and more.

Fully Composable UI

Choose from 4 levels of abstraction: primitives, fields, standalone components, or complete admin UI. Use what you need.

Production-Ready

Built with Radix UI and shadcn/ui for accessibility. OAuth support, file storage, rich text editing, and more out of the box.

Beautiful Admin UI Out of the Box

Production-ready components built with Radix UI and shadcn/ui

Admin Dashboard

Admin Dashboard

List View

List View with Filters

Edit Form

Edit Form

Create Form

Create Form

Simple, Declarative API

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

Built on Modern Technologies

Standing on the shoulders of giants

Next.js 15+

App Router & Server Components

React 19

Latest React features

TypeScript

Full type safety

Prisma

Type-safe ORM

Radix UI

Accessible primitives

shadcn/ui

Beautiful components

Tailwind CSS v4

Utility-first styling

Better-auth

Modern authentication

Ready to Build Something Amazing?

OpenSaaS Stack is open source and MIT licensed. Get started today!

Current Status: Alpha • Active Development • MIT License

Perfect For

SaaS Applications

Build multi-tenant applications with role-based access control and user management out of the box.

Content Management

Create blogs, news sites, and documentation platforms with rich text editing and media management.

Internal Tools

Rapidly build admin dashboards, backoffice systems, and internal applications for your team.

Customer Portals

Develop secure customer-facing portals for account management, support tickets, and more.