I think I'd try a lightweight framework like preact or vue that I can use without a build step. Keep components as separate & stateless as possible; let them live as little islands of javascript, notifying other parts of the frontend of updates through custom DOM events and talking to the server directly with fetches.
Re:Mesh: I tried Htmx, then ditched it
by Atotalnoob on Tuesday September 23, 2025 @10:47PM
(#45355721)
You could consider using web components
This only goes so far, though. At some point, an app developer might want to integrate these distinct units of functionality, and I'm not sure how I would go about that. I haven't gotten to that point.