zplCore.comzplCore.com

zplCore Server · Docker

Template and data in, labels out. As a container.

zplCore Server is a ready-to-run container: the templates live on the server, your application sends only the data (or the server fetches it itself through a named query) and gets ZPL, PNG, SVG, PDF or ZIP back, printed directly or stored with a signed webhook when the job is done. Everything on this page outside the roadmap is built and covered by tests.

~0.55 sstart (NativeAOT)
66 MBNativeAOT binary
71/71JIT = NativeAOT

measured with the server's smoke test on win-x64 (developer PC): 71 of 71 answers byte-identical between JIT and NativeAOT; Linux container figures follow with the release

LinuxDockerKubernetesGitPostgreSQLRedis
{ } :8080
Template
  • Volume
  • Git
  • S3
  • Azure Blob
  • GCS
  • HTTP
Data
  • JSON
  • NDJSON
  • CSV
  • SQL
  • REST
zplCore Serverfills · renders · checks · prints
  • ZPL · PNG · SVG · PDF · ZIPas the response, ZPL streamed
  • Printerraw TCP 9100, checked by the twin
  • StorageVolume · S3 · Azure Blob · GCS
  • WebhookHMAC-signed, when done
Templates live on the server, data comes with the request or from your systems. The big picture, the flows and every building block follow below.
Request a trial

No prices, no purchase.

Big picture

Sources in, labels out

What the server reads: templates from a volume, Git or object storage, data from the request, from databases or from REST services. The container with its building blocks. And where the labels go: back to your application, to printers, into storage, and a webhook when a job is done.

Big picture: sources, zplCore Server, targetsLeft: data sources (your application with JSON, NDJSON or CSV in the request; PostgreSQL, SQL Server, MySQL/MariaDB and SQLite read-only; Oracle in the -full image with your own driver; REST APIs) and template sources (volume or ConfigMap, Git through a git-sync sidecar, Amazon S3 and S3-compatible stores, Azure Blob Storage, Google Cloud Storage, HTTP). Middle: zplCore Server with REST API, named queries, template store, engine, output, printing and jobs; Redis keeps the job status. Right: operations (Prometheus, OpenTelemetry, health and readiness probes) and targets (your application gets the response, printers over raw TCP 9100, storage on a volume, S3, Azure Blob or GCS, signed webhooks). DATA Your application JSON · NDJSON · CSV in the request PostgreSQL · SQL Server MySQL/MariaDB · SQLite · read-only Oracle -full image with your own driver REST API JSON, paging, SSRF guard TEMPLATES Volume · ConfigMap *.json below /templates Git git-sync sidecar into a volume Amazon S3 · S3-compatible bucket versions Azure Blob Storage blob versions, managed identity Google Cloud Storage generations, workload identity HTTP ETag polling, SSRF guard zplCore Server Docker · NativeAOT REST API /v1 API key or JWT · limits · OpenAPI Named queries only SELECT · typed parameters Template store cache · versions · hot reload Engine fill · check · Stored Formats · limits Output ZPL stream · PNG · SVG · PDF · ZIP Printing printer twin · one queue per printer Jobs · batch · webhooks async · status · outbox Redis job status (optional) job status OPERATIONS Metrics & traces Prometheus · OpenTelemetry Probes /health · /ready TARGETS Your application the response, streamed Printers raw TCP 9100, ZPL Storage volume · S3 · Azure Blob · GCS Webhooks HMAC-SHA256 signed request read-only load · poll metrics · probes response TCP 9100 + .sha256 signed POST Big picture: sources, zplCore Server, targetsLeft: data sources (your application with JSON, NDJSON or CSV in the request; PostgreSQL, SQL Server, MySQL/MariaDB and SQLite read-only; Oracle in the -full image with your own driver; REST APIs) and template sources (volume or ConfigMap, Git through a git-sync sidecar, Amazon S3 and S3-compatible stores, Azure Blob Storage, Google Cloud Storage, HTTP). Middle: zplCore Server with REST API, named queries, template store, engine, output, printing and jobs; Redis keeps the job status. Right: operations (Prometheus, OpenTelemetry, health and readiness probes) and targets (your application gets the response, printers over raw TCP 9100, storage on a volume, S3, Azure Blob or GCS, signed webhooks). DATA Your application JSON · NDJSON · CSV in the request PostgreSQL · SQL Server MySQL/MariaDB · SQLite · read-only Oracle -full image REST API JSON, paging TEMPLATES Volume · ConfigMap *.json files Git git-sync sidecar Amazon S3 bucket versions Azure Blob managed identity Google Cloud St. workload identity HTTP SSRF guard request · read-only load · poll zplCore Server Docker · NativeAOT REST API /v1 API key or JWT · limits · OpenAPI Named queries only SELECT · typed parameters Template store cache · versions · hot reload Engine fill · check · Stored Formats · limits Output ZPL stream · PNG · SVG · PDF · ZIP Printing printer twin · one queue per printer Jobs · batch · webhooks async · status · outbox Redis job status response · TCP 9100 TARGETS Your application the response Printers raw TCP 9100, ZPL Storage S3 · Blob · GCS · Volume Webhooks HMAC-SHA256 signed OPERATIONS Prometheus · OpenTelemetry · /health · /ready
  • caller
  • building block of the server
  • source or target
  • dashed: optional (Redis)
