GPIO is doable on a mini PC. For example, there are Raspberry Pi Pico firmwares out there that present as a normal gpiochip. I recently set up a pico with 3D printer firmware (Klipper, specifically) so I could control power to my actual printer, which actually works surprisingly well.