<story><title>RustGPT: ChatGPT UI Built with Rust, Htmx, SQLite</title><url>https://github.com/bitswired/rustgpt</url></story><parent_chain></parent_chain><comment><author>neilyio</author><text>This is such a great project, thank you for sharing! It seems like you&amp;#x27;re getting the usual dump of negativity around HTMX... but as usual, not much coming from anyone who&amp;#x27;s actually tried to build something small&amp;#x2F;medium-sized. I keep hearing that this stack &amp;quot;would&amp;quot; fall apart in a bigger project, but I never hear any concrete, empirical descriptions of issues that actually do arise.&lt;p&gt;I&amp;#x27;ll offer one here... using HTMX usually means you&amp;#x27;re going to be writing HTML templates, and HTML templating languages don&amp;#x27;t have much IDE support. I really miss goto-definition etc. when I&amp;#x27;m writing Jinja templates.&lt;p&gt;That being said, I&amp;#x27;ve personally found Rust&amp;#x2F;HTMX to be a magnificent combo. I personally find writing backend endpoints in Rust to be no more cumbersome than any other language (after becoming comfortable with Rust)... and there&amp;#x27;s massive gains from the incredible tooling and type system.&lt;p&gt;I wonder if you&amp;#x27;ve considered using Askama for your templates? It has a Axum integration that cleans up some of the boilerplate around template rendering. There&amp;#x27;s also an open PR for block fragments [1], which will make componentization of HTML fragments much easier, as discussed in this essay on the HTMX site [2].&lt;p&gt;We need more projects like this to demonstrate how useful, highly-interactive apps are made with HTMX. I&amp;#x27;d encourage skeptics to try the same before writing it off.&lt;p&gt;[1] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;djc&amp;#x2F;askama&amp;#x2F;pull&amp;#x2F;824&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;djc&amp;#x2F;askama&amp;#x2F;pull&amp;#x2F;824&lt;/a&gt;
[2] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;htmx.org&amp;#x2F;essays&amp;#x2F;template-fragments&amp;#x2F;&quot; rel=&quot;nofollow noreferrer&quot;&gt;https:&amp;#x2F;&amp;#x2F;htmx.org&amp;#x2F;essays&amp;#x2F;template-fragments&amp;#x2F;&lt;/a&gt;</text></comment>
<story><title>RustGPT: ChatGPT UI Built with Rust, Htmx, SQLite</title><url>https://github.com/bitswired/rustgpt</url></story><parent_chain></parent_chain><comment><author>jadbox</author><text>I was just browsing through this code all night. In principle, Htmx is really showing how React or any frontend framework is just not needed for most applications. Htmx simplifies everything.. even component endpoint caching is as simple as just adding a good ol&amp;#x27; header. No more &amp;quot;partial rendering&amp;quot; or related complexity needed.&lt;p&gt;I&amp;#x27;m still unconvinced that Rust is a good idea for general web servers due to (overly) aggressive compiler checks  and chaotic documentation related to web server concerns (many Rust web related libs cannot work together or not easily).&lt;p&gt;Today I&amp;#x27;m mostly just using Hono+htmx+view transitions. Astro is a similar stack, but with more batteries included (and some additional complexity).</text></comment>