Drawn after the code (src/ZplCore.Server): every box is a part that is built and covered by tests. Read-only means: only SELECT/WITH, in a read-only transaction.

Works with

Template sources

  • Volume · ConfigMapfiles below /templates
  • Gitthrough a git-sync sidecar
  • Amazon S3and S3-compatible stores (e.g. MinIO)
  • Azure Blob Storageconnection string, SAS or identity
  • Google Cloud Storageown client, read-only scope
  • HTTP(S)with SSRF guard

Data sources

  • PostgreSQLread-only transaction
  • Microsoft SQL ServerSQL login with read rights
  • MySQLread-only transaction
  • MariaDBsame driver as MySQL
  • SQLiteopened read-only
  • Oracleonly -full image, with your own driver
  • REST APIsJSON, paging, auth from secrets

Targets

  • ZPL printersraw TCP 9100, also ZPL emulations
  • Volumewith .sha256 files
  • Amazon S3 · Azure BlobSHA-256 as metadata
  • Google Cloud Storageconditional create
  • Redisjob status across instances
  • WebhooksHMAC-SHA256 signed

Platform & operations

  • Dockerdistroless image, non-root
  • Linuxlinux/amd64 · linux/arm64
  • Kubernetesprobes, ConfigMaps, Secrets as files
  • Prometheus/metrics, off by default
  • OpenTelemetryOTLP: metrics, traces, logs
  • Cloud identitiesIRSA · Azure managed/workload · GKE

Logos only show that zplCore Server works with these products; zplCore.com is not affiliated with or endorsed by their owners. All trademarks belong to their owners. Logos: Simple Icons 16.34.0 (CC0; Git logo by Jason Long, CC BY 3.0; OpenTelemetry logo CC BY 4.0), details in the logo notice. Amazon S3, Microsoft Azure, SQL Server and Oracle are named in text only.

Flows

Three typical jobs, step by step

What happens inside the server, from the request to the answer. Most checks come before the first byte: unknown templates, job fields and fonts are answered at once, and with twin: block the first labels are checked against the printer before anything is sent.

1 · Render synchronously

Your application posts records and gets the labels in the format of its Accept header. ZPL is streamed while it is generated; images need a free render slot.

Flow: synchronous renderingPOST /v1/labels with records. Unauthorised: 401. Unknown template: 404. Unknown job field or missing font: 422. The ZPL is generated with Stored Formats from 1,000 records. ZPL is streamed; PNG, SVG, PDF and ZIP need a free render slot, otherwise 429. Answer 200 with the template version. POST /v1/labels/versand/dhl-100x150 JSON · NDJSON · CSV · Accept = format Authorised? 401 no key no Template from the cache path, @version or ?version= yes Template found? 404 unknown no Fill the records in fonts: template or fontFolders yes Fields & fonts OK? 422 names it no Generate ZPL Stored Formats from 1,000 records yes Image format? ZPL streamed no Render slot free? 429 busy no yes Render PNG · SVG · PDF · ZIP yes 200 OK X-Template-Version · X-Record-Count

2 · Print from a database query

One call prints all open shipments of a country: the server reads them read-only from PostgreSQL, checks the labels against the printer and sends them over TCP 9100.

Flow: printing from a database queryPOST /v1/print/lager-1 with template and named query. Query and parameters are checked first (400 or 404, no SQL runs). A read-only transaction reads the rows with their column types, the ZPL is generated at the printer's dpi, the printer twin checks the first labels (block: 422, nothing is sent). The printer's own queue sends one job after the other over TCP 9100; a connection is retried only before the first byte. Answer: job status. POST /v1/print/lager-1 ?template=versand/dhl-100x150 &query=open-shipments&country=AT Query valid? 400 / 404 no SQL runs no Read-only transaction PostgreSQL: countSql, then SELECT yes Rows keep their types DATE → Format([ShipDate], …) Generate ZPL at the printer's dpi Twin check OK? 422 nothing sent no Queue of lager-1 one job after the other yes Connected? retry only before the 1st byte no Send over TCP 9100 never resent after the 1st byte yes 200 · job status sent · bytes · twin findings

