Workflow validation target. Click counter, no LLM, no build.
bun install
bun run dev
Pass PORT= to bind specific port (Archon start-server does this automatically). Default: random free port.
GET /— HTML pageGET /api/health—{ ok: true }(health check used by Archonstart-server)GET /api/count—{ count: number }POST /api/click— increments, returns{ count: number }
Archon's start-server node:
- Picks a free port via
Bun.serve({port:0}) - Runs
PORT=$PORT bun run dev:server - Polls
GET /api/healthuntil 200 (up to 30s)
The dev:server script is the Archon entry point. dev is the watch-mode variant for human use.