@neauoire coincidentally, I was doing something similar a few months ago.
It was aimed to dislexic people doing math. So only supports numbers, it recognizes flipped gestures (you can draw a 5 looking to the left), and aligns to the grid.
Wip, hacky implementation, etc. Everything is in the page source code, no dependencies.
@feiss nice :) works well