Straktur

What is Straktur?

Production-ready Next.js codebase for internal tools. Buy the code, deploy it yourself, and customize everything.

Straktur is a Next.js codebase for building internal tools with AI coding agents — structured so the agents don't lose the plot after three prompts.

You describe what you need. AI builds it using Straktur's architectural rules (defined in CLAUDE.md), pre-built adapters for auth/data/storage, and UI primitives like TanStack Table, shadcn/ui, and React Hook Form + Zod.

The result: production-ready code that stays consistent as the app grows — not a prototype that falls apart in week two.

What you use it for

CRMs, admin panels, client portals, ops dashboards, back-office workflows, custom internal apps replacing Airtable or Retool setups.

Not for: public SaaS products, marketing sites, e-commerce storefronts, or anyone looking for a hosted no-code tool.

What you actually buy

When you buy Straktur, you get a production-ready codebase - not a hosted app.

That means:

  • You get the source code
  • You run it locally
  • You deploy it on your own infrastructure
  • You customize it for your own workflows
  • You keep full control over the product you build on top of it

Quick Start

Want to evaluate Straktur properly? Run it locally first.

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 and sign in with the demo account: test@local.dev / testingpassword

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

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 - Structure and docs designed so AI can build features without getting lost

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