Lawson's 12-Framework Test Puts the AI Cost of One Pokémon App Between $2.67 and $4.97
Software / analysis
Lawson's 12-Framework Test Puts the AI Cost of One Pokémon App Between $2.67 and $4.97
Nolan Lawson had Claude Opus 5.5 build the same app in each stack. Angular cost 1.86 times as much as Hono+htmx, and plain Vite beat eight frameworks on price.
Nolan Lawson asked a coding agent to build the same Pokémon app in 12 JavaScript stacks and priced each run. The cheapest median was $2.67 for Hono+htmx; the dearest was $4.97 for Angular, a 1.86x spread on a task with identical requirements.
Lawson published the results on Oct. 28, 2026 in a post on his blog. The costs are API-equivalent prices reported by Claude Code, he wrote, not money actually spent.
What Lawson measured across 12 stacks
Each agent ran Claude Opus 5.5 at high effort and built an app against PokéAPI. Output was graded with an accessibility-tree conformance suite. Lawson banned Tailwind and component libraries, and gave agents each framework's official MCP server or skill where one existed.
Every framework got the median of 5 runs, except Angular, which got 3 because 2 runs produced apps that did not work. Tests ran in Chromium on a Framework 13 laptop under Ubuntu 24.04, with 4x CPU throttling and Slow 4G.
- Hono+htmx2.67 USD
- Astro2.76 USD
- Nuxt2.82 USD
- Vanilla (Vite)2.98 USD
- Next.js3.14 USD
- Qwik3.27 USD
- TanStack Start3.54 USD
- SolidStart3.79 USD
- React Router3.81 USD
- SvelteKit4.28 USD
- Gracile+Lit4.65 USD
- Angular4.97 USD
Source: Nolan Lawson, The AI cost of JavaScript frameworks, 2026-10-28
Where the dollars went
Time and tokens track cost closely. Angular took 17.2 minutes and 9.76 million tokens against 8.6 minutes and 4.26 million for Hono+htmx, and its 2,009 lines of code were the most of any stack. Lawson says Angular's cost followed its code size.
SvelteKit is the odder case. It cost $4.28, and Lawson says its agents read the framework's v3 migration guide on every run. That guide is the sticking point: a document written for humans upgrading from v2 was pulled into an agent's context 5 times out of 5.
| Framework | Minutes | Tokens (M) | JS shipped (KiB) |
|---|---|---|---|
| Astro | 8.2 | 4.13 | 0 |
| Next.js | 10.9 | 4.99 | 142 |
| SvelteKit | 10.8 | 8.53 | 36 |
| Angular | 17.2 | 9.76 | 93 |
Vanilla Vite lost to three frameworks
Plain Vite with no framework cost $2.98 and 5.00 million tokens. Three stacks were cheaper (Hono+htmx, Astro and Nuxt) and eight were dearer. Lawson reads that as evidence that some framework beats none, since the agent without one spent more than agents using Astro or Nuxt.
The multi-page stacks led on page weight. Astro shipped 0 KiB of JavaScript and a 810 ms largest contentful paint; Next.js shipped 142 KiB and 2,090 ms. Lawson says Lighthouse and Core Web Vitals favour multi-page apps and that he measured only the home page.
The agents mostly ignored the official tooling
Lawson found agents used framework tooling inconsistently. Nuxt's MCP server was never used. Next.js agents read its skill file in 1 of 5 runs. He writes that he suspects current MCPs and skills may do more harm than good, a suspicion the benchmark was not designed to test.
Agent spend is a live question elsewhere: Cisco's unlimited-token deal and an SRE deskilling study are both about what coding agents cost and change.
Quality barely moved with cost
Lighthouse did not separate the stacks the way the bill did. Performance and Accessibility scores were close to saturated, with most frameworks at 100 out of 100. Angular scored 98 on Performance and Next.js 99, while Vanilla scored 97 and was the only stack with a non-zero layout shift, 0.111.
Cost and page speed also came apart. Gracile+Lit was the second most expensive build at $4.65 yet shipped 8 KiB of JavaScript and a 956 ms largest contentful paint. Qwik, an SPA with client-side routing, posted 979 ms, close to the multi-page stacks, at $3.27.
Angular's problems were of another kind. In 2 runs its agents built server-rendered apps that rejected requests from anything but localhost, which broke the spec.
One more benchmark, with a conflict of interest
Encore published a backend benchmark on May 26, 2026, written by Ivan Cernja, using claude-sonnet-4-6 on Encore, Express, Fastify, Hono and NestJS. Across three runs it put Encore at $6.29 and NestJS at $12.69.
It is not comparable with Lawson's: different model, different task, different price basis. And Encore is one of the five frameworks it ranks. It shows only that a second setup also found framework choice moving agent spend, and the party that ran it has a product in the table.
What the numbers cannot say
Lawson lists his own limits: results are stochastic, the app is one small content-heavy page set, agents were not told to optimise performance, and pre-generated static HTML was prohibited. A 3 to 5 run median on one app cannot rank frameworks for a complex product.
The spread is about $2.30 per build between top and bottom. Lawson pins versions in an addendum, including Next.js 16.4.3, SvelteKit 3.1.0 and Vite 8.3.5, and invites others to fork the benchmark on GitHub and rerun it.
Sources
More in Software
- 01Rivet, a YC W23 Company, Runs Agent Actors on S3 and Claims 72 KB EachThe Apache 2.0 orchestrator says an actor cold-starts in 4.99 ms at p99. Every figure is Rivet's own, and the Launch HN thread questioned both the premise and the AWS bill.
- 02GitHub Actions Lockfiles: What gh actions-lock Pins and What It Leaves LooseWorkflow lockfiles went generally available on October 28. The extension's own README lists four gaps, including Docker images and reusable workflows in other repositories.
- 03C++26 Reportedly Fails Its ISO Ballot, With Contracts the Sticking PointSecondary reports put the October 23 vote at 12 yes of 20 and nine no votes of 22 bodies. The numbers do not reconcile, and no ISO or WG21 record has been published to settle them.
- 04A Postgres Benchmark Found jsonb Read One Key 2.7 to 10.6 Times Faster, and Larger on Disk in 6 of 11 CasesChris van Eijk of Now-Next loaded 1 million small documents and 5,000 large ones into PostgreSQL 17.11 and 18.6. The speed result is consistent. The storage result depends on whitespace and the 2 kB compression threshold.