# JsBarcode: 6.5 out of 10

Reasonable, with limits. 4th of 9 in [QR codes and barcodes](https://elestia.ai/opensource/qr-barcodes/index.md).

JsBarcode is a small, dependency-free library that draws 1D barcodes (CODE128, EAN/UPC, ITF, Codabar and others) to SVG, canvas or images in the browser and Node.js. It is still the simplest pick for 1D barcodes, but it is maintained slowly by essentially one person, and it cannot make QR codes or other 2D symbols.

**Best for:** Web apps that need to render common 1D barcodes such as CODE128 or EAN with a tiny, zero-dependency library.

## Scores

- **Overall: 6.5** (likely 5.5 to 7.6)
  - Claude Opus 5.5 (6.0): It is still the simplest and most used way to draw 1D barcodes in JavaScript, with no dependencies and a stable API. Slow single-maintainer upkeep, open bugs and no 2D support hold it back. bwip-js is better when you need QR codes, GS1 or many formats.
  - GPT-6.2 Sol (7.0): JsBarcode is a strong choice for new browser projects that need common linear barcodes with a small bundle and direct SVG or canvas rendering. For projects that need both linear and 2D generation, bwip-js covers more formats and has a more active release history. Frappe's integration supports the recommendation for routine labels, while sparse maintenance and weak release safeguards limit confidence over two years.
- **Needed by many: 3.8** (likely 2.8 to 4.9)
  - Claude Opus 5.5 (4.0): Making 1D barcodes is a clear niche, mostly for retail, inventory, shipping labels and ticketing. Within this category it covers only generation of linear codes, not QR codes or scanning. That makes it narrower than bwip-js or ZXing.
  - GPT-6.2 Sol (3.5): Linear barcode generation is a clear need in retail, inventory, and label printing. Browser and Node.js support make it usable across frameworks, while QR generation and scanning fall outside its scope. GS1 expects linear and 2D codes to coexist, though that gives little basis for estimating how many JavaScript projects need a linear encoder.
- **Helps a lot: 6.9** (likely 5.9 to 8.0)
  - Claude Opus 5.5 (6.5): For common 1D formats it is easy to use and produces clean SVG or canvas output with automatic checksums. It ships types, and AI agents know its API well. Open issues show clear limits: no ESM build, a TypeScript type error, rendering bugs, and no 2D support, which bwip-js covers.
  - GPT-6.2 Sol (7.3): Version 3.12.3 makes common linear codes easy to render and gives developers and coding agents short, concrete examples. Its types accept any render target, and a Node.js user reported a build failure tied to the DOM type still present in the current declarations. Invalid input throws a message string by default. Independent downstream round-trip checks support routine use, while comparative speed and edge-case coverage remain uncertain.
- **Holds up over time: 5.0** (likely 3.8 to 6.2)
  - Claude Opus 5.5 (4.5): The project is alive but slow: 3 commits and one release (v3.12.3, January 2026) in the last year. Most issues get no visible reply, and the v4 discussion has been open since 2018. The API is stable and has no dependencies, so it is likely to keep working even with little upkeep.
  - GPT-6.2 Sol (5.4): Three commits and one release in the past year point to limited maintenance, and recent releases are credited to one account. Users hit a broken browser bundle in 3.12.0 and confirmed a fix the next day, while the native ESM request and version 4 discussion remain open. The established 3.x line helps, but maintainer capacity is hard to forecast and bwip-js has been more active.
- **Used widely: 5.3** (likely 4.2 to 6.4)
  - Claude Opus 5.5 (6.0): It gets about 10.1M downloads per 4 weeks, up 4.75x from a year ago, which is slightly above the 4.1 median. It has 2,375 dependent repos and 466 dependent packages, the most among 1D generators and more than bwip-js. Part of the download count comes through wrappers such as react-barcode.
  - GPT-6.2 Sol (4.5): ecosyste.ms found 2,375 dependent repositories and 466 packages, ahead of bwip-js but well behind node-qrcode and qrcode.react. Four-week npm downloads rose from 2.13 million to 10.10 million, or 4.75 times the prior year, above the 4.1 catalog median and below every listed peer. The 5,903 stars show visibility, while the collector found no matching Hacker News stories or Bluesky repository links. Wrapper installs, CDN use, and partial repository coverage make the number of direct choices uncertain.
- **Vouched for: 5.4** (likely 4.0 to 6.8)
  - Claude Opus 5.5 (4.5): Many wrapper libraries build on it, and comparison pages name it the default for simple 1D barcodes. There are no survey results, independent benchmarks or named production users. Hacker News and Bluesky show no attention.
  - GPT-6.2 Sol (6.2): Frappe v16 uses JsBarcode in its barcode field, and react-barcode builds its React component on it. BarcodeDesk uses it for linear formats and reports round-trip decoding checks with a separate decoder. These are concrete endorsements for routine use, while the State of JavaScript survey provides no project-specific satisfaction data and comparative performance evidence is thin.
- **Safe: 6.8** (likely 5.6 to 7.9)
  - Claude Opus 5.5 (7.0): It has zero dependencies, no known advisories and an MIT licence, so the attack surface is small. The Scorecard is weak at 2.1: there is no security policy, no signed releases, no SAST, and little code review. One maintainer publishes it.
  - GPT-6.2 Sol (6.5): The MIT license is permissive, npm installs zero runtime dependencies, and OSV lists no advisories. OpenSSF Scorecard gives it 2.1 out of 10, with weak code review and zero scores for a security policy, pinned dependencies, and signed releases. Recent GitHub releases come from one account, and several automated checks could not be scored, leaving uncertainty about publishing safeguards.

## Good

- It has zero runtime dependencies and a small bundle compared with bwip-js.
- It outputs SVG, canvas or img directly, and its API is short and well documented.
- It computes checksums and validates input for EAN/UPC and similar formats automatically.
- Popular React and Vue barcode wrappers such as react-barcode build on it.

## Bad

- It only makes 1D barcodes: no QR, Data Matrix, PDF417 or postal codes, and it cannot read barcodes.
- Maintenance is slow: 3 commits and 1 release in the last year, 118 open issues, and a v4 plan that has been pending since 2018.
- Open issues include no ESM build, a TypeScript XMLDocument type error, and some rendering bugs.
- Its OpenSSF Scorecard is 2.1, with no security policy, signed releases or SAST.

## The numbers

- Downloads, 4 weeks: 10M
- In a year: ×4.8
- GitHub stars: 5.9k
- Commits, 12 months: 3
- Last npm release: Jan 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/lindell/JsBarcode
- npm: https://www.npmjs.com/package/jsbarcode

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.