3 · Batch job with webhook

Large or many jobs run asynchronously: the answer comes at once, the result lands in S3 with its SHA-256, and your system gets a signed webhook.

Flow: asynchronous batch with webhookPOST /v1/batch with async, store and webhook. The body is spooled, the job queued and the client gets 202 with the job URL at once. A worker generates each part as its own print job, stores the result with its SHA-256, keeps the status in the storage and in Redis and finally calls the webhook, signed with HMAC-SHA256. Network errors, timeouts, 408, 429 and 5xx are retried with backoff, also after a restart. The client fetches the result with GET /v1/jobs/{id}/result. POST /v1/batch?async=true &store=archive&webhook=erp NDJSON: one part per line Spool body, queue job answer comes at once 202 Location answer Worker: part by part each part its own print job Store the result S3 · SHA-256 + .sha256 Status in storage + Redis progress 2 s · heartbeat 30 s Signed webhook outbox: restart-safe Delivered? retry 5xx · 429 · timeout no GET /v1/jobs/{id}/result ETag = SHA-256 of the output yes
  • request
  • step
  • decision
  • error answer (application/problem+json)
  • retry
  • result

Templates

Design once, call by path

The server takes the same JSON templates as the SDK: label JSON (Label.ToJson), print-job JSON with start and end labels, or a zplCore Designer document. It reads them from one or more sources, checks them strictly and keeps them in memory; your application calls them by path, e.g. versand/dhl-100x150.

Volume & ConfigMap

Every *.json below the folder, the path without .json. File watcher plus polling every 10 s. A Kubernetes ConfigMap is a volume too: its ..data folders are skipped, and symbolic links never lead out of the folder.

Git via git-sync

No Git client inside the server: the git-sync sidecar checks the repository out into a shared volume, the server polls it and takes the commit as the source version of every template it loads. Examples for Docker Compose and Kubernetes ship with the server.

Amazon S3 & S3-compatible

AWS SDK client, also for MinIO and other S3-compatible stores (serviceUrl, pathStyle). Lists every 30 s and downloads only changed objects. Older versions come from bucket versioning on demand. Keys from secret files, otherwise the AWS default chain (e.g. IRSA on EKS, ECS/EC2 role).

Azure Blob Storage

Azure SDK client: connection string or SAS token from a secret file, or identity: managed / workload with an own, NativeAOT-safe token fetch (no Azure.Identity). Blob versions become source versions.

Google Cloud Storage

Own client for the JSON API with a read-only scope: service-account key file, or the metadata server (GKE Workload Identity, Cloud Run, Compute Engine). Exactly the listed generation is loaded.

HTTP

Loaded on first use, then polled with If-None-Match; 404 or 410 removes the template. Only https (http on request), host allow-list, SSRF guard and size limit; HTML answers such as error or login pages are rejected and never become a template.

The same for every source

  • Priority and namesversand/x comes from the first source that has it, shared:versand/x from that source.
  • VersionsContent hash plus source version (S3 version id, blob version, GCS generation, ETag, Git commit). Call versand/x@<hash> or ?version=; headers X-Template-Version and X-Template-Source-Version.
  • Hot reload, safelyA broken new version never replaces the running one; the error shows in GET /v1/templates, in /ready and in the metrics. keepVersions (10) keeps older versions callable.
  • Ready when loaded/ready answers 503 until every source was read once, so a rolling update with wrong credentials never replaces running pods.
  • BoundedmaxObjects per prefix (10,000), maxTemplateBytes, strict label check with schema migration.
  • Inline, if you wantPOST /v1/render takes the template in the request; off by default (templates:inline:enabled).

zplcore.yaml: template sources

templates:
  sources:                      # priority order
    - name: local
      type: volume              # also a ConfigMap or a git-sync volume
      path: /templates
    - name: shared
      type: s3                  # MinIO: serviceUrl + pathStyle: true
      bucket: labels
      prefix: prod/
      region: eu-central-1      # no keys: AWS default chain (IRSA, ECS/EC2 role)
    - name: azure
      type: azureblob
      serviceUrl: https://<account>.blob.core.windows.net
      container: labels
      identity: workload          # or managed; or connectionStringFile
  keepVersions: 10

Data

Send the data, or let the server fetch it

Records come with the request, or the server reads them itself through a named, read-only query that you define once in zplcore.yaml. No SQL and no URL ever comes from the request.

In the request

