# GatoJS > Open-source Next.js kit for multi-tenant business apps. Sign-in, organizations, roles and isolation land in your repo as plain code you own. - [Introduction to GatoJS: open-source Next.js kit for business apps](https://docs.gatojs.com/introduction.md): GatoJS gives you sign-in, organizations, roles and tenant isolation for a Next.js business app as plain code in your own repository. - [Quickstart](https://docs.gatojs.com/quickstart.md): Create a GatoJS project with create-gato-app, start PostgreSQL and mailpit in Docker, create the first admin and sign in to a running multi-tenant Next.js app in minutes. - [Installation](https://docs.gatojs.com/installation.md): Requirements, every way to create a GatoJS project, manual local setup, the .env file, runtime modes, the admin:create script, port changes and fixes for common setup problems. - [Project structure](https://docs.gatojs.com/project-structure.md): A tour of a GatoJS project: the Next.js app router, feature folders, shared code, the multi-file Prisma schema, the .wa kit state, generated files, workspace packages, scripts and tests. - [Architecture](https://docs.gatojs.com/concepts/architecture.md): How GatoJS is put together: the kit, the core and modules, code copied into your repository instead of installed, the request path from browser to Prisma, and defineModule. - [Module registry](https://docs.gatojs.com/concepts/module-registry.md): How GatoJS discovers features: the generated module registry, the .wa/kit.json kit state, how gato generate rewrites wa:* regions, and how to diagnose a feature that does not register. - [Organizations and multi-tenancy](https://docs.gatojs.com/concepts/organizations.md): How GatoJS isolates tenant data: the core data model, getOrgContext(), the mandatory organizationId filter, the runtime tenant-scope guard and MULTI_ORG modes. - [Authentication and roles](https://docs.gatojs.com/concepts/auth-and-roles.md): How GatoJS configures better-auth for sign-in, sign-up, invitations and password reset, and how global roles and organization roles control access. - [Superadmin, impersonation and service mode](https://docs.gatojs.com/concepts/superadmin-and-service-mode.md): How GatoJS protects the support team's superadmin accounts, controls impersonation, and requires confirmation for every data change made in service mode. - [Core features](https://docs.gatojs.com/concepts/core-features.md): Reference for the five GatoJS core features (auth, organizations, users, account, dashboard): their pages, components, server actions, queries and the shared code they build on. - [Code patterns](https://docs.gatojs.com/guides/code-patterns.md): How to write GatoJS commands, queries and Zod contracts, call them from the UI with service-mode confirmation, and keep the server entry-point architecture test green. - [Build a feature, part 1: register, model and test](https://docs.gatojs.com/guides/build-a-feature.md): Add a domain feature to a GatoJS project: create the feature folder, register it in projectModules, add a Prisma model scoped by organizationId and write failing tests before any code. - [Build a feature, part 2: implement, verify and commit](https://docs.gatojs.com/guides/finish-a-feature.md): Implement the query, command, component and page of a GatoJS feature, then pass npm run verify, integration and mutation tests and commit the change. - [Database and migrations](https://docs.gatojs.com/guides/database-and-migrations.md): How GatoJS organizes its multi-file Prisma schema, connects to Postgres, and how your project creates, commits and deploys migrations, including after gato add and gato remove. - [Translations and locales](https://docs.gatojs.com/guides/i18n.md): How GatoJS uses next-intl: locale routing, per-feature translation files, the generated message registry, and how to add strings and locales. - [Email](https://docs.gatojs.com/guides/email.md): How a GatoJS app sends transactional email through SMTP or Resend, previews it locally in Mailpit, and renders React Email templates for invitations and password resets. - [Testing](https://docs.gatojs.com/guides/testing.md): How GatoJS tests your app: Vitest unit tests, integration tests on real Postgres, Playwright end-to-end tests and Stryker mutation testing, plus database safety and organization isolation tests. - [Built for AI agents](https://docs.gatojs.com/guides/ai-agents.md): How GatoJS keeps AI coding agents honest: separate test-writer and implementer roles, hooks that lock tests, a mutation gate for critical files, agent instructions and architecture tests. - [Working with the kit](https://docs.gatojs.com/guides/working-with-the-kit.md): How your GatoJS project relates to the kit: which changes stay local and which to send upstream, commit conventions, the npm run verify gate, generated files and staying up to date. - [Environment variables](https://docs.gatojs.com/configuration/environment-variables.md): Reference for every environment variable a GatoJS app reads, how @gatojs/env validates them at startup, which are required in production, and how modules add their own. - [Logging and observability](https://docs.gatojs.com/configuration/logging-and-observability.md): How the GatoJS logger works, exporting logs and traces to an OpenTelemetry collector, tracing your own code with withSpan, the default security headers, and the /api/healthcheck endpoint. - [Docker](https://docs.gatojs.com/deployment/docker.md): How the GatoJS Dockerfile builds a small production image from Next.js standalone output, how to run it, and how to apply Prisma migrations on deploy. - [Deploy on Railway](https://docs.gatojs.com/deployment/railway.md): Deploy a GatoJS app to Railway step by step: Postgres, production variables, prisma migrate deploy as a pre-deploy command, the healthcheck, and creating the first accounts with railway run. - [File storage in production](https://docs.gatojs.com/deployment/file-storage.md): Choose where the GatoJS uploads module stores files in production: a Railway Bucket, a Railway volume, or local disk or S3-compatible storage on your own server. - [Handing the app over to a client](https://docs.gatojs.com/deployment/handover.md): Set up production accounts in a GatoJS app, hand it over to the client with superadmin service accounts and a client admin, and remove support access when the support period ends. - [CI workflows](https://docs.gatojs.com/deployment/ci.md): The GitHub Actions workflows every GatoJS project ships with: verify and integration tests, end-to-end tests, mutation testing, dependency audit, secret scanning and workflow lint. - [Kit modules](https://docs.gatojs.com/modules/overview.md): How GatoJS kit modules differ from the core and from your own features, which modules exist, and how to add, remove and choose them for a project. - [Audit logs](https://docs.gatojs.com/modules/audit-logs.md): Record who changed what and when in each organization with the GatoJS audit-logs module, trackAudit, and the AuditTrail component. - [API keys](https://docs.gatojs.com/modules/api-keys.md): Let external systems call your GatoJS API on behalf of an organization with scoped, hashed API keys and authenticateApiKey. - [Uploads](https://docs.gatojs.com/modules/uploads.md): Accept, store and serve organization files in GatoJS on local disk or S3-compatible storage with upload purposes and the FileUpload component. - [Known limitations](https://docs.gatojs.com/known-limitations.md): Known gaps in GatoJS, their impact and how to work around them: mutation testing, deployment, the CLI, kit modules, auth and more. - [Frequently asked questions](https://docs.gatojs.com/faq.md): Answers to common questions about GatoJS: licensing, updates, modules, multi-tenancy and hosting. - [Roadmap](https://docs.gatojs.com/roadmap.md): What is planned for GatoJS: new modules, extension points, the installer wizard, upgrades and English documentation, without dates. - [GatoJS CLI overview](https://docs.gatojs.com/cli/overview.md): What the gato command does, how to run it with npx or npm run wa, which Node version it needs and how its version relates to the kit version. - [create-gato-app](https://docs.gatojs.com/cli/create-gato-app.md): Create a GatoJS project with one command: create-gato-app checks Node, downloads the kit at a release tag and runs gato create with your flags. - [Kit source](https://docs.gatojs.com/cli/kit-source.md): Where gato add, list and update find the GatoJS kit: the --kit flag, GATO_KIT_SOURCE, or kitRepo cloned at the project's version tag. - [gato create](https://docs.gatojs.com/cli/create.md): Assemble a new GatoJS project from a local kit checkout: options, prompts, the order of checks, what is rolled back on failure and what the project gets. - [gato add](https://docs.gatojs.com/cli/add.md): Add a kit module to a GatoJS project: the order of checks, when the kit is fetched, what is rolled back on failure and what to do after the command. - [gato remove](https://docs.gatojs.com/cli/remove.md): Remove a kit module from a GatoJS project: checks, what gets deleted, what stays in the database, storage and .env, and which migration to create. - [gato list](https://docs.gatojs.com/cli/list.md): List the kit modules installed in a GatoJS project, the modules available at the project's kit version, and the project's own modules. - [gato update](https://docs.gatojs.com/cli/update.md): Move a GatoJS project to a newer kit version with a three-way merge: requirements, dry run, the per-file plan, conflicts, rollback and what to do afterwards. - [gato generate](https://docs.gatojs.com/cli/generate.md): Regenerate the GatoJS module registry, the locales file and the wa:* regions from .wa/kit.json; when to run it, what it writes and its errors. - [.wa/kit.json reference](https://docs.gatojs.com/cli/kit-json.md): Reference of a GatoJS project's .wa/kit.json: kit version and repository, project names, locales, installed modules with file hashes, project modules and the module manifest fields. - [Exit codes and messages](https://docs.gatojs.com/cli/exit-codes.md): Every exit code and message of the gato CLI, with what it means and how to fix it. - [Contributing to GatoJS](https://docs.gatojs.com/contributing/overview.md): How to report issues, open pull requests and get them merged in the GatoJS repository: setup, commit conventions, verification gates, review, security reports and licensing. - [Working on the kit repository](https://docs.gatojs.com/contributing/kit-repository.md): How the GatoJS repository is organised for kit development: kit-only files, kit/kit.json, module manifests and kit sync, file ownership, hashes, placeholders, the CLI bundle and its tests, kit CI and workspace packages. - [Add a new kit module](https://docs.gatojs.com/contributing/new-kit-module.md): Add a module to the GatoJS kit end to end: core seams, feature code, manifest, dependencies, placeholders, test setup, kit sync, ownership, CI matrix and documentation. - [Releases](https://docs.gatojs.com/contributing/releases.md): How GatoJS kit versions are released by semantic-release from Conventional Commits, and how the gato-cli and create-gato-app npm packages are published from tags with trusted publishing. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.