OpenSaasAU/stack
OpenSaasAU/stack · 3 stars · 2 plugins
Marketplace Official OpenSaaS Stack plugin marketplace for development and migration tools
Install
/plugin marketplace add OpenSaasAU/stackRun inside Claude Code, then install plugins from it. Check the repo's README before you run it.
Plugins 2
After adding the marketplace, install one with /plugin install <name>@opensaas-stack-marketplace.
- 1opensaas-stackFeature-driven development assistant for OpenSaaS Stack. Build complete applications by describing what you want to build instead of configuring infrastructure.
/plugin install opensaas-stack@opensaas-stack-marketplace - 2opensaas-migrationOpenSaaS Stack migration assistant with AI-guided configuration, schema analysis, and code generation support
/plugin install opensaas-migration@opensaas-stack-marketplace
Files
OpenSaas Stack
Beta. The onboarding path and core APIs are stable enough to build on; some advanced features are still evolving. Pin versions for production.
A config-first stack for building admin-heavy applications with Next.js App Router — designed so you can describe features to an AI coding agent (Claude Code) and let the framework handle the technical complexity, with access control enforced on every database operation by default.
- 🔒 Access control first — every
context.dboperation is automatically secured; denied reads returnnull/[](no information leakage). - 🤖 Built for Claude Code — clear, predictable patterns plus a shipped project
CLAUDE.mdand MCP tooling, so you build by describing features. - ⚡ Config-first — define lists, fields, and access rules once; generate the Prisma contract, TypeScript types, and a typed context.
- 🧩 Composable & extensible — shadcn/ui primitives → field components → standalone CRUD → full admin UI; add custom field types without forking core.
Quick Start (3 steps)
You need Node.js 18+ and pnpm (npm install -g pnpm).
# 1. Scaffold — installs deps and generates the schema npm create opensaas-app@latest my-app # 2. Run — starts the Dev database, applies the schema, and runs the app cd my-app pnpm dev
3. Build with Claude Code. Open the project in Claude Code and describe what you want — e.g. "add a comments feature to posts" or "add authentication". The scaffolded project ships a CLAUDE.md and MCP tooling so Claude builds within the framework's guardrails.
Your app runs at http://localhost:3000; the auto-generated admin UI is at /admin.
Want authentication from the start?
npm create opensaas-app@latest my-app --with-auth
The scaffolder runs install → generate for you. To skip that and run the steps yourself, pass
--no-install.
📚 Full documentation → · Quick Start guide → · Building with Claude Code →
How it works
1. Define your schema in opensaas.config.ts
import { config, list } from '@opensaas/stack-core'
import { text, select, relationship } from '@opensaas/stack-core/fields'
import type { AccessControl } from '@opensaas/stack-core'
// Access control returns a boolean, or a Where filter that scopes the rows.
const isAuthor: AccessControl = ({ session }) =>
session ? { authorId: { equals: session.userId } } : false
export default config({
db: { provider: 'postgresql' },
lists: {
Post: list({
fields: {
title: text({ validation: { isRequired: true } }),
content: text(),
status: select({
options: [
{ label: 'Draft', value: 'draft' },
{ label: 'Published', value: 'published' },
],
defaultValue: 'draft',
}),
author: relationship({ ref: 'User.posts' }),
},
access: {
operation: {
// Anonymous users only see published posts; authors see their own drafts too.
query: ({ session }) => (session ? true : { status: { equals: 'published' } }),
update: isAuthor,
delete: isAuthor,
},
},
}),
User: list({
fields: {
name: text({ validation: { isRequired: true } }),
email: text({ isIndexed: 'unique' }),
posts: relationship({ ref: 'Post.author', many: true }),
},
}),
},
})
2. Generate
pnpm generate # → prisma/contract.ts, prisma/contract.json, .opensaas/types.ts, .opensaas/context.ts
pnpm dev runs this for you on every start and on every edit to opensaas.config.ts — there is no separate database step to run first.
3. Use the access-controlled context in your app
import { getContext } from '@/.opensaas/context'
export async function getPosts() {
const context = await getContext() // pass a session for authenticated access
// Access control is enforced automatically.
return context.db.Post.include('author', (author) => author.select('name')).all()
}
Denied operations return null (single) or [] (many) rather than throwing, so callers can't distinguish "denied" from "doesn't exist". Always null-check writes:
const post = await context.db.Post.update({ where: { id }, data })
if (!post) return { error: 'Not found or access denied' }
What's in the box
Packages
| Package | Purpose |
|---|---|
@opensaas/stack-core |
Config system, fields, access-control engine, hooks, generators (MCP runtime via @opensaas/stack-core/mcp) |
@opensaas/stack-cli |
opensaas generate / dev and the migration tooling |
@opensaas/stack-ui |
Composable admin UI — primitives, field components, standalone CRUD, full admin |
@opensaas/stack-auth |
Better-auth integration (sessions, OAuth, MCP adapter via @opensaas/stack-auth/mcp) |
@opensaas/stack-tiptap |
Rich-text richText() field (third-party field example) |
@opensaas/stack-rag |
Semantic search with vector embeddings |
@opensaas/stack-storage (+ -s3, -vercel) |
File/image uploads with pluggable storage adapters |
create-opensaas-app |
npm create opensaas-app project scaffolder |
Examples live in examples/: starter, starter-auth, blog, auth-demo, composable-dashboard, custom-field, json-demo, file-upload-demo, mcp-demo, rag-ollama-demo, rag-openai-chatbot, tiptap-demo.
Composable UI
Choose your level of abstraction:
import { Button, Card } from '@opensaas/stack-ui/primitives' // 1. shadcn/ui primitives
import { TextField, SelectField } from '@opensaas/stack-ui/fields' // 2. field components
import { ItemCreateForm, ListTable } from '@opensaas/stack-ui/standalone' // 3. standalone CRUD
import { AdminUI } from '@opensaas/stack-ui' // 4. full admin UI
See examples/composable-dashboard and the UI docs.
Learn more
- Quick Start — build a working app
- Migrating from Keystone — the canonical Keystone → stack guide (run
npx @opensaas/stack-cli migrateto get started) - Building with Claude Code — the AI-assisted workflow
- Access Control · Field Types · Hooks
- Authentication · Storage · RAG
- Deployment — ship to production on Vercel + Postgres with
prisma migrate
Contributing & monorepo development
Working on OpenSaas Stack itself (not building an app with it)? See CONTRIBUTING.md for monorepo setup, building packages, running tests, and the changeset/plugin-version workflow.
License
MIT
{
"name": "opensaas-stack-marketplace",
"owner": {
"name": "OpenSaaS Team",
"email": "team@opensaas.au"
},
"metadata": {
"description": "Official OpenSaaS Stack plugin marketplace for development and migration tools",
"version": "1.1.2",
"homepage": "https://stack.opensaas.au/"
},
"plugins": [
{
"name": "opensaas-stack",
"source": "./claude-plugins/opensaas-stack",
"description": "Feature-driven development assistant for OpenSaaS Stack. Build complete applications by describing what you want to build instead of configuring infrastructure.",
"version": "0.2.4",
"author": {
"name": "OpenSaaS",
"url": "https://opensaas.au"
},
"homepage": "https://stack.opensaas.au/",
"repository": "https://github.com/OpenSaasAU/stack",
"keywords": [
"opensaas",
"nextjs",
"prisma",
"feature-driven",
"code-generation"
],
"category": "development",
"tags": [
"development",
"feature-driven",
"code-generation"
]
},
{
"name": "opensaas-migration",
"source": "./claude-plugins/opensaas-migration",
"description": "OpenSaaS Stack migration assistant with AI-guided configuration, schema analysis, and code generation support",
"version": "0.4.6",
"author": {
"name": "OpenSaaS Team",
"url": "https://github.com/OpenSaasAU/stack"
},
"repository": "https://github.com/OpenSaasAU/stack",
"keywords": [
"migration",
"opensaas",
"prisma",
"keystone",
"nextjs",
"code-generation"
],
"category": "migration",
"tags": [
"migration",
"schema-analysis",
"code-generation"
]
}
]
}Facts
- Kind
- Marketplace
- Repo
- OpenSaasAU/stack
- Group
- Uncategorized
- Stars
- 3
- Marketplace name
- opensaas-stack-marketplace
- Owner
- OpenSaaS Team
- License
- MIT
- Language
- TypeScript
- Created
- 2025-10-17
- Last push
- 2026-11-22
- Forks
- 1
- Homepage
- stack.opensaas.au
- Plugins
- 2
Next on this shelf
- 1476oxidecomputer/claude-pluginsoxidecomputer/claude-plugins3
- 1477pluginagentmarketplace/custom-plugin-cloudflarepluginagentmarketplace/custom-plugin-cloudflare3
- 1478pluginagentmarketplace/custom-plugin-linuxpluginagentmarketplace/custom-plugin-linux3
- 1479pluginagentmarketplace/custom-plugin-nextjspluginagentmarketplace/custom-plugin-nextjs3
- 1480pluginagentmarketplace/custom-plugin-product-managerpluginagentmarketplace/custom-plugin-product-manager3
- 1481richard-gyiko/data-wrangler-pluginrichard-gyiko/data-wrangler-plugin3