application/json (one object, an array, or { "records": [...], "variables": {...} }), application/x-ndjson and text/csv (RFC 4180, delimiter detected or ?delimiter=), both streamed. All three give the same ZPL. Variables reach the start and end labels of a print job.

Named SQL queries

Called by name: ?query=open-shipments&country=AT or { "query": { "name": …, "parameters": {…} } }. Exactly one SELECT or WITH statement, checked at start; parameters are always bound, never pasted into the SQL. Rows keep their column types, so a DATE formats with Format([ShipDate], "dd.MM.yyyy").

Read-only, per database

  • PostgreSQL: READ ONLY transaction
  • MySQL / MariaDB: START TRANSACTION READ ONLY
  • SQLite: opened read-only, query_only
  • SQL Server: transaction always rolled back, login with read rights only (db_datareader); NativeAOT image: SQL logins
  • Oracle: only in the JIT image -full, with the Oracle driver you add yourself

Typed parameters

string, int, long, decimal, double, bool, date, datetime; required and pattern (the whole value must match, linear regex engine: no ReDoS). Unknown, doubled or wrongly typed values are a 400 before any SQL runs.

Limits, never truncated

maxRows, timeout (30 s, then 504) and maxBytes per query. Above a limit the job fails; it is never cut short. countSql knows the number of labels before the first one: for the start label, TOTAL_PAGES and Stored Formats.

REST services

provider: rest with baseUrl, a path with URL-encoded {parameters}, items as a JSON path and paging by Link header or JSON path. Bearer, basic or header auth from secret files. Every address is checked by the SSRF guard; all pages are read before the first label.

  • /ready waits for required connectionsA connection with required: true is probed (select 1 or any HTTP answer, 3 s, cached for 10 s); while it is down /ready answers 503 without naming it.
  • Catalogue without secretsGET /v1/queries lists names, parameters and limits, never SQL, URLs or connection strings. Connection strings come only from secret files or environment variables.

zplcore.yaml: a database and a query

data:
  connections:
    wms:
      provider: postgresql        # sqlite | postgresql | sqlserver | mysql | rest
      connectionStringFile: /run/secrets/wms-db
      required: true              # /ready waits for it
  queries:
    open-shipments:
      connection: wms
      sql: >
        select tracking_no as "TrackingId", name as "Name",
               city as "City", ship_date as "ShipDate"
        from shipments where country = @country and status = 'open'
      countSql: select count(*) from shipments where country = @country and status = 'open'
      parameters:
        country: { type: string, required: true, pattern: "[A-Z]{2}" }
      maxRows: 100000

Calling it

# all open shipments for Austria as one PDF
curl -X POST "$ZPLCORE/v1/labels/versand/dhl-100x150?query=open-shipments&country=AT" \
  -H "X-Api-Key: $API_KEY" -H 'Accept: application/pdf' -o shipments.pdf

# the same as ZPL, parameters in the body
curl -X POST "$ZPLCORE/v1/labels/versand/dhl-100x150" \
  -H "X-Api-Key: $API_KEY" -H 'Content-Type: application/json' \
  -d '{"query":{"name":"open-shipments","parameters":{"country":"AT"}}}'

# which queries exist (no SQL, no connection)
curl "$ZPLCORE/v1/queries" -H "X-Api-Key: $API_KEY"

Stored procedures: map them to a view or a table-valued function and select from it; the server accepts no EXEC.

Output & printing

Choose the format with Accept, or print directly

The Accept header picks the format. Printing always sends ZPL, to printers that are named in the configuration, one job after the other per printer.

AcceptResult
application/vnd.zplZPL (default), streamed while it is generated, also for 100,000 labels and more. Stored Formats (^DF/^XF) from 1,000 records when the number is known.
image/png, image/svg+xmlexactly one label (more: 406); SVG with a sandbox content security policy.
application/pdfall labels in one PDF, up to maxRenderLabels (1,000).
application/zipone PNG or SVG per label (?format=png|svg), written while rendering.
application/jsonreport: records, labels, bytes, SHA-256; ?diagnostics=true renders and lists the diagnostics, ?zpl=true includes the ZPL.

If a stream breaks after it started, the server cuts the connection: a client never receives a partial job that looks complete.

Named printers only

Requests name a printer, never an address, so the server is no open TCP proxy. Model and dpi choose the printer-twin profile (e.g. ZD421-203); an unknown profile, option or a wrong dpi stops the start.

One queue per printer, no double print

Jobs go out one after the other (queueLimit, full: 503). The connection is retried with growing waits only before the first byte; once bytes are sent, a broken connection ends the job with the number of bytes sent, never with a second copy. A printer that stops reading ends in sendTimeout; checkStatus asks ~HS first.

