Conquering JavaScript Fatigue: MESH, a Modular SSR Framework Built on HTMX

2025-09-23

Web development is facing "JavaScript fatigue" and "framework fatigue." This post explores using HTMX, a declarative approach to web development using HTML attributes, as a solution. However, HTMX's lack of structure led the author to create MESH, a modular server-side rendering (SSR) framework. MESH uses a "one component, one endpoint" model, leveraging Go and Web Components for SSR and hydration. Challenges with HTMX's inability to cross shadow DOM boundaries were overcome with clever workarounds. Real-time collaboration with Server-Sent Events (SSE) was also implemented. Ultimately, the author even removed HTMX entirely, using cleaner JS to achieve the same functionality, and reflects on the shortcomings and future directions of HTMX.

Development