The AI cost of JavaScript frameworks(nolanlawson.com)
400 points by luu 1 day ago | 308 comments
tl;dr: The author built a Pokémon app five times each across 12 JavaScript frameworks using Claude Code agents, measuring cost, performance, and maintainability to counter "vibes-based" framework choices in the agentic coding era. Results showed MPA-oriented frameworks like Astro, Hono+htmx, and Nuxt were cheapest to build and produced faster, smaller output, while SvelteKit, Gracile+Lit, and Angular cost the most—with Angular also requiring ~40% more lines of code than Hono+htmx for equivalent functionality. The benchmark is open-sourced on GitHub for others to reproduce or extend.
HN Discussion:
  • ↑Agrees with the article's anti-vibes stance and extends it to broader web development decisions
  • ↓The benchmark is too simplistic and ignores maintainability, security, and domain factors
  • ↑Takes the results at face value and plans to adopt the winning framework (Astro)
  • ↑Framework choice should now prioritize Agent Experience (AX) over Developer Experience
  • ↓Real-world AI coding experience with HTMX contradicts the benchmark's favorable results