ARCHE
FamiliesDocsExamplesBlogGitHub ↗
Documentation

Start

  • Getting started
  • Philosophy

Guides

  • First hour
  • Agent context
  • Verification
  • Package managers
  • Scaffold lifecycle
  • Showcase & portfolio

Walkthroughs

  • TypeScript fullstack
  • Convex product
  • Rust API & fullstack
  • Solana family
  • Customize & experiments
  • Automation (JSON/MCP)

CLI

  • Overview
  • Flags
  • Subcommands
  • Generated output

Presets

  • Preset catalog

Stack

  • TypeScript architecture
  • Convex
  • Rust
  • Solana
  • Authentication
  • Prisma store
  • tRPC

Operations

  • Deployment
  • Environment variables
  • Workers & queues
  • CI & testing
  • Scaling
  • Security
  • Troubleshooting

Reference

  • Stack links
  • Capabilities
  • This source repo
  • Code examples
← Documentation

TypeScript fullstack walkthrough

Scaffold, verify, and operate the default Next.js + Express + tRPC + Better Auth + Prisma preset.

1 min read

Goal: Generate a monorepo with typescript-fullstack, install dependencies, and pass the preset verification harness.

Support label: Requires validation — see /families and Verification.

Prerequisites

  • Bun installed (pnpm optional via --pm=pnpm when matrix shows support)
  • Arche source checkout (this repo or a fork)
  • Empty parent directory for output (--dir=../projects)

Scaffold

terminal
bun run dev:cli -- my-app --yes --preset=typescript-fullstack --dir=../projects

Common toggles:

FlagEffect
--workerAdds apps/worker + BullMQ (needs Redis)
--no-showcaseStrips demo routes; skips SHOWCASE.mdx
--ciGitHub Actions workflow
--dockerCompose files for local Postgres/Redis
--bundle=product,aiCapability bundles (validated by registry)

Generated shape

terminal
apps/web          Next.js App Router
apps/server       Express + tRPC + Better Auth
apps/worker       optional BullMQ
packages/trpc     client contract only
packages/store    Prisma
packages/auth     Better Auth

Read Architecture for boundaries and Generated output for agent files.

Verify

terminal
cd ../projects/my-app
bun install
bun run ci

ci runs lint, typecheck, and tests defined for the preset. If a step fails, open root AGENTS.md — it lists the exact scripts and env files.

Local dev (after copying .env.example):

terminal
bun run db:migrate
bun dev

Common failures

SymptomFix
DATABASE_URL missingCopy .env.example; use Neon or local Postgres
tRPC errors in browserSet NEXT_PUBLIC_API_URL to the API origin
Turbo cache confusionRun bun run build once clean; check turbo.json exists
Mixed lockfilesPick Bun or pnpm; do not commit both lockfiles

Next

Next steps

  • Deployment pathsVercel web + API on Vercel, Render, or Railway.
  • Code examplestRPC, auth, and Prisma snippets from this stack.
  • Agent contextHow AGENTS.md and .docs/ are laid out.