The AI cost of JavaScript frameworks

JavaScript front-end frameworks are being re-evaluated in light of AI-assisted coding, with a small benchmark suggesting tools like Astro, HTMX, and Nuxt can let agents build content-heavy sites faster and cheaper than heavier SPA frameworks such as Angular. Commenters argue over how much this matters: some see it as validation of simpler, server-driven approaches or React-style component systems that reduce cognitive load for both humans and models, while others stress that framework choice should still be driven by long‑term maintainability, complexity of real-world apps, and ecosystem stability rather than micro-benchmarks. There is broad agreement that current tests are too simplistic, and that future evaluations should cover more complex, stateful applications, security, and the evolving capabilities of AI agents.

Benchmark scope and limitations

  • Many see the Pokémon app benchmark as too small and static to guide real-world choices.
  • Critics note it lacks complex features (auth, access control, social flows, realtime, forms with validation, multi-team development).
  • Some appreciate the attempt to use objective metrics (time, tokens, LOC) rather than “vibes,” but worry others will overgeneralize.
  • Several want follow-up benchmarks on more complex apps and even security (e.g., testing role-based access with agents).

Framework winners, losers, and use cases

  • Astro, HTMX, and Nuxt get a lot of praise, especially for content-driven sites and token efficiency.
  • Some emphasize Astro/HTMX shine in static or content-heavy use cases; they question how they fare in highly interactive apps.
  • Angular draws heavy criticism, but defenders argue it suits large, complex enterprise apps and benefits from rigidity.
  • Svelte/Solid are praised for elegance and async handling, though results here disappointed some.
  • React is widely seen as the de facto default, especially for agents and tooling; jQuery is acknowledged as still ubiquitous but mostly legacy.

SPA vs server-side and HTMX-style approaches

  • Many argue most sites should be server-rendered HTML with minimal JS, pointing to HTMX, Turbo/Stimulus, LiveView-style patterns.
  • Others counter that complex SPAs still need rich client-side state for responsiveness, optimistic updates, and large feature sets.
  • Several report AI struggles more with complex HTMX/state scenarios than with React/Svelte SPAs.

Why frameworks exist (for humans and agents)

  • Pro-framework arguments: reduce mental load, standardize patterns, ease onboarding/hiring, provide reusable components, and centralize state management.
  • Anti-framework arguments: unnecessary boilerplate and bloat, dependence driven by hiring/HR rather than need, rigidity, and long-term migration churn.
  • Some suggest that with AI writing code, abstractions may add less value, while others say AI also needs stable abstractions and benefits from well-known frameworks baked into its training.

AI agents, “vibe coding,” and maintainability

  • Experiences differ: some report excellent “vibe coding” with React/Nuxt/Astro; others find agents produce tangled slop without early structure.
  • There’s concern about huge single-file prototypes outgrowing context windows; some advocate refactoring into components or using framework-based templates from the start.
  • Debate continues over whether frameworks or vanilla JS minimize overall agent token use and error rates.

Performance, DOM, and language debates

  • A subset discusses DOM performance vs string-based HTML updates, templates, and experimental browser features.
  • Others worry about security risks (XSS) and practical complexity of string-based approaches.
  • Side debates cover async/await overhead, WASM bundle sizes, and whether modern JS has become aesthetically and cognitively unpleasant.