2026-11-26 15:48 UTC

Lawson’s one-app agent benchmark finds framework trade-offs, with noisy results

state: watchingheat: lowuncertainty: mediumrelevance: mediumcoding-agent-costs javascript-frameworks agent-benchmarksNolan Lawson

What is this?

On October 28, 2026, web developer Nolan Lawson published an experimental benchmark asking Claude Code with Opus 5.5 to build the same Pokédex app in 12 JavaScript frameworks and meta-frameworks. He measured build time, reported token use and API-price estimates, code size, and Lighthouse results. He reports medians across five runs per framework, except Angular, where two runs failed and only three were included. His results show differences across frameworks, but also substantial run-to-run variation. The benchmark is Lawson’s own experiment; the supplied sources contain no independent replication.

Why it matters

As coding agents take on more implementation work, framework choice may affect not only developer experience but also how much agent time, token use, and code future edits require. Lawson’s benchmark offers a concrete, reproducible starting point for examining that possibility: in this one app, reported build-cost estimates ranged from $2.67 for Hono+htmx to $4.97 for Angular, while Lighthouse performance and accessibility scores were generally high across frameworks. The results are suggestive, not a general framework ranking: the app is a relatively simple, content-oriented site, several measurements vary between runs, and the test uses one agent setup.

Current assessment

