Well this is such an old project idea that they are already being sold on aliexpress both in complete form for $500 and $50 per torque axis if you want to make one from scratch. Just search up cubli.
The brushless type looks interesting, since you get the flywheel, the motor, an integrated driver, and encoder board all in one piece. A bit pricey still, and the encoder documentation is lacking, otherwise I might've ordered one or two already.
Would be really cool to make a satelite model that hangs from the ceiling by hanging it at its center of mass on a ball joint, so it can rotate in all directions, then using these to orient it in specific ways, solar panels for charging, radio comms to give it commands, sonic humidifier as the rocket engine, etc. Maybe one day lol.