Streaming comes to zlFetch


If you’ve never heard of zlFetch before, it’s a library that I’ve created that helps you with the Fetch API. It provides a ton of quality of life improvements like:

  • Automatic response solution (so no need to use response.json)
  • Promise-like error handling
  • Usage with await easily
  • Simple Basic and Token based authentication headers
  • And a ton of other things

Just my personal opinion:

  • It’s better than axios cos it’s less complicated
  • It’s better than ky cos it has better defaults

Last Sunday, I sat down and gave zlFetch a brand new update — streaming capabilities.

  • zlFetch can detect and convert streams automatically
  • zlFetch has a new retry functionality with zlEventSource
  • zlFetch now has types support so it Typescript users won’t have to face red wriggly line complaints. This update is thanks to Juji.
  • zlFetch now has aborting capabilities built in by default — no need to create a new abort controller!

Read this article for more info

With new streaming capabilities, zlFetch is better primed for supporting a brand new influx of AI-first applications.

I’m really excited at what this means — and potentially what I’ll be able to build.

I hope you have fun with zlFetch!

Hi! My name is Zell and here are the things I’ve made

Read more from Hi! My name is Zell and here are the things I’ve made

New article just dropped on CSS Tricks 😉. This one is about improving the Resize Observer API so it becomes much easier to use. So you go from this: To this: Hope you have fun reading through this one. I have one more article on improving the Mutation Observer and Intersection Observer in the same style coming up next week 🙂.

I’m happy to announce that I am working on a new course — Unorthodox Tailwind. This course shows you how to use Tailwind and CSS in a synergistic manner. This is a great course to take if you have been wondering: How to use the best parts of Tailwind How to use the best parts of CSS How to combine the strengths of both Tailwind and CSS (While avoiding the HTML bloat that usually comes with Tailwind classes) This is also a great course to take if you’ve been yearning for a great system to...

This week I’d like to take a break from talking about code and Splendid Labz — and instead focus on some tooling and ergonomics. If you’ve been hanging out with me for some time, you would have known that I have a Moonlander keyboard. I’m pretty happy with it because it mitigated my carpal tunnel problems for a long long time. (Here’s why it works). Preventing/reducing carpal tunnel problems is important for us developers because, well, we use our hands to work. If we get carpal tunnel, how...