Skip to main content


Just added a code breakdown for the Draw Together¹ Kitten² app to my blog post with the tutorial video:

https://ar.al/2024/03/26/draw-together/

Draw Together, in ~50 lines of code, is a real-time collaborative drawing tool on a 20×20 pixel grid where people can click to toggle the colour of each pixel.

(The full source and explanations fit the four screenshots on this post.)

¹ https://draw-together.small-web.org
² https://kitten.small-web.org

#Kitten #DrawTogether #web #design #dev #SmallWeb #WebSockets #StreamingHTML

in reply to Aral Balkan

That’s amazing. I had to click. It was blank! No more. So it neatly persists?
in reply to Alan Levine

In memory.

Although it could if I wanted to using the integrated JSDB in Kitten :)

https://kitten.small-web.org/tutorials/persistence/

This entry was edited (2 weeks ago)