Printer twin before sending

The first 20 labels are checked against the printer profile: printhead width, options such as cutter or RFID, firmware, fonts, memory. twin: off | warn | block per printer, ?twin= per request; block stops with 422 and nothing is sent. Findings are in the job status.

Copies

?copies=n sets ^PQ per label, so the ZPL keeps one format per label. At most printing:maxCopies (1,000); more is a 422 that names the setting. A copiesField of the template is multiplied.

Printer status

GET /v1/printers lists profile, dpi, twin mode and queue (waiting, sending, sent, failed, last error). GET /v1/printers/{name}/status asks ~HS live: 502 when unreachable, 504 without an answer.

What "sent" means

All bytes handed over and the connection closed normally. Raw TCP 9100 cannot confirm the physical print; checkStatus checks before the job, not after it.

TrueType fonts: as a graphic by default, printer memory optional

By default the server prints text in TrueType fonts as a graphic (^GF). That runs on every ZPL printer, including the ZPL emulations of Honeywell, TSC, SATO, Citizen and others. With the option fonts: printer (per printer or as the server default) the fonts go into the printer's memory with ~DY instead: faster and smaller ZPL, but only for printers that support TrueType and ~DY. Fonts never land in the printer by themselves.

Fonts come from the template, from the template's folder or from output:fontFolders, never from the host: preview and print are the same on every host. A missing font is a 422 that names it, never a silent substitute.

Zebra Registered ISV PartnerZebra Registered ISV Partner

The printer twin knows 24 device profiles, including ZD421, ZD621, ZT411 and ZT610; every profile fact cites its source or is marked unknown. More on the checks page.

Jobs & webhooks

Asynchronous jobs, storage, webhooks and batches

Big jobs do not have to wait in an open HTTP connection. The server queues them, stores the result with its checksum and tells your system when it is done, signed.

Asynchronous jobs

?async=true or Prefer: respond-async on /v1/labels, /v1/print and /v1/batch, or POST /v1/jobs with the job as one JSON document. Answer 202 with Location: /v1/jobs/{id}; GET for the status, /result for the output (ETag = SHA-256), DELETE cancels, also on another instance.

Status in storage and Redis

Status in the storage (jobs/{id}/status.json) and in Redis; the storage is authoritative, so a Redis outage keeps /ready at 200 with redis: unavailable. Progress every 2 s, heartbeat every 30 s. A job without a heartbeat for 2 minutes is reported lost and not restarted, because that could print twice. Kept for 24 h.

Storage with SHA-256

?store=<sink> and job results: volume, S3, Azure Blob, GCS. Written in one piece (volume: temporary file and rename); every output carries its SHA-256 as metadata and as <key>.sha256 for sha256sum -c. Key pattern {date}/{jobId}.{ext}, also {time} and {template}.

Signed webhooks

Named targets only. A JSON POST with event (job.succeeded, job.failed, job.canceled), job id, counts, bytes, SHA-256 and location. Headers X-ZplCore-Event, X-ZplCore-Delivery (the same in every attempt), X-ZplCore-Timestamp and X-ZplCore-Signature. Retries with doubling waits on network errors, timeouts, 408, 429 and 5xx; Retry-After is honoured.

Outbox: restart-safe

With a storage sink every delivery is written before its first attempt. Retries survive a restart, and each attempt is claimed by exactly one instance through a conditional create (S3 and Azure If-None-Match: *, GCS ifGenerationMatch=0).

Batches

POST /v1/batch: parts { template, records, variables, version } as JSON (every part checked before the first byte) or NDJSON (part by part). Each part is its own print job. Output: one ZPL stream, a ZIP with one entry per part (ZPL or PDF), or a JSON report; with print, store, webhook or async as a job.

Batch as a job, webhook when done

# parts.ndjson: one part per line
# {"template":"versand/dhl-100x150","records":[...]}
curl -i -X POST "$ZPLCORE/v1/batch?async=true&store=archive&webhook=erp" \
  -H "X-Api-Key: $API_KEY" -H 'Content-Type: application/x-ndjson' \
  --data-binary @parts.ndjson
# HTTP/1.1 202 Accepted
# Location: /v1/jobs/<id>

curl "$ZPLCORE/v1/jobs/<id>" -H "X-Api-Key: $API_KEY"
curl "$ZPLCORE/v1/jobs/<id>/result" -H "X-Api-Key: $API_KEY" -o labels.zpl

Checking a webhook

# X-ZplCore-Signature: sha256=<hex HMAC-SHA256 over "<timestamp>.<raw body>">
sig=$(printf '%s.%s' "$TIMESTAMP" "$BODY" \
  | openssl dgst -sha256 -hmac "$SECRET" -hex | sed 's/^.* //')
