Skip to main content
Organization-ready template

Workspace collaboration for
your next service

This template now includes Better Auth organizations, slug-aware workspace routing, member directories, API keys, public documentation, domain-aware invitation flows, and role-aware settings so you can start from a real multi-tenant foundation.

OAuth login, API keys, verified invitation acceptance, domain restrictions, role-aware permissions

Organization and workspace flows are included

The branch now ships the core collaboration surface most SaaS products need before domain-specific features begin.

Included
Organization-scoped routing
Global dashboard entry resolves active or deterministic fallback organization context and redirects into slug-preferred workspace URLs.
Included
Protected workspace actions
Create, update, delete, and switch workspace mutations use protected server actions with validation and cache invalidation.
Included
Organization-backed data model
Prisma models now include organizations, members, invitations, active organization sessions, indexes, and repository cache tags.
Included
Better Auth organizations
Workspaces preserve the product language while using Better Auth organization APIs for membership and permission checks.
Included
Domain-aware invitations
Admins can restrict invitations to allowed email domains, users can accept or reject valid invites, and zero-workspace onboarding stays actionable.
Included
Settings and member management
Workspace settings include general settings, allowed email domains, user lists, direct member adds, role edits, invitations, Better Auth Teams, and a placeholder section for roles.
Included
Personal and organization API keys
Personal keys act as the owning user, organization keys act for a workspace, and key-only /api/v1 routes enforce explicit scopes.
Included
Public documentation center
The /docs section publishes localized Markdown and MDX pages with navigation, search, release notes, changelogs, and template usage guidance.
Management surfaces

Workspace administration is ready to extend

Dedicated settings pages, invitation handling, team management, and role-aware controls give product teams concrete places to add billing, custom roles, or audit trails.

Workspace settings sectionsExtend the settings shell with billing, domain policies, audit logs, team-scoped resources, or other organization-level controls.
Invitation lifecycleBuild on pending, accepted, rejected, canceled, expired, and domain-restricted invitation states with email delivery or notifications.
Role-aware permissionsThe owner, admin, and member model can evolve into custom roles while keeping assignment rules centralized.

Built with

Next.js 16React 19TypeScriptTailwind v4PrismaPostgreSQLBetter AuthBetter Auth OrganizationsBetter Auth API Keysshadcn/uinext-intl
Application template logo

Start from here

Create a workspace, invite collaborators, assign roles, and shape the app around your domain.

© 2026 Application Template. All rights reserved.
nextjs.contixly.com