To help my partner with knitting and crocheting, a while ago I built this small tool.
https://manueluberti.eu/stitchcounter.html
It clearly shows how bad I am at JavaScript and HTML, but hey, I am getting nice socks and gloves thanks to it, so all good if you ask me.