Oriel — AI & technology worth noticing, every day.

The AI cost of JavaScript frameworks

Web page · https://nolanlawson.com/2026/10/28/the-ai-cost-of-javascript-frameworks

First seen by Oriel on .

AI summary

A benchmark compares coding-agent costs, output quality, and code size across 12 JavaScript frameworks by having Opus 5.5 build and test the same Pokémon app.

  • Each framework was tested across five runs, measuring API cost, time, tokens, Lighthouse performance and accessibility, JavaScript bytes, and source lines.
  • Hono+htmx was cheapest at $2.67 per run, while Angular was most expensive at $4.97; Angular also required only three iterations for some metrics after two failures.
  • Lighthouse scores were nearly saturated, but JavaScript transfer varied from 0 KiB for Astro to 142 KiB for Next.js, with MPAs generally receiving faster LCP results.
  • Hono+htmx produced the fewest lines at 1,370, while Angular produced 2,009; the author treats code size as relevant to future agent-maintenance token costs.
  • The experiment covers one small, content-oriented Pokémon app, and results are stochastic because both agents and Lighthouse produce variable outcomes.

#javascript frameworks #coding agents #lighthouse #web performance

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 470, latest observation ; +463 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 389, latest observation ; +387 over observed period since

Aliases

SourceExternal IDURL
Hacker News50323088https://nolanlawson.com/2026/10/28/the-ai-cost-of-javascript-frameworks/ Read discussion