Topics /

Web & Frontend

The most popular blog posts about web & frontend on Hacker News. 325 posts.

2025
94

Most RESTful APIs aren't really RESTful

When talking about REST, it is worth reading the dissertation of Roy Thomas Fielding. The original paper that describes RESTful web, “Architectural Styles and the Design of Network-based Software Architectures” Roy T. Fielding (2000), introduces the Representational State Transfer (REST) architectural style as a…

97

An SVG is all you need

SVGs are pretty cool - vector graphics in a simple XML format. They are supported on just about every device and platform, are crisp on every display, and can have embedded scripts in to make them interactive. They're way more capable than many people realise, and I think we can capitalise on some of that unrealised…

107

I switched from Htmx to Datastar

In 2022, David Guillot delivered an inspiring DjangoCon Europe talk , showcasing a web app that looked and felt as dynamic as a React app. Yet he and his team had done something bold. They converted it from React to HTMX , cutting their codebase by almost 70% while significantly improving its capabilities.

109

The indieweb doesn't need to “take off”

There's a corner of the Internet where people have been reclaiming their digital independence by hosting their own websites and promoting the idea of owning your own content. It's called the IndieWeb. The community has its own website , IRC channels, social media presence, etc. as well

110

New layouts with CSS Subgrid

Subgrid allows us to extend a grid template down through the DOM tree, so that deeply-nested elements can participate in the same grid layout. At first glance, I thought this would be a helpful convenience, but it turns out that it’s so much more. Subgrid unlocks exciting new layout possibilities, stuff we couldn’t do…

112

Feed the bots

A week ago , I set up a dynamically generated nonsense maze to catch LLM scrapers. Now, requests to it make up 99.9% of my server's traffic, but my total request volume did not increase. The bots didn't come to my site because of the trap.

118

Just use a button

One of the weirdest “debates” I seem to perpetually have with framework-enthusiastic developers is whether or not a <div> is “just as good” as a <button>. Spoiler: it’s not. Let’s dig in. The problem Among the React crowd, and also among people who seem to enjoy HTMX, I see a lot this… <div onclick="showSignIn()">…