Nice writeup on HTML over WebSockets as an alternative to the JSON API + JS framework SPA approach. Instead of sending JSON and assembling HTML in the browser, the server sends pre-rendered HTML over a persistent WebSocket and the client just places it where it belongs. All rendering logic stays server-side, no API contracts, no client state management. Phoenix LiveView made this popular in 2019, and now there are implementations in Django, Laravel, .NET Blazor, Ruby (Hotwire), and others. The article covers the tradeoffs well: you get real-time bidirectionality and broadcast for free, but you pay with server memory per connection and no offline support.
Bearing
Bearing