TCP ingest + raw payloads
Accept raw ESC/POS bytes on a TCP listener (default 9100). Raw payloads are preserved, even when parsing fails, so debugging stays possible.
Open POS Printer Emulator is a self-hosted web app for testing ESC/POS integrations. Send raw bytes over TCP, inspect parsed commands, preview receipts, and debug print jobs in real time.
Development only: designed for local dev/QA, not recommended for production deployment.
Works with any client that can send raw ESC/POS over TCP — including ESC/POS Printer Server.
curl -fsSL https://raw.githubusercontent.com/darkterminal/open-pos-printer-emulator/main/scripts/install.sh | bash
A practical emulator for developers and operators: capture payloads, inspect commands, and verify receipt output before touching hardware.
Accept raw ESC/POS bytes on a TCP listener (default 9100). Raw payloads are preserved, even when parsing fails, so debugging stays possible.
Visual receipt preview powered by a Node.js parser sidecar, with command inspector, warnings, and raw hex/base64 views.
Live job updates via Reverb/Echo with polling fallback. Filter history, inspect details, and export/print receipts from the browser.
Manage TCP listeners, printer profiles, and fault simulation for realistic test cases.
Route print jobs from ESC/POS Printer Server to OPPE over ethernet TCP. No physical printer required.
Built-in profiles are seeded from the mike42/escpos-php supported printer list. The screenshots below show real E2E captures against TM-T88V, TM-U220, ZJ-5890, and Star TSP100III profiles.






Use Kiri (default) or Docker Compose. The Makefile supports both engines.
curl -fsSL https://raw.githubusercontent.com/darkterminal/open-pos-printer-emulator/main/scripts/install.sh | bash
The installer is for local development only. Review scripts/install.sh before running. For manual setup:
git clone https://github.com/darkterminal/open-pos-printer-emulator.git
cd open-pos-printer-emulator
cp apps/web/.env.example apps/web/.env
cp apps/sidecar/.env.example apps/sidecar/.env
make up
# Docker: make up ENGINE=docker
After startup, open http://localhost:8080 and send a test payload to localhost:9100.
printf "\x1B\x40Hello ESC/POS\n\x1D\x56\x00" | nc 127.0.0.1 9100/jobs to inspect the received jobThe emulator, parser, sidecar, and web UI live in one repository. Run it locally, inspect real payloads, and make ESC/POS integration less painful.
Star on GitHubOpen POS Printer Emulator is free and open source. If it helps your workflow, consider sponsoring its development or starring the repository.