iCreatAI News
Skip to content
Hacker News AI· luu·· 18 days agoAI score40

The AI cost of JavaScript frameworks

The AI cost of JavaScript frameworks

AI summary

A benchmark had coding agents build the same small PokéAPI app five times in each of twelve JavaScript frameworks/meta-frameworks, then measured cost, time, tokens, lines of code, and Lighthouse performance and accessibility. Hono+htmx and Astro were cheapest (about $2.67–$2.76 per run) while Angular, Gracile+Lit and SvelteKit were most expensive, and JavaScript bytes ranged from 0 KiB (Astro) to 142 KiB (Next.js). The author presents the results as evidence that framework choices can be made on data rather than vibes, while noting the experiment is stochastic and limited to one content-heavy app type.

Source: Hacker News AI · nolanlawson.com