WebApp Hardware Bridge (succeeder of “Chrome Hardware Bridge / Chrome Direct Print”)
Make it possible for WebApps to perform silent print and access to serial ports.
Common use cases:
- Web-based POS – PDF and receipt silent print
- Web-based WMS – Serial weight scale real-time reading
- Direct print from webpage
- Serial read/write from webpage
- Support all modern broswers that implemented WebSocket (Chrome, Edge, Firefox… etc)
- JS SDK/Example included
Web Direct Print
- 0-click silent printing in web browsers
- Download via URL / Base64 encoded file / Base64 encoded binary raw command
- Support multiple printers, mapped by key
- Support PDF/PNG/JPG Printing
- Support RAW/ESC-POS Printing
Web Serial Access
- Bidirectional communication
- Serial weigh scale (AWH-SA30 support in SDK)
- Support multiple ports, mapped by key
- Support multiple connection share same serial port
How to use?
- Install and setup mapping via Configurator
- Start “WebApp Hardware Bridge” and it should works
- Check JS SDK/Example
How it works?
WebApp Hardware Bridge is a Java based application, which have more direct access to hardwares.
It expose a WebSocket server on localhost which accept print jobs and serial connection.
For print jobs, PDF/Images job are downloaded/decoded and then sent to mapped printer.
Raw job are sent to mapped directly.
For serial port, serial port are opened by Java and “proxified” as WebSocket stream,
which allow bidirectional communcations.
Configurator is provided to setup mappings between keys and printers/serials.
Therefore web apps do not need to care about the actual printer names.
Source Code & Downloads
Source Code: https://github.com/imTigger/webapp-hardware-bridge
Windows Binary: https://github.com/imTigger/webapp-hardware-bridge/releases
Mac/Linux: Coming soon, or compile it yourselves