Protokit

Introduction

Welcome to Datyze - A production-ready Next.js 15 SaaS boilerplate optimized for self-hosting

Welcome to Datyze

Datyze is a production-ready Next.js 15 SaaS boilerplate optimized for self-hosting with Coolify on VPS infrastructure. Built as a monorepo using pnpm workspaces and Turbo, the application uses a modern stack with TypeScript, Tailwind CSS, DrizzleORM, and NextAuth.js v5.

Key Features

  • Next.js 15 with App Router and React Server Components
  • TypeScript for type-safe development
  • DrizzleORM with PostgreSQL for database management
  • NextAuth.js v5 for authentication with multiple providers
  • Dual Payment Support - Both Stripe and Lemon Squeezy
  • Multi-tenancy with team-based isolation
  • Docker optimized for self-hosting with Coolify
  • Monorepo structure with pnpm workspaces and Turbo

Tech Stack

CategoryTechnology
FrameworkNext.js 15
LanguageTypeScript
DatabasePostgreSQL + DrizzleORM
AuthenticationNextAuth.js v5
StylingTailwind CSS
UI ComponentsRadix UI + shadcn/ui
PaymentsStripe / Lemon Squeezy
EmailReact Email + Resend/Brevo
Monorepopnpm + Turbo
DeploymentDocker + Coolify

Quick Start

Get started with Datyze in minutes:

# Clone the repository
git clone https://github.com/idkbutimlucas/Datyze.git
cd Datyze
 
# Install dependencies
pnpm install
 
# Copy environment variables
cp .env.example .env
 
# Start the development server
pnpm dev

Project Structure

Datyze/
├── apps/
│   └── web/              # Main Next.js application
├── packages/
│   ├── auth/             # NextAuth.js configuration
│   ├── database/         # DrizzleORM + PostgreSQL
│   ├── email/            # React Email templates
│   ├── stripe/           # Stripe integration
│   ├── lemonsqueezy/     # Lemon Squeezy integration
│   ├── ui/               # Shared UI components
│   └── tsconfig/         # Shared TypeScript config
└── docker-compose.yml    # Docker configuration

Next Steps

On this page