So given it’s Saturday night, I thought I’d have a little fun with Kitten and make a tiny collaborative drawing toy.
You have a 20×20 grid and only black and white to draw with and everyone shares the same canvas.
https://draw-together.small-web.org
Have fun + looking forward to seeing what we all, umm, draw together.
PS. It took about 60 lines of code.
View source: https://codeberg.org/aral/draw-together
@aral oh no we killed it
@paillp @Adrian Added data type and bounds checking on the row and column index values. That should avoid that issue.
If you find anything else, please do let me know (or file an issue at https://codeberg.org/aral/draw-together if you get a chance). Appreciate it :)
@paillp @Adrian So I found a huge old hole in Kitten where it was just assuming that the data sent over was valid JSON and not handling the error if it wasn’t.
Fixed that, deployed a new version Kitten and a new version of the site.
Are you getting the same issue now? :)
(And thank you, by the way, really appreciate you poking it.)