Elestia Open Source Ratings
6.5

JsBarcode

Reasonable, with limits. 4th of 9 QR codes and barcodes.

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.

WebsiteGitHubnpm

Scores

Overall6.5

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.0, likely 5.0 to 7.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, likely 5.9 to 8.1

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 many3.8

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.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, likely 2.5 to 4.7

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 lot6.9

How well does it do the job for those who need it?

Claude Opus 5.5: 6.5, likely 5.5 to 7.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, likely 6.2 to 8.4

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 time5.0

Will it still be a good choice in two years?

Claude Opus 5.5: 4.5, likely 3.5 to 5.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, likely 4.0 to 6.8

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 widely5.3

How many use it, and is that growing?

Claude Opus 5.5: 6.0, likely 5.0 to 7.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.

  • npm downloadsLast4Weeks: 10.1M, versus 2.1M a year earlier
  • dependents: 2,375 repos and 466 packages, versus 353 repos for bwip-js
  • npm-compare.com/jsbarcode,react-barcode: react-barcode wraps JsBarcode and adds indirect installs

GPT-6.2 Sol: 4.5, likely 3.3 to 5.8

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.

  • dependents repos, packages: 2,375 repositories and 466 packages in a partial index.
  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: 4.75 times year-over-year growth versus a 4.1 catalog median and higher peer ratios.
  • github stars, hackerNews stories, bluesky posts: 5,903 stars and zero tracked posts or stories.
  • github.com/kciter/react-barcode/blob/master/package.json: Installing react-barcode also installs JsBarcode.
  • jsdelivr.com/package/npm/jsbarcode?tab=stats: The browser bundle is distributed through jsDelivr.
Vouched for5.4

Who stands behind it being good?

Claude Opus 5.5: 4.5, likely 3.0 to 6.0

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, likely 5.0 to 7.5

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.

Safe6.8

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.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.

  • npm dependencies: 0 dependencies
  • advisories total: No advisories on record
  • scorecard score: 2.1, with Security-Policy, Signed-Releases and SAST all at 0

GPT-6.2 Sol: 6.5, likely 5.2 to 7.7

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.

  • npm license, dependencies, advisories total: MIT license, zero runtime dependencies, and no OSV advisories.
  • scorecard score, checks: 2.1 overall, weak review, and zero scores for a policy, pinning, and signed releases.
  • github.com/lindell/JsBarcode/security: GitHub shows no repository security policy or published advisories.
  • github.com/lindell/JsBarcode/releases: A single account is credited for recent releases.

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

npm downloads, 4 weeks
10M ×4.8 in a year
GitHub stars
5.9k
Commits, 12 months
3
npm version
3.12.3 Jan 2026
Versions, 12 months
1
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
2.1 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (lindell/JsBarcode), npm (jsbarcode), OSV and the OpenSSF Scorecard.

QR codes and barcodes

  1. 7.9zxing-wasm
  2. 7.4bwip-js
  3. 7.2qrcode.react
  4. 6.5JsBarcode
  5. 6.1QR Code Styling
  6. 6.0node-qrcode
  7. 5.5ZXing JS
  8. 4.6jsQR
  9. 4.1html5-qrcode
Compare all 9 on six scores