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

New Kitten update

🥳 Kitten HTML templates and kitten.Component render functions can now be async.

kitten.small-web.org

This is quite a big one and it took me finally biting the bullet and getting my head around generators in JavaScript to implement properly.

So now you can mix synchronous and asynchronous components as you like and if there are any asynchronous components in your templates they will automatically be awaited (even if you forget to use await) ;)

I’ll write a proper post/tutorial/documentation for it soon but for the time being enjoy the screenshots where a layout template gets the latest three posts from my mock fediverse public timeline service and displays them on the page.

The kitten.Component version also has a refresh button that streams a different three to the page.

For those of you unfamiliar with Kitten, this is all the code in either example. No scaffolding, nothing. Pop either into a file called index.page.js and run kitten in that folder and visit https://localhost to see the example run.

Enjoy!

:kitten:💕

@aral looks really neat! I'll take a closer look once I'm back to work at my desktop pc and not drowning in emails any more. I especially like the fact that I'm apparently not the only one who doesn't have all of javascript figured out and occasionally has to bite some bullets before progress can be made 😄 (I'm currently at this point again.)

Aral Balkan

@netzhexe Cool; please let me know what you think and, especially, if anything confuses you as you’re trying to get started. There’s still so much work I have to do on the documentation, tutorials, etc.., and it’s changing so fast (hopefully slower, now) that it’s hard to keep up sometimes (especially since the goal is to use it to finish building Domain and Place¹ and launch them this year.

PS. I find there are always new bullets to bite. But I’m almost always happier for it down the line :)

¹ See ar.al/2024/06/24/small-web-com

Aral Balkan · Small Web: computer science colloquium at University of GroningenDownload the video and watch it with your favourite video player. Recording1 of the live stream of a computer science colloquium on the Small Web I presented at the University of Groningen on June 11th, 2024. (Transcript) Update: I was going back and forth between calling the personal social network Place and Yarn. In the talk, I refer to it as Yarn. As I’ve been working more on it, I’ve reverted to its original name, Place.