# @ipld/dag-cbor

> JS implementation of DAG-CBOR

Latest version **10.0.2** (published 2026-07-30) · Apache-2.0 OR MIT license · 0 weekly downloads

## Install

```sh
npm install @ipld/dag-cbor
pnpm add @ipld/dag-cbor
yarn add @ipld/dag-cbor
bun add @ipld/dag-cbor
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.0.2 |
| Published | 2026-07-30 |
| First published | 2020-06-05 |
| Weekly downloads | 0 |
| License | Apache-2.0 OR MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 261.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 36 |
| Author | Rod |
| Maintainers | daviddias, mikeal, vmx, alanshaw, achingbrain, vascosantos, rvagg, lidel, npm-service-account-ipld |
| Keywords | ipfs, ipld, multiformats |

## Links

- npm: https://www.npmjs.com/package/@ipld/dag-cbor
- Repository: https://github.com/ipld/js-dag-cbor
- Homepage: https://github.com/ipld/js-dag-cbor#readme
- Issues: https://github.com/ipld/js-dag-cbor/issues
- npm.io page: https://npm.io/package/@ipld/dag-cbor

## Dependencies (2)

- [cborg](https://npm.io/package/cborg.md) ^6.1.1
- [multiformats](https://npm.io/package/multiformats.md) ^14.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 10.0.2 (latest) — 2026-07-30
- 10.0.1 — 2026-05-12
- 10.0.0 — 2026-05-12
- 9.2.7 — 2026-05-12
- 9.2.6 — 2026-04-02
- 9.2.5 — 2025-09-04
- 9.2.4 — 2025-05-22
- 9.2.3 — 2025-05-08
- 9.2.2 — 2024-10-29
- 9.2.1 — 2024-06-24
- 9.2.0 — 2024-02-16
- 9.1.0 — 2024-01-30
- 9.0.8 — 2024-01-10
- 9.0.7 — 2023-12-30
- 9.0.6 — 2023-10-03
- … 60 more at https://npm.io/package/@ipld/dag-cbor/versions

## README

# @ipld/dag-cbor

[![codecov](https://img.shields.io/codecov/c/github/ipld/js-dag-cbor.svg?style=flat-square)](https://codecov.io/gh/ipld/js-dag-cbor)
[![CI](https://img.shields.io/github/actions/workflow/status/ipld/js-dag-cbor/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/ipld/js-dag-cbor/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)

> JS implementation of DAG-CBOR

# Install

```console
$ npm i @ipld/dag-cbor
```

## Browser `<script>` tag

Loading this module through a script tag will make its exports available as `IpldDagCbor` in the global namespace.

```html
<script src="https://unpkg.com/@ipld/dag-cbor/dist/index.min.js"></script>
```

## Spec

The [`dag-cbor` specification is in the IPLD specs repo](https://github.com/ipld/specs/blob/master/block-layer/codecs/dag-cbor.md).

# API Docs

- <https://ipld.github.io/js-dag-cbor>

# License

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipld/js-dag-cbor/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/ipld/js-dag-cbor/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

---
_Source: https://npm.io/package/@ipld/dag-cbor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
