The best datastar

I have to start this essay by reminding what every Datastar dev will tell you:

The best Datastar is the less Datastar.

We say that because:

This is why Red Dwarf gives you access to query parameters, cookies, headers and etags.

Use them.

In case of Datastar

With that being said, Red Dwarf is a Datastar server.

That is, Red Dwarf does two things:

And that's all you need to be a Datastar server.

Now, if you go take a look at the official Python SDK, you will see that they are a lot more ergonomic, typed, and that they allow you to do more stuff.

However, as I wrote in the real framework essay, Red Dwarf is a teaching tool, and by introducing limitations we hope to make you understand Datastar better.

More often than not, patch is all you need.

Embrace what true reactivity looks like.

Embrace what putting state in the right place looks like.

Use Datastar. Read the Tao. Don't overcomplicate it.

</