Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.refactkit.com/llms.txt

Use this file to discover all available pages before exploring further.

RefactKit gives you a complete, production-ready foundation for building multi-tenant SaaS applications. Authentication, organization workspaces, role-based access control, internationalization, and file storage are all pre-configured — so you can focus on building your product instead of your infrastructure.

Quick Start

Set up RefactKit and launch your dev server in under 5 minutes.

Multi-Tenancy

Understand how organizations, workspaces, and data isolation work.

Authentication

Learn how sign-up, login, OAuth, and session management work for your users.

Roles & Permissions

Control what Members, Admins, and Owners can do in your app.

Get up and running

1

Clone and install

Clone the repository and install dependencies with pnpm install.
2

Configure environment

Copy .env.example to .env and fill in your database, auth, and email credentials.
3

Sync the database

Run npx drizzle-kit push to create all tables in your PostgreSQL database.
4

Start developing

Run pnpm dev to start the development server at http://localhost:3000.

Explore by topic

Routing

Add pages and organization-scoped routes to your app.

Database

Define tables, push schema changes, and query data with Drizzle ORM.

Forms

Build validated forms with TanStack Form and Base UI primitives.

File Uploads

Securely upload and serve images via Supabase Storage.

Emails

Send transactional emails for invitations, resets, and verification.

Internationalization

Add multi-language support including RTL languages like Arabic.