Development Overview
An introduction to the Nebutra-Sailor monorepo — what each app does, how the workspace is organized, and how to get started contributing.
What is Nebutra-Sailor?
Nebutra-Sailor is a Turborepo monorepo that ships a complete AI-native SaaS product as working code. It contains 16 apps under apps/ (plus the backends/gateway API) and 100+ shared packages across packages/{ai,commerce,design,iam,integrations,ops,platform}, all typed end-to-end, sharing a common design system, API contract, and runtime token system.
The monorepo is the source of truth for nebutra.com, app.nebutra.com,
auth.nebutra.com, api.nebutra.com, and nebutra.com/docs.
Apps at a glance
| App | Port | Purpose | Framework |
|---|---|---|---|
apps/landing | 3000 | Public marketing site (34 locales) | Next.js 16 + next-intl |
apps/web | 3001 | Authenticated SaaS dashboard | Vite + React |
backends/gateway | 3002 | REST API — auth, RBAC, billing, AI proxy | Hono + OpenAPI (@nebutra/gateway) |
apps/auth | 3101 | Login center (auth.nebutra.com), @nebutra/auth-center | Next.js 16 + Better Auth |
apps/admin | — | Admin-of-admins console | Next.js 16 |
apps/sailor-docs | 3004 | Public product documentation (this site) | Next.js 16 + Fumadocs |
apps/design | 3109 | Internal design system documentation | Next.js 16 |
apps/storybook | 6006 | Component library playground | Storybook |
apps/studio | 3333 | Content management | Sanity Studio |
Other apps in apps/: forge, idp, kcq, kcq-docs, mail-preview, router — each a distinct product or internal tool, not part of the core dashboard/gateway/landing trio.
Prerequisites
Before you can run the monorepo locally you need the following tools installed on your machine.
| Tool | Minimum version | Why |
|---|---|---|
| Node.js | 22.x | Runtime for all apps and tooling |
| pnpm | 10.32+ | Workspace package manager |
| Docker | 24+ | Local PostgreSQL, Redis, and ClickHouse |
| Git | 2.40+ | Source control |
The repo uses pnpm workspaces. Running npm install or yarn install will produce incorrect results and is not supported.
Quick start
git clone https://github.com/nebutra/nebutra-sailor.git
cd nebutra-sailorpnpm installpnpm infra:upThis starts PostgreSQL 16, Redis 7, and ClickHouse 24 via Docker Compose.
Copy the example env files and fill in your secrets:
cp apps/web/.env.example apps/web/.env.local
cp apps/auth/.env.example apps/auth/.env.local # if present
cp backends/gateway/.env.example backends/gateway/.env.local
cp apps/landing/.env.example apps/landing/.env.local
# Prefer AUTH_PROVIDER=better-auth for local parity with productionpnpm db:generate # generate Prisma client
pnpm db:migrate # run all pending migrations
pnpm db:seed # seed development datapnpm dev # lightweight preview: landing + web + gateway, no keys/Docker/DB neededFor everything else — every app, Storybook, docs — use:
pnpm dev:all # every app in parallel via Turborepo
pnpm dev:dashboard # web + admin + gateway
pnpm dev:marketing # landing + blog + studioFor a full walkthrough with environment variable descriptions, common issues, and port assignments, see the Local Development guide.
Key conventions
- Package manager: pnpm 11.28.5+ with workspaces. Always run
pnpmat the repo root. - Linter + formatter: Biome (replaces ESLint + Prettier). Run
pnpm lint:fixto auto-fix. - Type checking:
pnpm typecheckrunstsc --noEmitacross all packages via Turbo. - Testing: Vitest for unit tests, Playwright for E2E. Run
pnpm testandpnpm e2e. - Build system: Turborepo. Tasks are defined in
turbo.json.
Related
How is this guide?
Last updated on