[ "sha256=$sig" = "$SIGNATURE" ] && echo valid
# also reject old timestamps (replay) and compare in fixed time

Security

Closed by default

The server does not start without an authentication mode, takes secrets only from files or environment variables and checks every outgoing connection before it is made.

  • Authentication requiredapikey (at least 16 characters, compared as SHA-256 in fixed time), jwt/oidc (authority and audience required) or none for a local test or behind your own proxy. Without a mode the start ends with exit code 2 and one line that names ZPLCORE__AUTH__MODE.
  • Secrets only from files or the environmentAPI keys, licence key, connection strings, tokens and webhook keys in plain text in zplcore.yaml stop the start. They never appear in logs, errors, catalogues or /ready.
  • SSRF guard on every outgoing callHTTP templates, REST queries and webhooks: https by default, host allow-list, the resolved address is checked and exactly that address is connected (no DNS rebinding). Loopback, private, link-local and cloud metadata (169.254.169.254) only through allowedNetworks.
  • LimitsRequest body, records per request, labels per image request (1,000), template size, render slots (= cores) with a queue (429), request timeout (504, stops rendering), optional rate limit per authenticated identity or IP.
  • Untrusted imagesZplLimits on every generation and render: image pixels (40 MP), image bytes (10 MB) and SVG size (2 MB), above: 413. Image files only from the template's own volume folder; inline and remote templates read no local files.
  • Neutral errors, quiet logsapplication/problem+json in English with a trace id; texts of SDKs, operating system and services only in the log. Request log without query values; anonymous /ready shows only the status.
  • Hardened containerThe Dockerfile builds on distroless Ubuntu (chiseled) with ICU, runs as a non-root user, keeps /templates read-only and pins the base images by digest. Meant to run with --read-only, --cap-drop ALL and no-new-privileges.
  • Safe headersX-Content-Type-Options: nosniff on every answer, SVG with Content-Security-Policy: sandbox.
  • Offline licenceThe licence key is checked offline, without phone-home. Without a key the server runs in evaluation mode with a watermark, unlimited in time; header X-ZplCore-License: licensed | evaluation.

Operations

Made for containers and clusters

One configuration file or environment variables, probes for Docker and Kubernetes, metrics for Prometheus and OpenTelemetry, and several instances that share their jobs.

OpenAPI and Scalar

/openapi/v1.json and interactive API docs at /docs (Scalar), served from the container without a CDN. Every endpoint with its parameters and problem answers.

Health and readiness

/health: the process lives. /ready: renderer loaded, every template source read once, every required connection reachable. Details (version, licence edition, templates, problems, delivery) only for authenticated callers.

Prometheus and OpenTelemetry

/metrics is off by default; on an internal port (metrics:port, e.g. 9464) or on the main port with its own key. Requests, labels, bytes, durations, rejections, render slots, templates, print jobs, jobs, stored outputs, webhook deliveries. OTLP export of metrics, traces and logs as soon as OTEL_EXPORTER_OTLP_ENDPOINT is set.

One configuration

zplcore.yaml (--config, ZPLCORE_CONFIG or /config/zplcore.yaml) or ZPLCORE__SECTION__KEY environment variables. Every configuration error names its key and ends the start with exit code 2.

Cloud identities

No keys in the cluster if you do not want them: the AWS default chain (IRSA, ECS/EC2 role), Azure Managed Identity and Workload Identity, Google service-account file or metadata server (GKE Workload Identity), for template sources and storage.

Several instances

Instances on a common storage sink (plus Redis, if you like) share jobs, results and webhook deliveries: every instance answers for every job and can cancel it.

Platforms

  • publishedOn Docker Hub: zplcore/server 1.0.0 (NativeAOT) and 1.0.0-full, and zplcore/designer 1.0.0 – each for linux/amd64 and linux/arm64, signed with cosign, with the SBOM as a signed attestation (cosign.pub).
  • testedLinux and Windows. The server tests run in the Linux pipeline and on Windows; the smoke test compares the JIT and the NativeAOT build (win-x64).
  • testedNativeAOT on linux/amd64 and linux/arm64. The drivers and cloud clients the server uses (SQL Server, MySQL, Redis, S3, Azure Blob, GCS) ran as NativeAOT probes on both architectures, against real servers and emulators.
  • testedDocker and Kubernetes conventions. Probes, ConfigMaps as template volumes, Secrets as files, configuration through environment variables; git-sync example for Docker Compose and Kubernetes.
  • builtOne Dockerfile, two images. NativeAOT for linux/amd64 and linux/arm64, built on the target platform, and the JIT image -full for SQL Server with Entra ID and Oracle with your own driver (/app/drivers/oracle). The images themselves are verified for the release.
  • builtOn-premises and air-gapped. Nothing calls home: offline licence key, templates and data from your own network.

