Perhaps you're taking the npm/react/vercel world to be the entire web? I agree that that stuff is a scourge. But you can still just write html and Javascript and serve it from a static site, I wrote an outline in
https://incoherency.co.uk/blog/stories/web-programs.html which I frequently link to coding agents when they are going astray.