If you've ever worked on a POS system, you probably know that getting receipt printers to work reliably can be more annoying than it should be.
A web app needs to communicate with a local printer, different environments use different printer interfaces, and debugging ESC/POS commands without the actual hardware can slow development down.
I built two open-source projects to make that workflow easier.
1. ESC/POS Printer Server (EPS)
EPS is a WebSocket-based printer server for PHP applications. It acts as a bridge between your web/POS app and thermal printers.
Some features:
- WebSocket communication with payload validation
- Supports CUPS, Ethernet, Linux USB, SMB, Windows USB, and Windows LPT
- Web-based GUI for printer management
- Cash drawer control
- Optional token authentication
- Windows and Unix deployment bundles
It's built with PHP 8.3+, Workerman, and ESC/POS-PHP.
GitHub: https://github.com/darkterminal/escpos-printer-server
2. Open POS Printer Emulator (OPPE)
OPPE is a self-hosted web app for testing ESC/POS integrations without needing a physical printer.
It listens for TCP printer connections (port 9100 by default) and renders incoming receipts in the browser.
Some features:
- Live receipt preview
- ESC/POS command inspector
- Hex and Base64 inspection
- Print job history
- Configurable TCP listener
- Fault simulation, including paper out, cover open, cutter error, and offline states
The stack is Laravel 12, React 19, Inertia, TypeScript, and Reverb.
GitHub: https://github.com/darkterminal/open-pos-printer-emulator
How they fit together
The idea is pretty simple:
- Use OPPE while developing and debugging your ESC/POS integration.
- Use EPS when your application needs to communicate with real thermal printers.
OPPE helps with testing. EPS handles the production printer connection.
Both projects are open source, and I'd genuinely appreciate feedback from people who have worked with POS systems, thermal printers, or ESC/POS integrations.
I'm especially interested in hearing:
- How do you currently test receipt printer integrations?
- Do you use a physical printer for development, or do you have an emulator?
- What printer models or ESC/POS commands should I consider supporting next?
Happy to hear criticism and suggestions.