frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Mesh: I tried Htmx, then ditched it

https://ajmoon.com/posts/mesh-i-tried-htmx-then-ditched-it
43•alex-moon•1h ago

Comments

worthless-trash•1h ago
I heard there's a cup for ppl who hate htmx.

Also, i don't see much htmx in the post, but what do I know.

giancarlostoro•1h ago
The hot one for me right now is C#'s Blazor, which is not too young, bout 8 years now? Basically you can either have it do all the back-end dynamic rendering with C# for your front-end (Server Blazor) or you can compile it to Web Assembly. I have not written any JS in over a year, and the UI is very similar to how Razor pages are made.

I'm of the opinion that this is the future of web development for numerous web frameworks should they invest in tech similar to Blazor. Phoenix's LiveView also comes to mind. I am hoping a brave soul builds something for Django (I've been meaning to try, but I have too many side projects going on atm) that is similar to Blazor.

DonnyV•1h ago
Blazor will die like Sliverlight. Just learn HTML, CSS and Javascript.
codr7•1h ago
Yeah, I'm very wary about putting all my eggs in Microsoft's basket after what I've seen.

They have a pretty extensive history of encouraging everyone to get on the wagon only to drive it straight into the nearest ditch. You can't trust a company that competes with its own customers.

giancarlostoro•59m ago
I know all three, and I'm not seeing it dying any time soon. WebAssembly is not going anywhere, neither are dynamic back-end systems. I have drastically less issues with my front-end while using Blazor compared to just doing raw JavaScript. I've built everything from a PWA from scratch using Vanilla JS, to an iFrame Frenzy web app a client paid us top dollar to build.

Silverlight was proprietary, Blazor is MIT licensed and using open web technologies that are NOT going anywhere any time soon. We just had another major upgrade to Web Assembly's spec not that long ago.

mystifyingpoi•53m ago
So what? It is just another tool in the toolbox. A tool that someone already invested in webdev can pick up in a week or two.
codr7•1h ago
Tried Blazor, but found it too complicated and heavy for my needs.

I've had more success with Phoenix/LiveView.

sieep•57m ago
Blazor at work to keep the lights on, Phoenix at home to keep my sanity :D
bilekas•1h ago
Why anyone would choose to use the Razor syntax at any time is beyond me, let alone for the web. There is no need to make it so complicated, HTML is interpreted.

As the article says :

> HTMX leaves it up to the developer to impose discipline on their code, however they see fit.

He said that like it's a bad thing. I really dislike those frameworks like Angular for example who simply say "You need to do it the Angular way". That just slows down innovation or clever ideas that solve little problems. Instead if there is a slow framework (looking at some peoples react implementations, Cloudflare recently [0]) Well you probably wont consider it or just see it as a "quirk" of the framework.

[0] https://blog.cloudflare.com/deep-dive-into-cloudflares-sept-...

giancarlostoro•57m ago
There is no "blazor" way as far as I can tell, we've been rewriting our logic and structure since when everyone started on this project nobody knew how to structure Blazor, moving forward we are following best practices from React projects to an extent in order to better organize and keep components tidier.
alex-moon•1h ago
Definitely - I think what's really interesting is that there is clearly a kind of "attractor" which all of these frameworks are pulled toward. That's kind of mainly what I was trying to aim at with the blog post - MESH isn't a solution at all, it's more I built it to show why it would go that way, i.e. the same way LiveView etc. and of course Blazor went. My question is: is there a form of this that could be merged back into the HTML spec itself and supported by the browsers? My gut says there isn't, by the way.
giancarlostoro•58m ago
Yeah I wasn't trying to take away from what you wrote, just sharing my experience with a different framework. :) Please, use and work with what keeps you productive!
jzig•56m ago
Alex where on god's green earth is your scroll bar?
yxhuvud•2m ago
There are definitely some parts that are common between these that it could be nice to propagate to the standard. https://alexanderpetros.com/triptych/ lists some of them but I'm not certain how specific to htmx it is or how much it apply to the different variants.
sieep•56m ago
Blazor and Phoenix both seem the most intuitive for me also, especially when building complex frontends that require a lot of business logic. Being able to ditch the JS for that kind of work is amazing.
malnourish•51m ago
I've made some toys with Blazor; my teams are using Vaadin at a Java shop, now. Not exactly the same implementation, but a similar idea: express front end code using the backend language.
elcritch•45m ago
At one company we had a contractor come in say I can totally build a simple IoT dashboard with a few buttons and wanted to use Blazor. I used Phoenix LiveView, on rpi3’s and later rpi4’s just fine. So Blazor sounded similar and figured it’d be fine.

However Blazor just totally tanked the RPi that had 4gb of ram. It took minutes to load a web page when it did load.

Of course that was years ago. Hopefully Blazor got better. Given that starting point I’d doubt it’ll ever match Elixir LiveView in efficiency.

IMHO, other systems will to struggle to replicate Elixir’s LiveView due to BEAMs design using preemptive actors. It’s not impossible, just that’d it’d take a lot of work to match the responsiveness and resource usage.

Currently I’m using Nim on backend and front end using a Karax SPA. It’s pretty nice sharing the same code on front end and backend!

endemic•44m ago
At a previous job they were moving away from Blazor (which bummed me out, I love the philosophy) because every time they deployed it broke sessions/disconnected all active users.
zwnow•44m ago
I am torn about SSR. I see the advantages but I hate the workflow so so much... Also tightly coupling the views to your backend is something I really hate.

I want to stay flexible, a completely independent frontend and a completely independent backend.

I tried Phoenix for about 7 months this year and ultimately quit due to it feeling clunky and unintuitive, same with Livewire or any other SSR templating solution I've found.

If there's SSR templating that is actually enjoyable to work with (from a DX perspective), I'd happily try it. Sadly nothing feels as good as just building web components.

pjmlp•40m ago
Which is kind of return to WebForms, GWT and JSF ways of working, only the implementation is a bit different than on the 2000's.

We moved into MVC approach, because of the headaches that it used to be having to debug all the generated stuff from what the browser actually supports as built-in technology.

I don't see that bright future for Blazor, other than a few .NET shops that don't want to learn native browser technology.

darthrupert•1h ago
As the CEO of HTMX, I recommend that nobody use it
nicr_22•1h ago
Interesting direction, thanks for sharing.

If you're interested in this space it's worth looking at data-star.dev. who takes hypermedia in the opposite direction - one endpoint per page, then push updates to components over SSE.

My worry with MESH is that many endpoints might become a (sorry) mess...

leobg•1h ago
Clickable: https://data-star.dev/
alex-moon•1h ago
I remember seeing this on the HN front page a while back! I subsequently forgot all about it, of course. Helps to see it again a second time, especially with the new context - I might give it a try next, see how I go. Thanks for the reminder!
hamonrye•1h ago
there is vulgarity to r3 lab's sse protocol, which mozilla's documentation for closing event streams goes over.

[1]:https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...

deadbabe•1h ago
Is HTMX an antimeme?
grimgrin•1h ago
alex, this is a "Show HN" really, just fyi
alex-moon•1h ago
Ah, possibly - the way I think about Show HN is it's for links to a codebase or demo app. There is a demo app linked in this article but it's not the link posted to HN. The Guidelines explicitly mention "blog posts" as not Show HN - https://news.ycombinator.com/showhn.html - but they also say that's because they "can't be tried out". Grey area? Happy to do whatever precedent suggests.
grimgrin•59m ago
yeah my bad i dont know the rules or what i'm talking about

but looking at your blog post i just thought "oh, they're showing us mesh", probably you're correct here though

DonnyV•1h ago
Congratulations, you have recreated NodeJS but with GO and HTMX.
debo_•1h ago
> With this little helper, I can now start building out a very simple Trello clone to prove the concept.

It's probably worth reading hypermedia.systems before using htmx. The book itself says that for more interactive components, you should go ahead and use JavaScript and whatever interactive framework you want to use on top of that.

I use htmx with Django when:

- I want to have some assurance that I will only have to minimally upgrade dependencies over the next few years

- I'm doing something bog-standard (dashboard / admin UI)

BoredPositron•1h ago
Why is it that people critizing HTMX always end up slapping abstractions on top of it. It always feels like they are missing the point why htmx is endearing for some of us.
an0malous•54m ago
Maybe the causality goes the other way: once you need to do something more complex than the basics, HTMX doesn’t work that well anymore
miningape•47m ago
This has been my experience, the reality is HTMX doesn't scale well in terms of complex ideas / code. Great if you have something simple to achieve, not so great for a massive ongoing project.

In other words: It has a steeper complexity gradient, albeit with a lower complexity floor.

ezekiel68•1h ago
I'm conflicted about this post. On the one hand, it's encouraging and cheerful. On the other hand, it pretends to evaluate HTMX by insisting on conventions which... have nothing to do with HTMX.

Spoiler: HTMX does not deliver under artificial constraints.

endymion-light•57m ago
As someone that dabbles in stuff, I found htmx to be amazing up to the point where I need to find out why a specific logic loop isn't working, or need to do something that's slightly off-piste.

Which is to say it's incredibly useful for simpler websites but difficult for anything past 1000 lines. but i may just be using it wrong!

recursivedoubts•50m ago
Sounds like this app wasn't a good fit for htmx. I have added it to the "On The Other Hand" section on the htmx website:

https://htmx.org/essays/#on-the-other-hand

Regarding the default swap behavior of "innerHTML":

https://htmx.org/quirks/#the-default-swap-strategy-is-innerh...

Our proposal to merge htmx functionality into the HTML spec uses outerHTML:

https://alexanderpetros.com/triptych/

Also consider datastar, it was written from an SSE-first perspective by a go engineer:

https://data-star.dev/

ahallock•45m ago
While these technologies are interesting, React has built a moat with its component ecosystem. It doesn't matter how intuitive or simple your new frontend solution is when I can `bunx add` a component from shadcn/ui and be instantly productive. Not to mention most companies with frontend integrations are shipping their own React components. You get composability and familiarity.

And while there are decent component libraries in plain JS, the top talent is building in React.

causal•43m ago
I like that people are experimenting with HTMX, so please keep it up. But I don't think MESH is one I would pick up for my projects:

- For complex apps, I love JSX for its ability to distill complexity into simple, discrete components.

- For simple apps, I love HTMX ability to make plain the relationship between raw HTML and API response.

In the MESH examples I see a lot of verbose code that doesn't seem to achieve the simplicity of JSX nor the transparency of HTMX. That said, I certainly don't grok MESH yet so perhaps in a project it would click for me.

gwd•41m ago
I feel like this would have been a bit better with some sort of "recap" at the end, to summarize where he got to. The README on the MESH page is a good summary:

> MESH is a fun project intending to demonstrate the kinds of concepts embodied by HTMX - without using HTMX. Specifically, we're rendering modular elements on the server, and hydrating them on the client, swapping them out as needed instead of reloading the whole page. Component updates are swapped in place. Out-of-band updates are sent to all connected clients via SSE (server-side events), meaning all users see updates in real time.

(To expand that for people not familiar with HTMX's out-of-band updates: Basically, in MESH, on the client you hook up something listening to updates sent from the server via SSE. What the server sends are basically snippets of HTML with an ID in them; the listener on the client replaces the HTML in the DOM with that ID with the HTML sent over the wire. This allows the server to arbitrarily update the client's UI.)

So it shares one of the mechanisms of HTMX, which is to do SSR with the ability to replace individual elements.

andrewstuart•39m ago
After being a React true believer I ditched it recently.

I tried to go pure JavaScript but ended up with web components with lit and really could not be happier.

recursivedoubts•36m ago
One other comment, if you want to experiment w/different behaviors and defaults around the general concept of htmx (generalized hypemedia controls in HTML) you can fork fixi.js which is 89 lines of code (and uses `outerHTML` as the default swap strategy):

https://github.com/bigskysoftware/fixi/blob/master/fixi.js

i created it as an experiment in minimalism:

https://github.com/bigskysoftware/fixi#-fixijs---it-aint-muc...

dkyc•35m ago
From "framework fatigue" to "new framework" in five paragraphs.

Personally, I find all these minimalist, back-to-the-basics frameworks a bit misguided. It's always reeks a bit of "well my farts don't smell" – other developers' frameworks are bloated, dependency-overloaded and too complex. My new framework is simple, based on a powerful idea, and just right.

Imo, the best way to build a truly good web app in 2025 is to embrace both server-side rendering and client-side rendering, by sharing the same rendering logic between client and server, like e.g. SvelteKit, Next.js and others do.

replwoacause•31m ago
I prefer the approach of EHTML:

https://e-html.org/

JodieBenitez•25m ago
Strange post. It feels like trying to carve a piece of wood with an iron. Cool hack, I guess... this is hacker news after all.
827a•1m ago
In a similar vein, I consumed some content from DHH talking about how 37Signals went no-build for Hey or something, then figured I'd play with that idea for a bit and see what its like developing a no-build site.

The immediate problem I hit was that tailwind essentially requires a build; at the most basic level because you don't want to bundle properties that your app isn't using, but at a more sophisticated level, because properties like `md:flex` or `max-w-[100px]` intrinsically demand some amount of dynamism in their generation. I played around with re-creating a functional no-build subset of tailwind, but it quickly hit many-many dozens of kilobytes while being unable to cover even a small subset of Tailwind's capability.

So, no tailwind, which I feel is a major loss in productivity. I didn't end up pursuing the dream further; a hyper-minimal vite app, even just using basic HTML & CSS, feels to me a very small price to pay given all the benefits it carries.

Extensible Query Optimizers in Practice [pdf]

https://www.microsoft.com/en-us/research/wp-content/uploads/2024/12/Extensible-Query-Optimizers-i...
1•officerk•32s ago•1 comments

Symmetric MultiProcessing, Hyper-Threading and Scheduling on Maestro

https://blog.lenot.re/a/smp
1•todsacerdoti•45s ago•0 comments

Roast my AI task manager please:)