Measured

Figures with their conditions

Measurements from the development of the server, not a guarantee. Each figure names where it was taken; the Linux container figures follow with the release.

~0.55 sstart of the NativeAOT binary (JIT build: 2.5 s), smoke test, win-x64
66 MBNativeAOT binary with every driver (folder without symbols 88 MB), win-x64
71 / 71smoke answers byte-identical, JIT against NativeAOT
508automated server tests pass (2 skipped: Oracle without your driver)
CaseResultConditions
1,000 shipping labels as ZPL, one request20 mswarm, NativeAOT, parallel generation; VM with 16 vCPU (AMD EPYC 9454P), Windows Server 2025, quiet machine; evaluation mode and licensed
10,000 shipping labels as ZPL, one request112–117 msas above (112 ms evaluation mode, 117 ms licensed)
100,000 labels streamed from /v1/labels3.2 s (≈ 31,700/s)NativeAOT, developer PC win-x64 under 80–97 % CPU load from other builds, evaluation mode, Stored Formats, best of 3
/v1/batch, 100 parts × 1,000 records, NDJSON2.7 s (≈ 37,200/s)as above
Printing 100,000 labels to a TCP peer (twin off)3.6 s (≈ 27,700/s)as above; the peer discards the data

Label: versand/dhl-100x150 (100 × 150 mm, 203 dpi). The smoke test (build/zplcore-server-smoke.sh) starts the JIT and the NativeAOT build side by side and compares every answer byte for byte: ZPL from JSON, NDJSON and CSV, PNG, SVG, PDF, ZIP, reports, template sources, queries, printing, storage, webhooks, jobs and batches. The engine itself is measured on the performance page.

Quick start

docker run, a YAML file, curl

This is how it looks. The authentication mode is required: none only for a local test.

Local test

# serve the templates in ./templates, no authentication
docker run --rm -p 8080:8080 \
  -v ./templates:/templates:ro \
  -e ZPLCORE__AUTH__MODE=none \
  zplcore/server

# data in, ZPL out
curl -X POST \
  localhost:8080/v1/labels/versand/dhl-100x150 \
  -H 'Accept: application/vnd.zpl' \
  -H 'Content-Type: application/json' \
  -d '{"Name":"Anna Huber","City":"Wien"}'

# interactive API docs: http://localhost:8080/docs

Hardened, with API key and licence

docker run --rm -p 8080:8080 \
  --read-only --tmpfs /tmp \
  --cap-drop ALL --security-opt no-new-privileges \
  -v ./templates:/templates:ro \
  -v ./zplcore.yaml:/config/zplcore.yaml:ro \
  -v ./zplcore.license:/run/secrets/zplcore-license:ro \
  -e ZPLCORE__AUTH__MODE=apikey \
  -e ZPLCORE__AUTH__APIKEYS__0="$API_KEY" \
  zplcore/server

# PNG preview of one label
curl -X POST "$ZPLCORE/v1/labels/versand/dhl-100x150" \
  -H "X-Api-Key: $API_KEY" -H 'Accept: image/png' \
  -H 'Content-Type: application/json' -d @one.json -o label.png

docker compose: server and designer

# compose.yaml
services:
  server:
    image: zplcore/server:1.1.0
    ports: ["8080:8080"]
    volumes: ["./templates:/templates:ro"]
    environment:
      ZPLCORE__AUTH__MODE: apikey
      ZPLCORE__AUTH__APIKEYS__0: ${API_KEY}
    read_only: true
    tmpfs: [/tmp]
  designer:
    image: zplcore/designer:1.1.0
    ports: ["8081:8080"]
    volumes: ["./templates:/templates:ro"]
    environment:
      ZPLCORE_DESIGNER__AUTH__MODE: apikey
      ZPLCORE_DESIGNER__AUTH__APIKEYS__0: ${API_KEY}
    read_only: true
    tmpfs: [/tmp]

Test it: curl and the designer

# 1. key (at least 16 characters) and a first template
echo "API_KEY=$(openssl rand -hex 16)" > .env
mkdir templates
echo '{"unit":"Mm","width":50.8,"height":25.4,"items":[{"type":"text","name":"title","x":3,"y":4,"width":44,"height":6,"fontSize":10,"dataField":"name"}]}' > templates/hello.json

# 2. start server and designer
docker compose up -d
. ./.env

