{"id":46728914,"url":"https://github.com/yeasir01/bpac-js","last_synced_at":"2026-03-09T14:33:53.587Z","repository":{"id":217879683,"uuid":"744867376","full_name":"yeasir01/bpac-js","owner":"yeasir01","description":"High level API for interacting with the Brother BPAC SDK","archived":false,"fork":false,"pushed_at":"2025-12-02T22:12:10.000Z","size":1141,"stargazers_count":30,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-07T21:14:45.846Z","etag":null,"topics":["barcode","bpac","brother","brother-label-printer","brother-ql","web-print"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/bpac-js","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/yeasir01.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-18T06:59:36.000Z","updated_at":"2025-11-27T11:36:54.000Z","dependencies_parsed_at":"2024-02-01T12:28:50.260Z","dependency_job_id":"c24c6deb-ab42-47c1-9d77-3429271a2099","html_url":"https://github.com/yeasir01/bpac-js","commit_stats":null,"previous_names":["yeasir01/bpac-js"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/yeasir01/bpac-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeasir01%2Fbpac-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeasir01%2Fbpac-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeasir01%2Fbpac-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeasir01%2Fbpac-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeasir01","download_url":"https://codeload.github.com/yeasir01/bpac-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeasir01%2Fbpac-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30299110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["barcode","bpac","brother","brother-label-printer","brother-ql","web-print"],"created_at":"2026-03-09T14:33:52.943Z","updated_at":"2026-03-09T14:33:53.563Z","avatar_url":"https://github.com/yeasir01.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"./.github/images/printer-logo.png\" alt=\"bPac logo\" height=\"100\" /\u003e\n\u003c/div\u003e\n\u003ch1 align=\"center\"\u003e\n    Brother bPac printer SDK for Web Browsers\n\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n\n![NPM Version](https://img.shields.io/npm/v/bpac-js)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/yeasir01/bpac-js/.github%2Fworkflows%2Fpublish.yml)\n![GitHub License](https://img.shields.io/github/license/yeasir01/bpac-js)\n![NPM Downloads](https://img.shields.io/npm/dt/bpac-js)\n\n\u003c/div\u003e\n\n\n## Overview\n\nThe Brother bPac printer SDK for Web Browsers simplifies the integration of the b-PAC SDK, providing a user-friendly interface for common tasks such as printing and obtaining image data. This project aims to enhance accessibility through modern JavaScript practices and thorough documentation, making it a valuable tool for developers working on web-based printing solutions\n\n## Features\n\n-   Modern JavaScript: The SDK has been refactored to use modern JavaScript practices, making it more accessible for developers familiar with contemporary web development.\n\n-   Documentation: Comprehensive documentation has been added to the codebase, ensuring that developers have clear insights into the functionality and usage of each module.\n\n-   IntelliSense Support: With well-documented code and consistent naming conventions, developers can enjoy improved IntelliSense support for a smoother coding experience.\n\n## Prerequisites\n\nBefore using the Brother Printer SDK for Web Browsers, ensure you meet the following prerequisites:\n\n1. **Supported Printer Model:**\n   - Check the list of supported printer models [here](https://www.brother.co.jp/eng/dev/bpac/environment/index.aspx#model). Ensure that your Brother printer is on the list for compatibility with this SDK. check src/vendor folder to identify current bpac version (example: bpac-v3.4.js).\n\n2. **Driver Installation:**\n   - Install the appropriate printer driver for your Brother printer on your system. Visit the [Brother Solutions Center](https://support.brother.com/g/s/es/dev/en/bpac/download/index.html?c=eu_ot\u0026lang=en\u0026navi=offall\u0026comple=on\u0026redirect=on#client) to download and follow the installation instructions provided by Brother.\n\n3. **Template Printing Setup:**\n   - Ensure that you can successfully print directly from the template file. This may involve configuring your printer settings and your template file.\n\n4. **b-PAC Client Component:**\n   - Before using the Brother Printer SDK for Web Browsers, you will also need to install the BPac Client. This client is essential for enabling communication between your browser and the Brother printer.\n   - Download and install the BPac Client from the following link: [BPac Client](https://support.brother.com/g/s/es/dev/en/bpac/download/index.html?c=eu_ot\u0026lang=en\u0026navi=offall\u0026comple=on\u0026redirect=on#client)\n\n5. **Brother b-PAC Extension:**\n   - Install the Brother b-Pac extension for your web browser from the respective extension store. Ensure that the extension is activated and running.\n\n    **Extension Links:**\n    - [Brother b-Pac Extension for Chrome](https://chromewebstore.google.com/detail/ilpghlfadkjifilabejhhijpfphfcfhb) - Link to Chrome Extension.\n    - [Brother b-Pac Extension for Edge](https://microsoftedge.microsoft.com/addons/detail/brother-bpac-extension/kmopihekhjobijiipnloimfdgjddbnhg) - Link to Edge Extension.\n    - [Brother b-Pac Extension for Firefox](https://qflow-badge.azurewebsites.net/badgetemplates/bpac.xpi) - Link to Firefox Add-ons.\n\nEnsure that all prerequisites are met to guarantee a seamless experience.\n\n## Getting Started\n\n### 1. Install the package:\n\nPackage Manager\n```bash\n$ npm i bpac-js\n```\n\nContent Delivery Network - Latest\n```link\nhttps://cdn.jsdelivr.net/npm/bpac-js@latest/dist/index.js\n```\nThe `latest` flag retrieves the most recent package version, potentially including breaking changes. In production environments, it is strongly recommended to use explicit version numbers to maintain predictable builds.\n\n### 2. Explore Documentation:\n\nVisit the docs section in this repository to explore detailed guides and examples.\n\n### 3. Contribute:\n\nIf you encounter issues or have suggestions, feel free to contribute to the project. Your input is highly valued!\n\n## Usage\n\n```javascript\n// Vanilla JS Script File\nimport BrotherSDK from \"https://cdn.jsdelivr.net/npm/bpac-js@latest/dist/index.js\";\n\nconst printBtn = document.getElementById(\"print-btn\");\n\nconst label = new BrotherSDK({\n    templatePath: \"C:\\\\Templates\\\\shoe-template.lbx\",\n    exportPath: \"C:\\\\Users\\\\YourProfile\\\\Desktop\\\\Exported Labels\\\\\",\n});\n\n// The keys and values must match the objects/types in the template file.\nconst labelData = {\n    title: \"Air Force 1\",\n    price: \"$149.99\",\n    barcode: \"091207567724\",\n    date: new Date(\"2024-1-20\"),\n};\n\nconst printOptions = {\n    copies: 1, // Optional - Defaults: 1\n    printName: \"Air Force One Label\", // Optional - Defaults: BPAC-Document\n    highResolution: true // Optional\n}\n\nconst sendToPrinter = async () =\u003e {\n    try {\n        const isPrinted = await label.print(labelData, printOptions);\n        console.log({isPrinted})\n    } catch (error) {\n        console.log({error})\n    }\n};\n\nprintBtn.addEventListener(\"click\", sendToPrinter);\n```\n\n## Acknowledgments\n\nSpecial thanks to Brother for their Bpac Printer SDK. This project wouldn't be possible without their technology.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeasir01%2Fbpac-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeasir01%2Fbpac-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeasir01%2Fbpac-js/lists"}