Skip to content
Templates · 19 polyglot scaffolds

Pick a stack.
Get a working scaffold in seconds.

Every TheoKit template ships with health checks, structured JSON logs, Dockerfile, CI scaffold, theo.yaml declarative config, and a worked example route. All Apache-2.0 — fork and publish under your org if you want to extend.

$ npx create-theokit my-app

Next.js

next-app

Next.js 16 + Postgres + Auth.js

Next.js App Router with Server Components, Auth.js, Drizzle ORM, Tailwind, Postgres, Vercel-compatible.

Good for
Full-stack web apps · SaaS · marketing sites with backend

$ npx create-theokit my-app --template next-app

next-agent-chat

Next.js + Vercel AI SDK + Postgres

Chat UI with streaming via Vercel AI SDK, multi-LLM routing, message persistence, auth, deploy-ready.

Good for
Conversational AI agents · customer support bots · internal copilots

$ npx create-theokit my-app --template next-agent-chat

next-agent-worker

Next.js + cron + queue worker

Background worker scaffold with cron triggers, Redis queue (BullMQ), retry logic, monitoring hooks.

Good for
Background AI agents · scheduled tasks · async automations

$ npx create-theokit my-app --template next-agent-worker

Node.js

node-express

Node + Express + Postgres

Classic REST API with Express, Postgres via pg, health checks, structured logs, Dockerfile.

Good for
CRUD APIs · admin backends · webhook receivers

$ npx create-theokit my-app --template node-express

node-fastify

Node + Fastify + Postgres

High-throughput Fastify API with TypeScript, Pino logging, Zod validation, OpenAPI generation.

Good for
High-RPS APIs · gateway services · agent webhooks

$ npx create-theokit my-app --template node-fastify

node-nestjs

NestJS + TypeORM + Postgres

Opinionated NestJS module structure with TypeORM, JWT auth scaffold, Swagger docs.

Good for
Enterprise APIs · microservices · teams with NestJS experience

$ npx create-theokit my-app --template node-nestjs

node-cli-worker

Node + Commander + queue consumer

CLI-shaped worker that consumes from a queue, processes, retries, logs structured JSON.

Good for
Background workers · webhook processors · long-running daemons

$ npx create-theokit my-app --template node-cli-worker

Python

python-fastapi

Python + FastAPI + Postgres

FastAPI with SQLAlchemy 2.0, Pydantic, Alembic migrations, uv for deps, async-first.

Good for
ML/AI agent backends · data pipelines · async workers

$ npx create-theokit my-app --template python-fastapi

python-agent-cron

Python + FastAPI + APScheduler

Scheduled Python agent with APScheduler, FastAPI for control plane, Postgres state.

Good for
Data reconciliation jobs · ETL agents · monitoring bots

$ npx create-theokit my-app --template python-agent-cron

python-rag-agent

Python + LangChain + pgvector

Retrieval-Augmented Generation agent with LangChain, pgvector for embeddings, FastAPI control plane.

Good for
Knowledge base agents · doc Q&A · semantic search apps

$ npx create-theokit my-app --template python-rag-agent

Go

go-nethttp

Go + net/http + Postgres

Stdlib-only HTTP server with chi router, sqlc for queries, structured slog, multi-stage Dockerfile.

Good for
High-performance services · binary-deploy targets · low-RAM workloads

$ npx create-theokit my-app --template go-nethttp

go-grpc

Go + gRPC + Buf

gRPC service with Buf for schemas, interceptors for auth + logging, HTTP/2 server.

Good for
Inter-service communication · typed APIs · high-performance RPC

$ npx create-theokit my-app --template go-grpc

Rust

rust-axum

Rust + Axum + Postgres

Axum server with sqlx (compile-time checked queries), tokio runtime, tower middleware.

Good for
Latency-critical services · resource-constrained runtimes · long-running agents

$ npx create-theokit my-app --template rust-axum

Java

java-spring

Java + Spring Boot 3 + Postgres

Spring Boot 3 with Spring Data JPA, Flyway migrations, Gradle build, layered Dockerfile.

Good for
Enterprise Java shops · regulated industries · existing Spring teams

$ npx create-theokit my-app --template java-spring

Ruby

ruby-sinatra

Ruby + Sinatra + Postgres

Minimal Sinatra app with Sequel ORM, Puma server, Bundler, simple Rake tasks.

Good for
Quick prototypes · Ruby-comfortable teams · admin tools

$ npx create-theokit my-app --template ruby-sinatra

PHP

php-slim

PHP + Slim Framework + Postgres

PSR-7 Slim 4 with PDO, Composer, PHP 8.2+, OPcache configured for production.

Good for
Legacy PHP migrations · simple APIs · CMS integrations

$ npx create-theokit my-app --template php-slim

Monorepos

monorepo-turbo

Turborepo + pnpm + 2 apps

Turborepo with web (Next.js) + api (Fastify) + shared packages, pnpm workspaces, cached builds.

Good for
Multi-app teams · shared types · Vercel-style monorepos

$ npx create-theokit my-app --template monorepo-turbo

monorepo-go-workspaces

Go workspaces + 2 services

Go workspaces with api + worker services, shared internal packages, Makefile, sqlc.

Good for
Go microservices · backend-only teams · shared sqlc-generated types

$ npx create-theokit my-app --template monorepo-go-workspaces

monorepo-uv

uv + Python multi-package

uv-managed Python monorepo with api (FastAPI) + worker (asyncio) + shared lib package.

Good for
Python-heavy teams · data science monorepos · ML agent pipelines

$ npx create-theokit my-app --template monorepo-uv

Source on GitHub

Every template is Apache-2.0. Fork and publish under your org namespace to extend with your team's conventions.

12-min onboarding

Scaffold a TheoKit template, deploy to the Starter free tier — step by step with timestamps.

Honest disclosure: counts are 19 templates as of 2026-05-16. New stacks ship to /changelog as we add them. Request a stack (Elixir / Phoenix? Kotlin / Ktor? Deno?) via templates@usetheo.dev.