Reference implementation for kitcn.
This app is the source of truth for docs snippets and migration guidance.
- Next.js App Router
- Convex backend
- kitcn cRPC + ORM
- Better Auth
- TanStack Query
- Install deps from repo root:
bun install- Configure env files:
cp /Users/zbeyens/GitHub/kitcn/example/.env.example /Users/zbeyens/GitHub/kitcn/example/.env.local
cp /Users/zbeyens/GitHub/kitcn/example/convex/.env.example /Users/zbeyens/GitHub/kitcn/example/convex/.env- Start app + Convex processes:
bun --cwd /Users/zbeyens/GitHub/kitcn/example dev- Open:
# Typecheck
bun --cwd /Users/zbeyens/GitHub/kitcn/example typecheck
# Lint
bun --cwd /Users/zbeyens/GitHub/kitcn/example lint
# Convex logs
bun --cwd /Users/zbeyens/GitHub/kitcn/example convex:logs
# Reset + seed data
bun --cwd /Users/zbeyens/GitHub/kitcn/example reset
bun --cwd /Users/zbeyens/GitHub/kitcn/example seed- Server schema:
/Users/zbeyens/GitHub/kitcn/example/convex/functions/schema.ts - ORM context:
/Users/zbeyens/GitHub/kitcn/example/convex/lib/orm.ts - cRPC builder:
/Users/zbeyens/GitHub/kitcn/example/convex/lib/crpc.ts - HTTP entrypoint:
/Users/zbeyens/GitHub/kitcn/example/convex/functions/http.ts - React provider:
/Users/zbeyens/GitHub/kitcn/example/src/lib/convex/convex-provider.tsx - React cRPC context:
/Users/zbeyens/GitHub/kitcn/example/src/lib/convex/crpc.tsx - RSC helpers:
/Users/zbeyens/GitHub/kitcn/example/src/lib/convex/rsc.tsx
- IDs in auth context are plain
stringin this example. - Use
ctx.ormand cRPC procedures as the default server pattern. - Use TanStack Query
useQuery/useMutationwith cRPCqueryOptions/mutationOptionson client.