Credits for this awesome css printer: https://codepen.io/jh3y (https://codepen.io/jh3y/pen/JjEegBK)
Some days ago I built this POC of a virtual printer controlled by TikTok Events. Maybe you can use it for your own projects.
Just install dependencies, add your username (Or someone else, has to be live) and run.
Install dependencies and build the frontend (npm run build).