Direct Hardware Transports

Bluetooth Print SDK & LAN Printing

Pair BLE thermal/portable printers directly in the browser or discover and dispatch IPP & Raw 9100 printers on your Local Area Network.

Bluetooth Print SDK

Web Bluetooth GATT + ESC/POS Raster & Raw PDF

Web Bluetooth is unavailable in this browser. Open this page in Chrome, Edge, or Android Chrome over HTTPS or localhost.
Supported BLE Printer GATT Services (10)
  • 000018f0-0000-1000-8000-00805f9b34fb
  • e7810a71-73ae-499d-8c15-faa9aef0c3f2
  • 49535343-fe7d-4ae5-8fa9-9fafd205e455
  • 0000ffe0-0000-1000-8000-00805f9b34fb
  • 0000ff00-0000-1000-8000-00805f9b34fb
  • 0000ae30-0000-1000-8000-00805f9b34fb
  • 0000af30-0000-1000-8000-00805f9b34fb
  • bef8d6c9-9c21-4c9e-b632-bd58c1009f9f
  • 0000fee7-0000-1000-8000-00805f9b34fb
  • 6e400001-b5a3-f393-e0a9-e50e24dcca9e
SDK Usage (TypeScript / Browser)
import { createSafePrintBluetoothSdk, EscPosEncoder } from '~/utils/bluetoothPrintSdk'

const sdk = createSafePrintBluetoothSdk()
const printer = await sdk.connect() // Opens Web Bluetooth GATT picker

const bytes = new EscPosEncoder()
  .initialize()
  .align('center')
  .bold(true)
  .line('SAFEPRINT RECEIPT')
  .bold(false)
  .qrCode('https://safeprint.karsmiths.com/kiosk/local', 5)
  .feed(4)
  .cut(true)
  .encode()

await sdk.write(bytes, {
  chunkSize: 128,
  chunkDelayMs: 18,
  onProgress: pct => console.log(pct + '%')
})

LAN Printing Engine

mDNS Discovery + IPP/2.0 & Raw TCP 9100

Probe Printer by IP or Hostname
LAN Print API Usage
// 1. Discover mDNS / IPP / Raw 9100 printers on LAN
const { printers } = await $fetch('/api/lan/discover?scan=false')

// 2. Probe a specific IP or .local hostname
const { printer } = await $fetch('/api/lan/probe', {
  method: 'POST',
  body: { host: '192.168.1.50', port: 631, protocol: 'ipp', resourcePath: '/ipp/print' }
})

// 3. Dispatch baked PDF to the LAN printer
const form = new FormData()
form.append('file', pdfBlob, 'document.pdf')
form.append('host', printer.host)
form.append('port', String(printer.port))
form.append('protocol', printer.protocol)
const result = await $fetch('/api/lan/print', { method: 'POST', body: form })
SafePrintDocuments are deleted automatically after printing