{"id":20677102,"url":"https://github.com/enoy19/zpl-tool","last_synced_at":"2025-09-27T03:31:39.057Z","repository":{"id":184843499,"uuid":"672567604","full_name":"enoy19/zpl-tool","owner":"enoy19","description":"Web app for managing ZPL templates and printers with live preview and variable support.","archived":false,"fork":false,"pushed_at":"2023-08-28T23:07:14.000Z","size":2853,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-16T21:14:26.879Z","etag":null,"topics":["label-printing","printer-management","svelte","sveltekit","template-manager","zpl"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enoy19.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-30T14:23:49.000Z","updated_at":"2024-11-03T11:48:33.000Z","dependencies_parsed_at":"2023-07-30T15:41:52.947Z","dependency_job_id":null,"html_url":"https://github.com/enoy19/zpl-tool","commit_stats":null,"previous_names":["enoy19/zpl-tool"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enoy19%2Fzpl-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enoy19%2Fzpl-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enoy19%2Fzpl-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enoy19%2Fzpl-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enoy19","download_url":"https://codeload.github.com/enoy19/zpl-tool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234378127,"owners_count":18822656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["label-printing","printer-management","svelte","sveltekit","template-manager","zpl"],"created_at":"2024-11-16T21:14:28.802Z","updated_at":"2025-09-27T03:31:38.120Z","avatar_url":"https://github.com/enoy19.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zpl-tool\n\nzpl-tool is a webapp designed for managing multiple ZPL templates.\nIt provides an easy-to-use interface for managing ZPL templates with the ability to insert variables such as `${MY_VARIABLE}` directly into your templates.\nzpl-tool features a live preview of the templates (powered by [labelary.com](https://labelary.com) and/or [BinaryKits.Zpl](https://github.com/BinaryKits/BinaryKits.Zpl) ), which automatically updates as you develop your template.\n\nBesides template management, zpl-tool also provides support for managing multiple printers, including serial and tcp network printers.\n\n## Features\n\n- **✏️ Manage Multiple ZPL Templates**: Easily handle multiple ZPL templates with variable support.\n- **🔍 Live Template Preview**: Generates a live preview of the templates with automatic updates when testing variables.\n- **🖨️ Support for Multiple Printers**: Manage multiple printers, including Serial and TCP printers.\n- **🔢 Bulk Printing**: Efficiently print in bulk by providing a CSV file.\n- **📄 PDF Printing**: Print any PDF file.\n\n## Quick Start\n\n### **Run zpl-tool using Docker / Docker Compose**\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUsing docker-compose:\u003c/strong\u003e\u003c/summary\u003e\n\nCreate a file named `docker-compose.yml` in your directory and paste the following content:\n\n```yaml\nversion: '3'\n\nservices:\n  zpl-tool:\n  image: ghcr.io/enoy19/zpl-tool:main\n  ports:\n    - '3000:3000'\n  volumes:\n    - './data:/app/data'\n```\n\nAfter saving the file, run the following command to start zpl-tool:\n\n```sh\ndocker compose up\n```\n\nzpl-tool will be available at [http://localhost:3000](http://localhost:3000).\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUsing docker run:\u003c/strong\u003e\u003c/summary\u003e\n\nYou can use the following `docker run` command:\n\n```sh\ndocker run -p 3000:3000 -v $(pwd)/data:/app/data ghcr.io/enoy19/zpl-tool:main\n```\n\nAfter running this command, zpl-tool will be available at [http://localhost:3000](http://localhost:3000).\n\n\u003c/details\u003e\n\n## Usage\n\n### Managing ZPL Templates\n\n- **Create a New Template**: Start typing into the textarea below `Editor`\n- **Insert Variables**: Insert variables into your template. Format: `${VARIABLE_NAME}`. The variables will automatically be available in the `Variables` section.\n- **Live Preview**: When you edit your template or the values of your variables, the preview updates automatically.\n\n  ![Printers](./assets/zpl-tool-templates.gif)\n\n### Managing Printers \u0026 Printing\n\n- **Navigate to Printers**: Click `Printers` in the navigation bar.\n- **Add a Printer**: Add a serial or tcp printer by entering the configuration and saving.\n\n  ![Printers](./assets/printers.jpg)\n\n- **Print**:\n\n  - Navigate back the the home page.\n  - click on `Print` on one of your templates.\n  - Select your printer in the dropdown next to the `Print` button\n  - click `Print`\n\n    ![Print](./assets/print.jpg)\n\n### Printing PDF\n\n- **Navigate to Print PDF**: Click `Print PDF` in the navigation bar.\n- **Drop your PDF**: Drag\u0026Drop you PDF file into the upload zone or click the zone and select your file.\n- **Print**: Click print!\n- **⚠️ IMPORTANT ⚠️**: You need to configure the Printer dimensions and dpmm in the `Printers` page.\n\n## Developing\n\n### Prerequisites\n\n- GraphicsMagick + ghostscript\n  - RPM: `sudo dnf install GraphicsMagick ghostscript`\n  - Debian / Mac / Windows: https://github.com/yakovmeister/pdf2image/blob/HEAD/docs/gm-installation.md\n\nOnce you've cloned the repository and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```bash\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n```\n\n## Building\n\nTo create a production version of your app:\n\n```bash\nnpm run build\n```\n\nYou can preview the production build with `npm run preview`.\n\n\u003e To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenoy19%2Fzpl-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenoy19%2Fzpl-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenoy19%2Fzpl-tool/lists"}