LabelProof ZPL Linter

v0.1.0
io.github.wenboteng/labelproof Checked 1 hour ago Published 2 days ago

Lint ZPL barcode labels with LabelProof.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lint_zpl Lint a ZPL label

Check one ZPL barcode label with the LabelProof API (POST https://labelproof.dev/api/lint). dpi (203, 300 or 600) and profile (gs1_logistic, gs1_other or non_gs1) are required and have no defaults, because bar-width and quiet-zone checks depend on the printhead and the application standard. Provide exactly one of zpl or file_path. No API key is required: the free tier runs the same rules with lower per-IP rate limits (60 lints/minute, 12 renders/minute, no monthly render quota). Set LABELPROOF_API_KEY for a private bucket (CI or heavier use). render defaults to true; set it false to skip geome…

ParameterTypeDescription
dpi *numberPrinthead resolution the label will actually print on: 203, 300 or 600. Required, no default.
profile *stringApplication profile: gs1_logistic, gs1_other or non_gs1. Required, no default.
file_pathstringPath to a .zpl file on the machine running this server. Use this or zpl.
include_previewbooleanIf true, include the base64 preview PNG when the service rendered the label. Default false.
renderbooleanRun geometry rules (default true). Set false for the source-only pass; that costs no render quota.
zplstringZPL source as a string. Use this or file_path.

list_rules List LabelProof rules

List the user-facing LabelProof rule catalogue from GET https://labelproof.dev/api/rules. Each rule includes id, severity, symptom, message, fix, and ruleUrl. This is a public endpoint and does not need an API key.

get_rule Get one LabelProof rule

Fetch one rule by id (for example BC-05 or FLD-C128C-ODD-001) from GET https://labelproof.dev/api/rules/{id}. Public, no API key required.

ParameterTypeDescription
id *stringRule id, for example BC-05.