Shameless plug: I created a pretty similar piece of software: Weylus [1].
Additionally to mirroring the screen touch input is forwarded, so you can use your tablet as graphic tablet for your computer. I only use it on Linux so that's where it works best. It comes as a single (mostly) statically linked binary with a minimal gui (and headless mode via command line) and is written in Rust (do I still get brownie points for that?).