Thermal printer controlled with JavaScript using ESC/POS and TCP sockets.
- The printed connection is done in
./lib/printer.ts - The Photobooth printing is done in
./actions/print.tsand the UI is in./components/PhotoBooth.tsx - The Chat printing is done in
./lib/chat.ts, the AI "Toxic message" detection in./lib/sfw.tsand the UI in./components/ChatForm.tsx. - The Sentry issue + screenshotting is done in
./lib/sentry.ts
I'm using a Rongta 80mm Receipt printer, but almost any one will do as they all operate on ESC/POS. I am hard wired ethernet, but many of them connect over USB, Serial, Wifi and bluetooth.