Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

Pick a web framework by its AI token bill: all twelve, ranked

The short version

One developer had Claude (Opus 5.5, high effort) build the same small Pokémon app in twelve setups and measured tokens, cost, time and code size, median of five runs each. The heaviest setup, Angular, used about 2.5 times the tokens of the lightest, Nuxt. The cost followed the tokens and the code size, not the framework's reputation for speed. It is one small content-style app and the run-to-run ranges overlap, so treat it as a lean, not a law.

Setup Tokens (M) Cost per app (API prices) Build time (min) Lines of code
Nuxt 3.85 2.82 dollars 9.0 1,415
Astro 4.13 2.76 dollars 8.2 1,461
Hono + htmx 4.26 2.67 dollars 8.6 1,370
Next.js 4.99 3.14 dollars 10.9 1,539
No framework (Vite) 5.00 2.98 dollars 10.1 1,492
Qwik 5.64 3.27 dollars 10.7 1,744
TanStack Start 7.07 3.54 dollars 10.3 1,697
SolidStart 7.13 3.79 dollars 11.2 1,630
React Router 7.58 3.81 dollars 12.5 1,564
SvelteKit 8.53 4.28 dollars 10.8 1,611
Gracile + Lit 9.04 4.65 dollars 12.1 1,717
Angular 9.76 4.97 dollars 17.2 2,009

Why the bill moves

  1. More code, more tokens. Angular needed about 2,000 lines for the same app, Nuxt about 1,400. The author's read: for Angular the cost "seems to be a function of the total code size".
  2. A framework the AI has to read up on costs more. SvelteKit's newest version was probably too new for the model, and the agents read its migration guide in every run. For Gracile, the agents did not know the framework and cloned its repo or read its compiled source.
  3. Being fast in the browser is a different question. Lighthouse performance and accessibility scores were nearly the same for every setup (97 to 100).

Copy these prompts

Read package.json and list every framework and meta-framework with its exact version. For each one, tell me whether that version is likely in your training data or newer, and which docs you would have to read before changing anything.
Count the lines of code per top-level folder of this repo, excluding node_modules and build output, and tell me which three folders would cost the most tokens to rewrite.

If you are building… (pick-your-stack checklist)

Run this on your codebase

Run the two prompts above in your coding agent at the root of your repo. The first tells you where it will burn tokens reading docs, the second where a rewrite would cost the most. Then decide with the checklist, not the ranking alone.

Know before you quote it

Source: nolanlawson.com/2026/10/28/the-ai-cost-of-javascript-frameworks, read in full 4 Nov 2026.

Get the next one in your inbox