Printer Discovery
Retrieve available local and network printers through TopBridge so users can select the correct device inside your application.
client.printers.list()SDK for Developers
Embed reliable label printing into your web application with the headless TopBridge JavaScript SDK. Connect browser workflows to local and network label printers without building custom middleware.
import { TopBridgeClient } from
'@appzgatenz/label-print-topbridge-js';
const client = new TopBridgeClient();
// Health, quota and printer discovery
const { printers } =
await client.preflight.run();
// Execute the print job
await client.print.execute({
template: 'PRICE_LABEL',
printer: 'TSC DA220',
products: [{
name: 'Apple',
price: 3.99,
copies: 2
}]
});
Headless Architecture
The TopBridge SDK gives your application a browser-native interface for discovering printers, validating the print environment and sending label jobs through the TopBridge desktop application.
Use the SDK with vanilla JavaScript or integrate it into React, Vue, Svelte and other frontend stacks.
Install the package and work with browser-native APIs without adding a heavy client-side dependency tree.
Use fixed connection endpoints, origin verification and input validation as part of a controlled browser-to-desktop workflow.
Your interface remains in the browser while TopBridge handles the local printer connection.
Core SDK Capabilities
Build a clearer print flow with structured checks, predictable printer access and a dedicated execution layer.
Retrieve available local and network printers through TopBridge so users can select the correct device inside your application.
client.printers.list()Confirm that the TopBridge tray application is available before the user submits a print job.
client.health.check()Validate print availability as part of the preflight sequence before the SDK executes the requested job.
client.quota.validate()Send template, printer and dynamic product data in one structured request, then handle success or typed SDK errors in your own interface.
client.print.execute()Developer Workflow
Add the SDK, check the TopBridge connection and send a structured label job directly from your application.
Add the JavaScript package to your application.
Check TopBridge and discover available printers.
Submit the template, printer and label data.
import { TopBridgeClient } from
'@appzgatenz/label-print-topbridge-js';
const client = new TopBridgeClient();
// Check TopBridge and available printers
const preflight = await client.preflight.run();
// Send a sample label job
await client.print.execute({
template: 'PRICE_LABEL',
printer: preflight.printers.data.defaultPrinter,
products: [{
name: 'Example',
copies: 1
}]
});
npm install @appzgatenz/label-print-topbridge-js
Install package
Docs and Examples
Use the official guides, package listing and open demo project to evaluate the SDK and plan your integration.
Follow the getting-started guide, review API references and explore browser-based examples for the JavaScript Core SDK.
Install the published package directly into your frontend project and manage it through your existing JavaScript toolchain.
View packageReview the public documentation and playground project to see how the SDK is connected and used in a working web interface.
Explore sourceStart Building
Review the SDK guide, install the JavaScript package and connect your first TopBridge-powered print workflow.
JavaScript Core is available now. React and Next.js wrappers are listed as coming soon.