Straktur Documentation

Build internal business apps faster with Next.js

TL;DR: Next.js 16 boilerplate for internal business apps. One way to do things. Optimized for AI-assisted development.

What is Straktur?

Straktur is a production-ready starter for building internal business applications - CRMs, admin panels, dashboards, and operational tools.

Not for: Public SaaS, marketing sites, e-commerce.

Tech Stack

LayerTechnology
FrameworkNext.js 16 (App Router, React 19)
LanguageTypeScript (strict mode)
StylingTailwindCSS 4 + shadcn/ui
DatabasePostgreSQL + Drizzle ORM
APIoRPC + TanStack Query
Authbetter-auth

Quick Start

git clone <repo-url> my-app
cd my-app
npm install
cp .env.example .env.local
# Edit .env.local with your database URL
npm run db:push && npm run db:seed
npm run dev

Open http://localhost:3000 → Login: [email protected] / password123

Documentation Structure

Getting Started

Core Concepts

Features

Guides

Philosophy

  1. One way to do things - No "you can also..." alternatives
  2. Feature-first - All code for a feature lives together
  3. Type-safe end-to-end - TypeScript from database to UI
  4. Server-first - Server Components by default
  5. AI-optimized - Documentation designed for Cursor/Claude

Reference Implementation

The Clients feature (/clients) demonstrates all patterns:

FilePurpose
src/features/clients/Feature module
src/server/routers/clients.tsoRPC router
src/app/(dashboard)/clients/page.tsxList page
src/app/(dashboard)/clients/[id]/page.tsxDetail page

Study this feature to understand the patterns, then apply them to your own features.

On this page