Skip to content
JS
Package

cbor2

Encode and parse data in the Concise Binary Object Representation (CBOR) data format (RFC8949).

v2.3.0, 5 Mar 2026MITESM onlyTypes: Bundled
$ npm install cbor2

Key numbers

As of 25 Sept 2026
Weekly downloads
207k
+376% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
6 months ago
v2.3.0
GitHub stars
119
12 forks
Open issues / PRs
6 / 3
Contributors
-
Commits, last 52 weeks
44

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300kSept 2025Mar 2026Sept 2026High 284.2k (25 Aug 2026)Low 24.3k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

207,018 downloads last week, 973,700 in the last month. The 12-month change of +376% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.3.0, 5 Mar 20266 months ago
First published
-
Last push to GitHub
21 Mar 2026187 days before the snapshot
Repository archived
No
Open issues
6
Open pull requests
3
Commits, last 52 weeks
44
Dependents on npm
83

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=20
Runtimes
-
Unpacked size (npm)
111 kB
Dependencies (1)
@cto.af/wtf8
npm install cbor2
  • jsDelivrhttps://cdn.jsdelivr.net/npm/cbor2@2.3.0/
  • unpkghttps://unpkg.com/cbor2@2.3.0/
  • esm.shhttps://esm.sh/cbor2@2.3.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.