# bwip-js: 7.4 out of 10

A strong pick. 2nd of 9 in [QR codes and barcodes](https://elestia.ai/opensource/qr-barcodes/index.md).

bwip-js is a pure-JavaScript port of Barcode Writer in Pure PostScript (BWIPP). It generates more than 100 barcode types, including QR, Data Matrix, PDF417, Aztec, GS1 and postal codes, as PNG, canvas or SVG. It is the strongest choice when you need to generate many barcode types or barcodes that must meet a standard. It cannot read barcodes, and it is more than you need for a simple QR code or Code 128.

**Best for:** Teams that must generate many barcode types correctly, such as GS1, 2D, postal or industrial labels, in Node, the browser or React Native.

## Scores

- **Overall: 7.4** (likely 6.4 to 8.4)
  - Claude Opus 5.5 (7.0): It is the clear best pick for generating barcodes across many types and standards. It is well maintained and gaining ground faster than the median. It is not the default for the whole category: it cannot read barcodes, and for a simple QR code (qrcode) or a 1D barcode (JsBarcode) a lighter peer is easier. The single maintainer and weak repository security process keep it from scoring higher.
  - GPT-6.2 Sol (7.8): bwip-js is a strong new-project choice when you need to generate several barcode formats, especially GS1 and less common 2D formats. JsBarcode is simpler for basic linear labels, and ZXing WASM is a better fit when the same library needs to scan and generate codes. Quick patches and rising relative downloads support the recommendation. Concentrated release ownership and recent upgrade regressions keep it below a category-wide default.
- **Needed by many: 4.4** (likely 3.3 to 5.4)
  - Claude Opus 5.5 (4.5): Generating barcodes is a clear niche, mostly retail, logistics, labels and admin apps. bwip-js covers only the generating half of the category's job, not reading. Its many runtimes keep it from being narrower.
  - GPT-6.2 Sol (4.2): Barcode generation serves a clear niche in retail, logistics, inventory, and QR-enabled workflows. Browser, Node.js, and React Native support make it useful across those settings, and GS1’s move toward 2D retail barcodes gives teams a reason to support several formats. The share of JavaScript and TypeScript projects that need a generator is hard to measure.
- **Helps a lot: 8.1** (likely 7.0 to 9.1)
  - Claude Opus 5.5 (8.0): Its symbology coverage and adherence to the standards are the best of any JavaScript generator, because it comes straight from BWIPP. It has types and several output formats. It loses points for a heavier footprint, an option-string API that is less friendly than JsBarcode's, and cryptic errors. AI agents handle the basic toBuffer and toCanvas calls well.
  - GPT-6.2 Sol (8.1): Version 4.11.4 offers more barcode formats than JsBarcode, with TypeScript declarations and examples for common rendering tasks. The examples give coding agents a clear starting point, though selecting the right runtime import and GS1 options takes care. ZXing WASM covers decoding as well, and the available bwip-js timing results come from its maintainer, so relative performance remains uncertain.
- **Holds up over time: 6.7** (likely 5.2 to 8.0)
  - Claude Opus 5.5 (6.5): The project has been active for 11 years. It shipped 11 releases last year, the latest in August 2026 tracking BWIPP 2026-05-28, and has only 37 open issues. Its weakness is that it depends on a single unpaid maintainer, who has only 7 contributors and few merged PRs behind him. Breaking changes are rare and documented, such as the EAN height change in 4.10.
  - GPT-6.2 Sol (6.8): The project shipped 11 releases from 12 commits over the past year and fixed a reported SVG regression the same day. The latest release was about three months before the snapshot, and the recent GitHub releases came from one account. A minor release broke Node.js ESM imports until the next patch, and another change in the same minor series altered label dimensions. The evidence leaves release coverage and funding uncertain.
- **Used widely: 4.8** (likely 3.6 to 6.0)
  - Claude Opus 5.5 (5.0): It had about 7.1M downloads in the last 4 weeks, against 0.9M a year earlier. That ratio of 7.9 is well above the median of 4.1, so it is gaining ground. It still trails JsBarcode, qrcode and ZXing in downloads, and its 353 dependent repos are far fewer than JsBarcode's 2,375. Some downloads are likely transitive.
  - GPT-6.2 Sol (4.5): Four-week downloads rose from about 895,000 to 7.09 million, a 7.9× increase against the catalog median of 4.1×. That suggests a gain in relative install share, though download counts include repeated and indirect installs. The 353 indexed repositories and 83 dependent packages show a smaller direct footprint than JsBarcode or node-qrcode. CDN distribution and separate platform packages make the main package an incomplete measure of use.
- **Vouched for: 5.2** (likely 3.8 to 6.6)
  - Claude Opus 5.5 (4.5): Its correctness rests on the long-established BWIPP project, which is used widely in printing and labeling. It also has steady downstream use, including wrappers for Angular and jQuery. I found no current independent benchmarks, survey data, or public production users who name it, and there is no Hacker News or Bluesky discussion.
  - GPT-6.2 Sol (5.8): TMS Software builds its barcode component on bwip-js, and Forge uses it for printable inventory labels. QRBarcodeTools uses bwip-js for Data Matrix, PDF417, and Aztec, and uses JsBarcode for linear drawing. A German health project also documented Data Matrix use on an older release. These integrations establish practical use, while current head-to-head benchmarks and survey-based satisfaction remain unverified.
- **Safe: 6.8** (likely 5.4 to 8.0)
  - Claude Opus 5.5 (7.0): It has no dependencies, no known advisories in its 11-year history, and an MIT licence, so the attack surface is small. The OpenSSF Scorecard is 2.5, with no branch protection, code review, security policy or SAST. Releases come from one person's account, which is a supply-chain concentration risk.
  - GPT-6.2 Sol (6.6): The package has zero runtime dependencies, a permissive MIT license, and no advisories in the supplied OSV snapshot. OpenSSF Scorecard rates it 2.5 out of 10, with zero scores for code review, branch protection, and security policy. Recent GitHub releases come from one account, and the available evidence leaves npm publisher redundancy and release signing uncertain.

## Good

- It covers more barcode types than any peer: over 100, including GS1 DataBar, MaxiCode, Aztec and postal codes.
- It tracks upstream BWIPP closely, so encoding follows the barcode standards and gets regular fixes.
- It has no runtime dependencies, ships its own types, and has separate builds for Node, the browser, React Native and a generic target.
- It outputs PNG, canvas and SVG, and also offers a command line tool and an HTTP handler.

## Bad

- It only generates barcodes and cannot read or scan them.
- The package is large (about 13 MB unpacked), and the API, built around bcid and option strings, is harder to learn than JsBarcode or qrcode.
- One maintainer does nearly all the work, and the repository has weak security process (Scorecard 2.5, no branch protection or code review).
- Error messages carry over from the PostScript original and can be hard to understand.

## The numbers

- Downloads, 4 weeks: 7.1M
- In a year: ×7.9
- GitHub stars: 2.4k
- Commits, 12 months: 12
- Last npm release: Aug 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/metafloor/bwip-js
- npm: https://www.npmjs.com/package/bwip-js

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
