@point-of-sale/

A set of JavaScript libraries for building point-of-sale applications. From receipt printers to barcode scanners, we've got you covered.

Print receipts from the browser or any other JavaScript runtime
Scan barcodes using any common scanner, or use your webcam
Field tested on dozens of actual printers and barcode scanners

Create a receipt using a simple API that describes what you want to show on your receipt. You can add text, tables, barcodes and QR codes. And if you want you can even use Markdown for text style or Receiptline for layout. Then encode your receipt into ESC/POS or StarPRNT printer languages.

Pick from a number of different printer drivers that fit your situation and your hardware. Use WebUSB, WebSerial or WebBluetooth direct from the browser, or use vendor SDKs from Capacitor. You can even use the already installed system printer drivers from Node or Electron for a seamless printing experience.


receipt-printer Playground

Creating a receipt using easy steps:

@point-of-sale/receipt-printer-encoder
|
+

Printing directly from the browser:

@point-of-sale/webusb-receipt-printer
@point-of-sale/webserial-receipt-printer
@point-of-sale/webbluetooth-receipt-printer

Printing from Node, or an Electron app:

@point-of-sale/network-receipt-printer
@point-of-sale/system-receipt-printer

Printing from a Capacitor app on iOS and Android:

@point-of-sale/capacitor-network-receipt-printer
@point-of-sale/capacitor-bluetooth-receipt-printer
@point-of-sale/capacitor-epson-epos-receipt-printer
@point-of-sale/capacitor-stario-receipt-printer
@point-of-sale/capacitor-sunmi-receipt-printer

Rendering receipts to images, for printers that only print graphics or to display on screens:

@point-of-sale/receipt-printer-renderer
|
+

Determining the status of the printer and accessing peripherals:

@point-of-sale/receipt-printer-status
|

barcode-scanner Playground

Scanning barcodes by using an external scanner, or the camera of a laptop or mobile device:

@point-of-sale/webhid-barcode-scanner
@point-of-sale/webserial-barcode-scanner
@point-of-sale/webcam-barcode-scanner
@point-of-sale/keyboard-barcode-scanner

Scanning with the built-in scanner of a Star mPOP or a SUNMI device from a Capacitor app:

@point-of-sale/capacitor-stario-receipt-printer
@point-of-sale/capacitor-sunmi-receipt-printer

customer-display

Show text on a customer facing display:

@point-of-sale/webserial-customer-display