I recently wanted to learn how to use tf.js, so had a couple of mini-projects. The first is a minimal working example showing how to train a model in python and then load it in javascript.
https://github.com/paruby/mnist
The second is the classic game of snake, controlled by pointing your head in the direction you want to steer the snake.
https://github.com/paruby/snake-face/
This uses the MediaPipe Facemesh model with the device camera to work out which direction your head is pointing in.