zpl-tool is a webapp designed for managing multiple ZPL templates.
It provides an easy-to-use interface for managing ZPL templates with the ability to insert variables such as ${MY_VARIABLE}
directly into your templates.
zpl-tool features a live preview of the templates (powered by labelary.com and/or BinaryKits.Zpl ), which automatically updates as you develop your template.
Besides template management, zpl-tool also provides support for managing multiple printers, including serial and tcp network printers.
Create a file named docker-compose.yml
in your directory and paste the following content:
version: '3'
services:
zpl-tool:
image: ghcr.io/enoy19/zpl-tool:main
ports:
- '3000:3000'
volumes:
- './data:/app/data'
After saving the file, run the following command to start zpl-tool:
docker compose up
zpl-tool will be available at http://localhost:3000.
You can use the following docker run
command:
docker run -p 3000:3000 -v $(pwd)/data:/app/data ghcr.io/enoy19/zpl-tool:main
After running this command, zpl-tool will be available at http://localhost:3000.
Create a New Template: Start typing into the textarea below Editor
Insert Variables: Insert variables into your template. Format: ${VARIABLE_NAME}
. The variables will automatically be available in the Variables
section.
Live Preview: When you edit your template or the values of your variables, the preview updates automatically.
Navigate to Printers: Click Printers
in the navigation bar.
Add a Printer: Add a serial or tcp printer by entering the configuration and saving.
Print:
Navigate back the the home page.
click on Print
on one of your templates.
Select your printer in the dropdown next to the Print
button
click Print
Print PDF
in the navigation bar.Printers
page.sudo dnf install GraphicsMagick ghostscript
Once you've cloned the repository and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.