New evidence: Lawson’s October 28 post and linked benchmark repo describe a direct experiment, not a company release or independent evaluation. The same Pokédex specification and conformance suite were used across 12 framework setups, with Claude Code running Opus 5.5 at high effort; official MCPs or skills were used where available, but agents did not consistently discover or use them. Lawson reports medians across five runs, except Angular, which had two non-working runs and is summarized using three. Reported per-run API-price estimates ranged from $2.67 (Hono+htmx) to $4.97 (Angular); Lawson says these are Claude Code price estimates, not his actual marginal spend, since he used a Max plan. Token use ranged from 3.85 million (Nuxt) to 9.76 million (Angular), and code size from 1,370 lines (Hono+htmx) to 2,009 (Angular). Lighthouse accessibility scores were 100 throughout and performance scores 97–100; transferred JavaScript ranged from 0 KiB median for Astro to 142 KiB for Next.js. These are outcomes of the tested generated apps, not controlled proof that the frameworks themselves cause every difference: the agent’s architecture and implementation varied. Lawson flags stochastic agent behavior, Lighthouse variability, the single app type, and Lighthouse’s bias against SPAs; he also notes that some frameworks’ AI guidance was used inconsistently. The benchmark’s practical implication is that agent-facing documentation and framework choices could affect initial build costs and code burden, with possible downstream effects on maintenance, but it does not establish which stack is best for complex or interactive applications. The linked repository makes follow-up and replication possible. Search results show secondary coverage, but the supplied evidence does not establish independent replication or adoption.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 722h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-27 13:00⭐ origin echo-reconstructedThis is the original post, not an intermediary quoting an upstream tweet or paper. Lawson says, “Well I got curious, so I wrote a benchmark,
Nolan Lawson on blog (echo) · attributed from hn.story.50323088
—
11-01 06:06first on hacker news · published · +113.1hThe AI cost of JavaScript frameworks
luu
—
11-01 06:06amplified on hacker news 👑hn.story.50323088
luu
peak 479 · 399 comments · 100% of case engagement
11-01 08:26our radar first saw it · +115.4hdiscovery anchor: hn.story.50323088—
pace: p92 vs 879 stories at the 720h mark (now 722h old) — ahead of accenture-claude-spend-cap-enterprise-governance (1.0x), behind opencode-distillation-attack-breach (1.0x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnThe AI cost of JavaScript frameworks
Retrieved article excerpt

Open article · Retrieved 2026-11-01T08:27:34.490726+00:00

28Oct

# The AI cost of JavaScript frameworks

Posted October 28, 2026 by [Nolan Lawson](https://nolanlawson.com/author/nolanwlawson/) in [Web](https://nolanlawson.com/category/web/), [AI](https://nolanlawson.com/category/ai/).

One of my pet peeves with the web development community is that so many of the decisions we make are vibes-based. Frameworks are “blazing fast,” tools will “supercharge” your development, the right abstraction will benefit both you and your users (DX and UX all in one!). All of this breathless boasting is usually offered with zero evidence. Alex Russell has called this [“frontend’s lost decade”](https://www.youtube.com/watch?v=0XwWVjQOmyg), Baldur Bjarnason has called programming a [pop culture](https://www.baldurbjarnason.com/2022/programming-is-a-pop-culture/), and I’ve tried to counter this trend in my blog with facts and benchmarks (at my best, anyway).

For a long time it seemed like our community’s allergy to evidence was driven by the [desire for greater DX](https://infrequently.org/2018/09/the-developer-experience-bait-and-switch/). In other words, devs just liked the way it *felt* to type JSX in React, and the arguments promoting React or related tools (“the virtual DOM is fast!”) were largely post-hoc rationalizations to justify those initial gut feelings. ([Jonathan Haidt](https://en.wikipedia.org/wiki/The_Righteous_Mind#Key_concepts_and_scholars_discussed) would likely agree with this assessment.)

But in the agentic era, when developers are no longer typing code by hand and are thus less constrained by DX, I still see vibes ruling the day (and not just in the sense of “vibe-coding”). Frontends are rewritten because some framework or another is “better for agents.” (Did anyone think to ask the agents?) The resulting code is “faster,” the agents make “fewer mistakes,” etc. Once again, these claims are often made without evidence. Whenever I read one of these accounts, I think to myself, “Where are the benchmarks?”

Well I got curious, so I wrote a benchmark. The structure of this benchmark is pretty straightforward:

- Design a small but non-trivial Pokémon app using the [PokéAPI](https://pokeapi.co/) (those who have followed [my](https://nolanlawson.com/tag/pokedroid/) [work](https://pocketjavascript.com/blog/2015/11/23/introducing-pokedex-org/) will be unsurprised)
- Instruct agents to build the app with a particular JavaScript framework/meta-framework (e.g. Next.js, Nuxt, SvelteKit, etc.)
- Test the output against a spec conformance suite (to avoid agent cheating)
- Evaluate the results in terms of development time, tokens spent, lines of code, and performance and accessibility scores in [Lighthouse](https://developer.chrome.com/docs/lighthouse/)

The app is fairly simple: you’ve got a list of Pokémon with their types, moves, and data from various games. You can search, filter, etc.:

Screenshot of a Pokémon web app with various monsters listed, their types, etc.

I should start off with some caveats: this is not a perfect experiment. This app represents only one [holotype](https://jasonformat.com/application-holotypes/) – it’s a relatively content-based site with little interactivity, closer to a Wikipedia than a Figma, GMail, etc. That said, I had to choose *some* app to build, and this one is at least easy to understand at a high level, and relatively straightforward to spec out and test.

To try to even the playing field, I had each framework/meta-framework use the official MCP or skills for that tool. I wanted to avoid accusations of “this framework is not well-represented in the training data, that’s why we built our MCP, we expect people to use it,” etc. I also didn’t over-specify the exact architecture to use (e.g. SSR vs CSR), nor did I specify that the app should be as performant as possible. I simply gave the spec to Opus 5.5 with high effort and told it to use the latest version of the given framework. Each agent ran in a sandbox and without any knowledge that it would be tested in Lighthouse on performance and accessibility, although it was given the conformance test suite.

Note I also didn’t mandate any CSS methodology, except to avoid using Tailwind, Bootstrap, or any other component framework, and to design based on a set of spec tokens to enforce some visual consistency. I didn’t want to make this test all about CSS, but instead about JS frameworks, CSR vs SSR, SPAs vs MPAs, etc. The resulting app is tested against a conformance suite based on the accessibility tree rather than the raw DOM to avoid mandating any particular HTML structure – one framework uses web components which rely on shadow DOM, so this was required.

One thing I learned from this experiment is that everything I’m measuring is very stochastic. LLMs are random-word generators, so sometimes you get a low dice-roll and an agent goes off on some weird tangent wasting a bunch of tokens, through no fault of the framework or its tools. Lighthouse itself can give inconsistent results as well: Largest Contentful Paint (LCP) may decide that one image is the “largest” element, then pick another one on the next run. It’s hard to have a perfectly fair experiment, but running multiple iterations did help, and I’ve tried to be honest about the variance.

With all that throat-clearing out of the way, let’s get to the results.

## Results

I’m going to break this down by multiple dimensions: cost to build, quality, and maintainability. For each framework/meta-framework, I took the median of 5 runs: in other words, I built the same app 5 times in the same framework. (Yes, this is the kind of zany thing you can do with coding agents these days.)

The exception was Angular, which failed to create a working app twice, so I took 3 iterations instead. (This is explained below.)

### Cost

Cost per run, in US dollars

| Framework | Cost ($) |
| --- | --- |
| Hono+htmx | $2.67 (2.23–3.19)−0.44+0.52 |
| Astro | $2.76 (2.16–3.63)−0.60+0.87 |
| Nuxt | $2.82 (2.39–4.25)−0.43+1.43 |
| Vanilla | $2.98 (2.24–3.37)−0.74+0.39 |
| Next.js | $3.14 (2.58–4.13)−0.56+0.99 |
| Qwik | $3.27 (2.35–3.80)−0.92+0.53 |
| TanStack Start | $3.54 (3.11–3.96)−0.43+0.42 |
| SolidStart | $3.79 (2.84–4.81)−0.95+1.02 |
| React Router | $3.81 (2.82–3.97)−0.99+0.16 |
| SvelteKit | $4.28 (3.59–4.65)−0.69+0.37 |
| Gracile+Lit | $4.65 (3.92–5.07)−0.73+0.42 |
| Angular | $4.97 (3.19–6.82)−1.78+1.85 |
|  |  |
| --- | --- |
|  | 02468 |

Median of 3-5 runs.

Sort Original orderFramework, A–ZCost ($), low to highCost ($), high to low Show as table

Note that this quotes the API prices directly from Claude Code and doesn’t actually represent how much money I spent. I’m on a Max plan, so this was just part of my overall $100/month.

Note also the variance: React Router’s median is roughly $1 worse than that of Hono+htmx, but the cheapest version of React Router ($2.82) is still cheaper than the most expensive version of Hono+htmx ($3.19). However some reliable patterns do emerge.

Most clearly, SvelteKit, Gracile+Lit, and Angular are more expensive to build than the other frameworks. For SvelteKit, this may be due to the fact that the agents read the [SvelteKit v3 migration guide](https://svelte.dev/docs/kit/migrating-to-sveltekit-3) in every run, likely because it’s [too new](https://svelte.dev/blog/sveltekit-3-is-here) to be in Opus 5.5’s training data. Similarly for Gracile, the agents didn’t know the framework very well and either cloned the Gracile repo or read its compiled source from `node_modules`. For Angular it seems to be a function of the total code size (see below).

I should also mention that not every agent made use of an MCP/skill/Claude Code plugin, nor did every framework have one:

Click to see AI tool usage

| Framework | Installed | Used by the agents? |
| --- | --- | --- |
| Angular | [Angular MCP](https://angular.dev/ai/mcp) and [Angular agent skills](https://angular.dev/ai/agent-skills) | MCP in 3/5 runs, skill tool in 4/5 runs, skill files in 2/5 |
| Astro | [Astro MCP server](https://docs.astro.build/en/guides/build-with-ai/) | MCP in 2/5 runs |
| Gracile+Lit | N/A | N/A |
| Hono+htmx | [Hono skills](https://hono.dev/docs/agents) | Skill tool in 5/5 runs |
| Next.js | [next-devtools-mcp and next-dev-loop skill](https://nextjs.org/docs/app/guides/ai-agents) | Skill files in 1/5 runs, `AGENTS.md` in 2/5 runs |
| Nuxt | [Nuxt MCP](https://nuxt.com/docs/4.x/guide/ai) | N/A |
| Qwik | N/A | N/A |
| React Router | [React Router skill](https://github.com/remix-run/react-router/tree/main/.agents/skills/react-router) | Skill tool in 5/5 runs, skill files in 5/5 runs |
| SolidStart | N/A | N/A |
| SvelteKit | [Svelte Claude Code plugin](https://svelte.dev/docs/ai/claude-plugin) | MCP in 5/5 runs |
| TanStack Start | N/A | Skill files in 2/5 runs |
| Vanilla | N/A | N/A |

For example, TanStack Start’s agent only discovered its skill files in 2/5 runs (they’re shipped in the `node_modules` of the project). For Nuxt, the MCP was never used by the agents. For Next.js, agents only read the skill file in 1/5 runs and the `AGENTS.md` in 2/5 runs. This is a wide range of results, which points back to the stochastic nature of LLMs. I still consider this a valid experiment, though, because I doubt many vibe-coders are shouting at their agents in all-caps to use the MCP (and plenty are probably skipping it entirely).

Also, if you’re wondering how I came up with Hono+htmx: essentially, I wanted htmx represented somehow, and Hono seemed like a fine pairing (i.e. as a JavaScript alternative to Rails/Django/etc.). As for Gracile+Lit, I wanted web components represented via their standard-bearer framework (Lit), and was only aware of Gracile as a meta-framework. If there are better candidates, then those would be great for a follow-up experiment.

For “Vanilla,” note that the agent was [told](https://github.com/nolanlawson/agent-framework-benchmark/blob/b95ada03930ca3670c8ff6377c3af815df0ac040/bench/frameworks.mjs#L15C13-L15C79) to use “vanilla JavaScript or TypeScript with Vite, without a UI framework.” Surprisingly, this underperforms several frameworks, which seems to demonstrate that having *some* framework can be better than nothing (or better than raw Vite, anyway). Vite was chosen because it undergirds many frameworks and represents fairly standard and agnostic JavaScript infrastructure.

The total time and tokens track pretty closely with the cost:

Time per run

| Framework | Time (minutes) |
| --- | --- |
| Astro | 8.2 min (6.2–9.7)−2.0+1.5 |
| Hono+htmx | 8.6 min (5.9–9.6)−2.7+1.0 |
| Nuxt | 9.0 min (8.0–17.6)−1.0+8.6 |
| Vanilla | 10.1 min (6.9–18.6)−3.2+8.5 |
| TanStack Start | 10.3 min (8.3–13.9)−2.0+3.6 |
| Qwik | 10.7 min (7.1–12.9)−3.6+2.2 |
| SvelteKit | 10.8 min (8.6–13.8)−2.2+3.0 |
| Next.js | 10.9 min (8.3–11.9)−2.6+1.0 |
| SolidStart | 11.2 min (8.2–15.9)−3.0+4.7 |
| Gracile+Lit | 12.1 min (10.8–12.9)−1.3+0.8 |
| React Router | 12.5 min (8.4–13.6)−4.1+1.1 |
| Angular | 17.2 min (9.8–23.7)−7.4+6.5 |
|  |  |
| --- | --- |
|  | 0510152025 |

Wall-clock minutes from the agent’s perspective. Median of 3-5 runs.

Sort Original orderFramework, A–ZTime (minutes), low to highTime (minutes), high to low Show as table



Tokens per run, in millions

| Framework | Tokens (M) |
| --- | --- |
| Nuxt | 3.85 M (3.16–8.18)−0.69+4.33 |
| Astro | 4.13 M (3.03–7.57)−1.10+3.44 |
| Hono+htmx | 4.26 M (3.40–5.61)−0.86+1.35 |
| Next.js | 4.99 M (3.54–8.82)−1.45+3.83 |
| Vanilla | 5.00 M (3.44–6.32)−1.56+1.32 |
| Qwik | 5.64 M (3.41–7.03)−2.23+1.39 |
| TanStack Start | 7.07 M (5.85–7.99)−1.22+0.92 |
| SolidStart | 7.13 M (5.02–10.07)−2.11+2.94 |
| React Router | 7.58 M (4.55–8.18)−3.03+0.60 |
| SvelteKit | 8.53 M (6.79–9.29)−1.74+0.76 |
| Gracile+Lit | 9.04 M (7.36–11.10)−1.68+2.06 |
| Angular | 9.76 M (4.92–14.94)−4.84+5.18 |
|  |  |
| --- | --- |
|  | 051015 |

Cache reads, uncached input and output. Median of 3-5 runs.

Sort Original orderFramework, A–ZTokens (M), low to highTokens (M), high to low Show as
luu479399
🟧 echo.blog ⭐This is the original post, not an intermediary quoting an upstream tweet or paper. Lawson says, “Well I got curious, so I wrote a benchmark,Nolan Lawson——

Interpretation history

Decision trace