Examples

The examples are organized by the decision a new app needs to make: how much framework structure do you want today?

Minimal example

apps/example-minimal shows Contract Kit at its smallest useful size.

It demonstrates:

Run it from the monorepo root:

cd apps/example-minimal
bun run dev

Use this when you want to understand the contract, server, and client loop without application architecture.

Standard Next.js example

apps/example-next is the copyable reference app for most projects.

It demonstrates:

cd apps/example-next
bun run dev

Use this when you want a normal full-stack app shape that stays small.

Application architecture example

apps/example-application shows how Contract Kit fits around business workflows.

It demonstrates:

cd apps/example-application
bun run dev

Use this when business behavior needs to be reusable from HTTP routes, jobs, scripts, event handlers, and tests.

Which example should I follow?

GoalStart with
Understand the core contract/server/client loopapps/example-minimal
Build a normal full-stack Next.js appapps/example-next
Model business workflows behind transport boundariesapps/example-application
Add third-party providers such as auth, mail, jobs, or rate limitingCLI integration presets

Useful reading order

  1. Concepts
  2. Getting started
  3. Contracts
  4. Server
  5. Client
  6. Application
  7. Ports
  8. Providers