News for hackers. Stuff that matters.
Re:Let's Make the Worst Htmx by yawaramin on Friday July 31, 2026 @10:56AM (#49123989)
No, every interactive event doesn't need to have a network request in the loop. And you only need a tiny bit of client-side JS for a most of the plumbing.

It is quite pleasant to work with, because you don't have to worry about a constant stream of vulnerabilities or supply chain attacks. You just vendornthe script in your repo, add it as a <script> tag on the page, and you're done.

Re:Let's Make the Worst Htmx by deadbabe on Friday July 31, 2026 @08:01PM (#49129861)
Who is worrying? If JavaScript is on the front end the supply chain attacks are really not your problem.
Re:Let's Make the Worst Htmx by traverseda on Friday July 31, 2026 @09:29PM (#49130258)
What? It handles your password fields.
Re:Let's Make the Worst Htmx by deadbabe on Friday July 31, 2026 @09:31PM (#49130268)
Just do SSO.
Re:Let's Make the Worst Htmx by yawaramin on Saturday August 01, 2026 @11:03PM (#49140659)
Just do passkeys.
Re:Let's Make the Worst Htmx by cpburns2009 on Saturday August 01, 2026 @09:16AM (#49134180)
The supply chain attacks you need to worry about come from using npm.
Re:Let's Make the Worst Htmx by Rohansi on Saturday August 01, 2026 @12:09PM (#49135616)
No, it's not specifically npm. All package managers enable remote code execution by design - you tell it to download code and then you run that code, likely without sandboxing, by using it. Most people are not inspecting the code before they download and run it. You will still see compromised packages making their way through npm even though they disabled install scripts.
Re:Let's Make the Worst Htmx by cpburns2009 on Saturday August 01, 2026 @12:49PM (#49136022)
I agree. I just pointed out npm because it's the most prominent javascript one.
Re:Let's Make the Worst Htmx by Rohansi on Friday July 31, 2026 @10:45PM (#49130603)
Supply chain attacks are not a JavaScript or npm exclusive risk. If you pull in any dependencies you have a supply chain risk.
Re:Let's Make the Worst Htmx by barrkel on Saturday August 01, 2026 @02:01AM (#49131504)
As is well known, security is not a binary, it's a spectrum. It's why you add security in layers, and why it's generally a trade-off between risk and usability.

Your mileage may vary, but I sleep better with my own projects not having any node_modules in their build tree.

Re:Let's Make the Worst Htmx by robertoandred on Saturday August 01, 2026 @12:01AM (#49130913)
How is htmx invulnerable to vulnerabilities and attacks?
Re:Let's Make the Worst Htmx by stymaar on Saturday August 01, 2026 @05:13AM (#49132638)
It's not invulnerable, I think gp just means that reducing your amount of dependencies reduces the attack surface.