https://weesp.ai/
1•dor_lnd•2m ago•0 comments

DHS Calls for Media and Far Left to Stop the Demonization of President Trump

https://www.dhs.gov/news/2025/09/17/dhs-calls-media-and-far-left-stop-demonization-president-trum...
1•speckx•3m ago•0 comments

Open Infrastructure Is Not Free: A Joint Statement on Sustainable Stewardship

https://openssf.org/blog/2025/09/23/open-infrastructure-is-not-free-a-joint-statement-on-sustaina...
1•michaelw•3m ago•1 comments

Psychedelics Blew His Mind. He Wants Other Philosophers to Open Theirs.

https://www.nytimes.com/2025/09/21/books/review/justin-smith-ruiu-on-drugs-philosophy.html
1•mitchbob•4m ago•1 comments

Time Traveling Your AI Context

https://colinplamondon.substack.com/p/time-traveling-your-ai-context
1•colinplamondon•4m ago•0 comments

Fastembed: Rust library for generating vector embeddings, reranking

https://github.com/Anush008/fastembed-rs
1•klaussilveira•4m ago•0 comments

Pope Leo refuses to authorise an AI Pope

https://www.pcgamer.com/software/ai/pope-leo-refuses-to-authorise-an-ai-pope-and-declares-the-tec...
1•labrador•6m ago•0 comments

