Cloudflare engineer rebuilds the Next.js API surface on Vite in under a week with Claude in OpenCode, for about $1,100 in tokens
Cloudflare engineering manager Steve Faulkner built vinext, a reimplementation of the Next.js API surface (routing, server rendering, React Server Components, server actions, caching, middleware) as a Vite plugin that deploys to Cloudflare Workers. The first commit landed on 13 February 2026 and the project shipped in under a week. He spent a couple of hours planning the architecture with Claude in OpenCode, then ran a loop of defining a task, letting the AI write implementation and tests, running the suite, and merging on green or feeding errors back. Agents also reviewed PRs and addressed review comments. Tests were partly ported from the Next.js suite. Over 800 OpenCode sessions cost roughly $1,100 in Claude API tokens. Coverage reached 94% of the Next.js 16 API surface, and one customer (National Design Studio, on CIO.gov) was already running it in production.
The numbers (as reported)
| Time | Under a week; first commit 13 February |
|---|---|
| Token cost | About $1,100 in Claude API tokens |
| Agent sessions | Over 800 sessions in OpenCode |
| People | One engineer (technically engineering manager) directing AI |
| Tests | 1,700+ Vitest tests and 380 Playwright E2E tests |
| API coverage | 94% of the Next.js 16 API surface |
| Production build time | Up to 4.4x faster than Next.js 16 (Vite 8 / Rolldown, 33-route test app) |
| Client bundle size | Up to 57% smaller gzipped |
Facts
- Company / subject
- Cloudflare
- Tools
- OpenCode
- Codebase
- greenfield
- Work type
- New product
- Stack
- TypeScript, Vite, React Server Components, Cloudflare Workers, Vitest, Playwright
- Published
- 2026-02-24
- Last checked
- 2026-11-12
What the source claims Practitioner (own blog/paper)
Claimed by the builder, writing about their own work. Not checked independently.
- Rebuilt the Next.js API surface in under a week, against months or years for a team Under a week
“This time we did it in under a week. One engineer (technically engineering manager) directing AI.”
- Whole project cost about $1,100 in tokens About $1,100
“The whole thing cost about $1,100 in tokens.”
- Production builds up to 4x faster than Next.js in early benchmarks Up to 4.4x faster (Vite 8 / Rolldown)
- Client bundles up to 57% smaller 57% smaller gzipped
- 94% of the Next.js 16 API surface covered 94%
“Coverage sits at 94% of the Next.js 16 API surface.”
Caveats
Written by the engineer who did the work, on the company blog, at launch. vinext is labelled experimental and "not yet been battle-tested with any meaningful traffic at scale". Benchmarks use a single 33-route app and measure compilation and bundling, not serving performance; the post says to treat them as directional. Static pre-rendering at build time was not supported at launch. The post says some AI PRs "were just wrong" and needed regular course correction. Exact model versions are not named.
More stories by tool: OpenCode
Related topics: New products built with agentsGreenfield projects