# The AI cost of JavaScript frameworks

DevFeed: [The AI cost of JavaScript frameworks](<https://devfeed.tech/articles/the-ai-cost-of-javascript-frameworks-105653.md>)

Original publisher: [Read original article](<https://nolanlawson.com/2026/10/28/the-ai-cost-of-javascript-frameworks/>)

Author: Nolan Lawson

Published: 2026-10-28T14:31:03Z

Content type: comparison

Language: en

Sources: [Read the Tea Leaves](<https://devfeed.tech/sources/read-the-tea-leaves.md>)

Topics: [AI in frontend development](<https://devfeed.tech/topics/ai-in-frontend-development.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>), [Single-page application (SPA)](<https://devfeed.tech/topics/spa.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding](<https://devfeed.tech/tags/ai-coding.md>), [ai-cost](<https://devfeed.tech/tags/ai-cost.md>), [ai-tool](<https://devfeed.tech/tags/ai-tool.md>), [ai-tools](<https://devfeed.tech/tags/ai-tools.md>), [angular](<https://devfeed.tech/tags/angular.md>), [api](<https://devfeed.tech/tags/api.md>), [app](<https://devfeed.tech/tags/app.md>), [app-performance](<https://devfeed.tech/tags/app-performance.md>), [astro](<https://devfeed.tech/tags/astro.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cost](<https://devfeed.tech/tags/cost.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [javascript-frameworks](<https://devfeed.tech/tags/javascript-frameworks.md>), [my](<https://devfeed.tech/tags/my.md>), [web](<https://devfeed.tech/tags/web.md>)

## AI overview

The article benchmarks coding agents building the same PokéAPI app in JavaScript frameworks, measuring build time, token and API cost, code size, and Lighthouse results across five runs per framework (three for Angular after two failures). SvelteKit, Gracile+Lit, and Angular generally cost more to build; the author attributes this partly to unfamiliar tools or, for Angular, larger code size. Lighthouse Performance, Accessibility, and CLS scores were nearly saturated across frameworks, while JavaScript bytes varied more. LCP broadly favored multi-page apps over SPAs, though it was noisy and sensitive to implementation choices; the author notes Lighthouse's bias against SPAs. Hono+htmx produced roughly the same app as Angular with about 70% of its code. Results are limited by a small, content-focused app, stochastic agent and Lighthouse behavior, and the use of one coding agent and Chromium. The author presents the experiment as evidence for measuring framework claims, not a definitive ranking.

## Source excerpt

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...