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
@aral That’s amazing. I had to click. It was blank! No more. So it neatly persists?
@cogdog In memory.
Although it could if I wanted to using the integrated JSDB in Kitten :)
@aral Amazing how much it is morphing!