Porter's Generic Strategies

https://en.wikipedia.org/wiki/Porter%27s_generic_strategies
1•rzk•6m ago•0 comments

Show HN: Monitor Aftermarket Domain Listings

https://domdb.com/tools/domain-watch
1•timbowhite•8m ago•0 comments

Meta launches super PAC to fight AI regulation

https://www.axios.com/2025/09/23/meta-superpac-ai-regulation
1•thm•9m ago•0 comments

How are developers using AI? Inside our 2025 DORA report

https://blog.google/technology/developers/dora-report-2025/
2•meetpateltech•9m ago•0 comments

Why aren't you a good fit?

https://newsletter.antoniokov.com/archive/why-arent-you-a-good-fit/
1•BerislavLopac•11m ago•0 comments

CIA Thwarts Major Telecom Attack in NY

https://apnews.com/article/unga-threat-telecom-service-sim-93734f76578bc9ca22d93a8e91fd9c76
3•certifiedloud•11m ago•0 comments

Released Gato AI Translations with a unified prompt for all AI services

https://gatoplugins.com/blog/released-v15-with-unified-prompt-for-ai-services
1•leoloso•12m ago•0 comments

Deploy your own AI vibe coding platform from Cloudflare

https://blog.cloudflare.com/deploy-your-own-ai-vibe-coding-platform/
1•ZJChen•12m ago•0 comments

