Simple proof of concept project to train a model and run inference on it completely in the browser. This is a static site. There's no backend
Used: PyTorch to train my own EMNIST CNN, ONNX runtime to run in the browser, and a canvas DOM element to get the input to run it.
There are definitely more accurate models out there, but for a proof of concept, this is good enough.