mastodon.ar.al is one of the many independent Mastodon servers you can use to participate in the fediverse.
This is my personal fediverse server.

Administered by:

Server stats:

1
active users

As a fun little exercise, I decided to port Miuki Miu’s (Elizabet Oliveira’s) adorable React Kawaii¹ to Kitten².

Going to write a blog post about the experience but, in the meanwhile, if you want to play with the cute little characters, here you go:

kitten-kawaii.small-web.org

And here’s the source code:

codeberg.org/aral/kitten-kawai

Things to try: the back and forward buttons ;)

¹ react-kawaii.vercel.app
² kitten.small-web.org

Aral Balkan

Following the data scope bug I fixed yesterday, I just added a new feature to Kitten to make this sort of bug more difficult to introduce into your apps.

Introducing: page storage (server-side, ephemeral page-scoped data).

This is available only for the Streaming HTML workflow and the scope is shared between your page route and on your onConnect() handler. It’s great if you want state per page instead of per session, etc.

New data scopes docs: kitten.small-web.org/reference

You should now get per-page state for the Kitten Kawaii example:

kitten-kawaii.small-web.org

See diff with the session-based fix I implemented yesterday:

codeberg.org/aral/kitten-kawai

For more information on Kitten’s Streaming HTML workflow, see this tutorial:

kitten.small-web.org/tutorials

PS. I also improved the handling of dynamically-added HTML attributes in Kitten’s HTML parser in the process.

Enjoy!

:kitten: 💕