H-1B, medical residencies and artificial scarcity

https://mleverything.substack.com/p/h-1b-medical-residencies-and-artificial
2•bko•13m ago•0 comments

Secret Service takes down network that could have crippled New York cell service

https://www.theguardian.com/us-news/2025/sep/23/secret-service-new-york-network
10•tomek_zemla•13m ago•2 comments

OpenDataLoader-PDF: An open source tool for structured PDF parsing

https://github.com/opendataloader-project/opendataloader-pdf
1•phobos44•13m ago•0 comments

Pycon UK 2025: Principle Misunderstandings, Kevlin Henney [video]

https://www.youtube.com/watch?v=gCEbtNVH2LQ
2•aivarsk•15m ago•0 comments

Trusted Publishing on Nuget.org

https://devblogs.microsoft.com/dotnet/enhanced-security-is-here-with-the-new-trust-publishing-on-...
1•soheilpro•15m ago•0 comments

Libghostty Is Coming

https://mitchellh.com/writing/libghostty-is-coming
1•kingori•16m ago•0 comments

Building Git for Lawyers

https://theredline.versionstory.com/p/on-building-git-for-lawyers
1•amai•16m ago•0 comments

Scalable Revisioned Graph Database

https://blog.dydra.com/@datagenous/scaling-dydra-with-rondb-toward-a-trillion-triple
1•mikaelronstrom•16m ago•1 comments

How the Low-Key Billionaire Behind Surge Is Beating Out Rivals Like Scale AI

https://www.forbes.com/sites/phoebeliu/2025/09/17/the-ai-billionaire-youve-never-heard-of/
1•doppp•17m ago•0 comments

OrangePi 5 Ultra Review: An ARM64 SBC Powerhouse

https://boilingsteam.com/orange-pi-5-ultra-review/
4•ekianjo•17m ago•0 comments

Backing up the MCP ecosystem: 3% of repos gone in under a year

https://glama.ai/blog/2025-09-23-backing-up-the-mcp-ecosystem-3-of-repos-gone-in-under-a-year
1•punkpeye•18m ago•0 comments

Brutalita Sans: An Experimental Font and Font Editor

https://brutalita.com/
2•fibo•18m ago•0 comments

Weighted Selection Process for Those Seeking to File H-1B Petitions [pdf]

https://public-inspection.federalregister.gov/2025-18473.pdf
1•akashshah87•19m ago•1 comments