# 3. data in, ZPL out – and the same label as PNG
curl -X POST localhost:8080/v1/labels/hello \
  -H "X-Api-Key: $API_KEY" -H 'Content-Type: application/json' \
  -d '{"name":"Hello zplCore"}'
curl -X POST localhost:8080/v1/labels/hello \
  -H "X-Api-Key: $API_KEY" -H 'Content-Type: application/json' \
  -H 'Accept: image/png' -d '{"name":"Hello zplCore"}' -o hello.png

# 4. open the designer in the browser
#    http://localhost:8081/designer/
#    API docs of the server: http://localhost:8080/docs

Both containers read the same ./templates folder: the server serves every *.json in it as a template (templates/hello.json → /v1/labels/hello), the designer at http://localhost:8081/designer/ is where you design labels – export the design as JSON into ./templates and the server prints it. Without a licence key both run in evaluation mode with watermark.

zplcore.yaml: printer, storage, webhook, jobs

printers:
  lager-1:
    host: 10.0.5.21
    port: 9100
    model: ZD421               # twin profile ZD421-203
    dpi: 203
    twin: block               # off | warn | block
    # fonts: printer          # optional: TrueType fonts into printer memory (~DY)
sinks:
  archive:
    type: s3
    bucket: labels-out
    prefix: zpl/
    region: eu-central-1
webhooks:
  erp:
    url: https://erp.example.com/hooks/labels
    secretFile: /run/secrets/erp-webhook
jobs:
  sink: archive                 # results, status, webhook outbox
  redis:
    connectionStringFile: /run/secrets/redis

Printing and checking

# print the open shipments of Austria on lager-1
curl -X POST "$ZPLCORE/v1/print/lager-1?template=versand/dhl-100x150&query=open-shipments&country=AT" \
  -H "X-Api-Key: $API_KEY"

# raw ZPL, checked by the twin first
curl -X POST "$ZPLCORE/v1/print/lager-1?twin=block" \
  -H "X-Api-Key: $API_KEY" -H 'Content-Type: application/vnd.zpl' \
  --data-binary @label.zpl

# three copies of every label, and store the ZPL
curl -X POST "$ZPLCORE/v1/labels/versand/dhl-100x150?copies=3&store=archive" \
  -H "X-Api-Key: $API_KEY" -H 'Content-Type: application/json' -d @shipments.json

# printers, queues, live status
curl "$ZPLCORE/v1/printers" -H "X-Api-Key: $API_KEY"
curl "$ZPLCORE/v1/printers/lager-1/status" -H "X-Api-Key: $API_KEY"

Endpoints

EndpointPurpose
POST /v1/labels/{template}records in, labels out; ?query=, ?print=, ?store=, ?webhook=, ?copies=, ?async=true
POST /v1/rendertemplate in the request (off by default)
GET /v1/templates, /v1/templates/{path}, …/previewcatalogue with versions and sources, template JSON, PNG preview with sample data
GET /v1/queriesnamed queries with their parameters
POST /v1/print/{printer}print raw ZPL, or ?template= with records or a query
GET /v1/printers, /v1/printers/{name}/statusprinters and queues, ~HS live
POST /v1/batchseveral templates and record groups: ZPL stream, ZIP, JSON report
POST /v1/jobs, GET|DELETE /v1/jobs/{id}, GET /v1/jobs/{id}/resultasynchronous jobs: submit, status, cancel or delete, result
/health, /ready, /metrics, /docs, /openapi/v1.jsonprobes, metrics, API docs

Roadmap

Planned, not yet part of the tested scope

These points belonged to the plan from the start. They are not built or not yet verified with zplCore Server, so nothing above relies on them.

  • plannedQueues: Kafka, RabbitMQ, Azure Service Bus and AWS SQS as input, and a queue message when a job is done.
  • plannedFiles as a data source: CSV, Excel and JSON files from a folder or bucket (CSV and JSON in the request work today).
  • plannedHelm chart and autoscaling with Kubernetes HPA or KEDA by CPU load or queue length.
  • plannedRaspberry Pi 4/5 (64-bit), Pi 2/3 (armv7 as a JIT tag) and NAS such as the Synology DS923+ (Container Manager): build targets, not yet verified with the server. The engine itself was tested on a Synology DS923+ and a Raspberry Pi, see the platforms.
  • plannedPodman, Windows and macOS via Docker Desktop, cloud container services on Azure, AWS and Google Cloud: still to be verified with the image.
  • plannedSecrets straight from Azure Key Vault or AWS Secrets Manager; today they come as files or environment variables.

No prices, no purchase. Ask for a trial of the SDK today.

Request a trial