Docs
From zero to your first print, then the full reference once you need it.
Quick Start
-
1. Install the SDK
npm install @portixone/sdk -
2. Try it with no runtime and no printer
import { Portix } from "@portixone/sdk"; const portix = new Portix({ mode: "mock" }); await portix.connect(); await portix.print({ content: "Hello PortixOne!" }); // Renders a text preview in the console — no hardware needed.This is the fastest way to confirm the API shape before installing the Runtime.
-
3. Install the Runtime for a real print
Download
PortixOneRuntimeSetup.exefrom the latest release, run it (no Node.js or other prerequisites — it's bundled), and it installs as a Windows Service that starts automatically. -
4. Swap `mode: "mock"` for your app identity and print for real
import { Portix } from "@portixone/sdk"; const portix = new Portix({ appId: "my-app", tenant: "default" }); await portix.connect(); await portix.print({ content: "Hello PortixOne!" });`mode: "mock"` becomes your integration's `appId`/`tenant` — the first `connect()` pairs automatically (instant from a browser on `localhost`). See the SDK reference for every option `print()` and the rest of the class accept.
Reference
SDK Reference
Every method on the Portix class — options, return types, examples.
Runtime API
The HTTP + WebSocket surface the SDK talks to, if you need it directly.
FAQ & Troubleshooting
Common questions, and what every error code actually means.
Examples
Runnable code — vanilla JS, React, Vue, and a full Kubia-style integration.
Compare
PortixOne vs. browser printing and other libraries.
Roadmap
What's built, what's next.
Changelog
Every milestone, in the order it shipped.