Front-End RoundupGathered from around the web

Recent from Master.dev Blog

Page 2 of 3.

Building an Isolated Preview for AI-Generated HTML

I owe this article to an uncomfortable moment while writing the last one. I built the demos in Testing an iframe’s postMessage Handler with AI assistance. I designed the handlers and the test cases, and a model wrote much of the page…

Master.dev Blog

“I Redesigned VLC After 25 Years”

I watched this whole video by Juxtaposed, assuming it was a real redesign of the VLC player, but alas, it is not official. Nevertheless, it should be, and it’s a wonderful example of how much real human brainpower it takes to design…

Master.dev Blog

Structured Output with TanStack AI

This is part 2 of an introductory post on TanStack AI. In part 1, we covered sending requests to our AI model, processing responses, persisting and streaming them, and even how to recover if the user refreshed or disconnected mid-stream. In…

Master.dev Blog

Unlocking AI in Your Apps with TanStack AI

TanStack AI is the latest offering from the TanStack universe. It’s an ecosystem of AI libraries that lets you add virtually any AI feature you can imagine to your apps. Like other TanStack libraries, it’s fully featured and extremely…

Master.dev Blog

SVG “Linked Parameters” Will Change How We Do Icon Systems

Vadim Makeev has a great blog post detailing an SVG styling situation as old as time. Basically: Inline SVG is pretty good because it’s fast and has full styling control, but it can bloat the DOM and doesn’t take advantage of caching. SVG…

Master.dev Blog

Building a Fancy Scrollspy Using Modern CSS

CSS has evolved a lot in the past few years, letting us build better user interfaces without relying on JavaScript. If you are anything like me, you may have felt a little overwhelmed at some point by all the new features and capabilities…

Master.dev Blog

“WebMCP is Agentic WebPerf”

Yoav Weiss makes a good point: “WebMCP is Agentic WebPerf”. I’ve seen both pushback to WebMCP in the form of “websites should just be better, or agents should be smarter, there shouldn’t be alternative paths to using them built.” And I’ve…

Master.dev Blog

Tips and Tricks for Using TanStack Start with Cloudflare Durable Objects

I’ve previously written about Cloudflare’s Durable Objects (DOs), and I’ve written about TanStack Start too many times to list here (you could start here, though, or better, take my course ). This post covers some tips and tricks I’ve found…

Master.dev Blog

5 Good Choices for HTML Containers

During the HTML5 revolution, besides sending the Adobe Flash media player into retirement, truly semantic markup made headlines. But even today, it’s not that easy to shake off the habit of reaching for <div> and <span> when we quickly need…

Master.dev Blog

How an accessibility designer adds keyboard shortcuts to a web app

Eric Bailey explains the thinking and research that go into adding just a few custom keyboard shortcuts to a web app. There’s an absolute ton to consider and test, and plenty of challenges can come from your own team.

Master.dev Blog

Testing an iframe’s postMessage Handler

An embedded widget lives in a strange spot. An iframe is a separate document, so the parent’s CSS doesn’t automatically cascade into its contents, and the frame’s CSS doesn’t cascade out, regardless of the origins involved. When the origins…

Master.dev Blog

Transferring sibling-count() to a Parent Element

How many elements does your container have? You might think you can answer that with sibling-count() until you find out that it counts siblings and not children. We can always rely on :has() to create quantity queries selectors (I have a…

Master.dev Blog

You Don’t Know Bidi (And Neither Does ChatGPT)

If your first language is written left to right, you might be surprised to learn that some languages are written the opposite way. Arabic, Persian, Hebrew, and others flow from right to left. That can be an interesting fact to learn about…

Master.dev Blog

Making the Most of Vercel’s AI SDK with Cloudflare Durable Objects

I’ve written about Vercel’s AI SDK and AI Gateway before. That post covered the basics of setting up an account in the AI Gateway (or directly in a provider of your choice), and making requests against an AI model while constraining the…

Master.dev Blog

Randomly Place an Element Along Edge of Another Element

Let me show you what I saw that started my brain turning: This is from the website of the podcast The Midnight Rebellion on WBUR. It’s a cute little crab that walks around on the top of an element! I love it! It reminded me of a very cool…

Master.dev Blog