Title: Fir leverages Golang’s standard library html&#x2F;template package and a bit of alpinejs to allow building reactive UIs. You start with plain old html and use alpinejs to enhance it to bring no-page-reload interactivity to web apps.<p>The Fir toolkit is designed for Go developers with moderate html&#x2F;css &amp; js skills who want to progressively build reactive web apps without mastering complex web frameworks. It includes a Go library and an Alpine.js plugin.<p>How it works ?<p>On receiving user-interactions the fir server re-renders html templates and sends it over the wire where the fir client library selectively updates the changed areas.<p>When a user event is received by a Fir route, an array of html templates are rendered on the server and returned as an array of DOM events to the browser. The DOM events are consumed by the alpinejs plugin and dispatched within the DOM where listeners attached to elements can use the event to update the DOM.<p>See the demo and quickstart here: <a href="https:&#x2F;&#x2F;livefir.fly.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;livefir.fly.dev&#x2F;</a>
Upvote: