Skip to content

New plugin: grit-hardware — ESC/POS thermal printer + cash drawer + barcode scanner bindings #64

@MUKE-coder

Description

@MUKE-coder

Wails desktop kits (POS, Warehouse Scanner) need direct USB / Bluetooth / serial communication for thermal printers (ESC/POS), cash drawers (24V kick via printer), and barcode scanners (USB HID keyboard emulation). Go has decent libraries for each but wiring them takes a day per integration.

Proposed fix:
New grit-hardware plugin that wraps:

  • escpos.Printer for thermal receipt printing (USB / Bluetooth / Network) — mugli/go-escpos under the hood
  • escpos.OpenCashDrawer() (sends the DLE DC4 kick command through the printer)
  • barcode.ScannerListener for USB HID input bursts (intercepts fast-typed keyboard sequences and emits as barcode events)
  • ZPL printer support for Zebra labels
  • Sample receipt template generator (logo + items + tax breakdown + QR receipt code)

Unlocks: POS systems, warehouse clients, inventory scanners, ticket printers, label printers — categories Grit's "we ship desktop apps" pitch will live or die on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions