# @multiformats/murmur3

> Multiformats Murmur3 implementations

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

## Install

```sh
npm install @multiformats/murmur3
pnpm add @multiformats/murmur3
yarn add @multiformats/murmur3
bun add @multiformats/murmur3
```

## 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 | 2.2.8 |
| Published | 2026-07-09 |
| First published | 2020-06-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 OR MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 65.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2 |
| Author | Mikeal Rogers |
| Maintainers | daviddias, vmx, mikeal, hugomrdias, alanshaw, achingbrain, vascosantos, rvagg, lidel, npm-service-account-multiformats |
| Keywords | hash, ipfs, ipld, multiformats, multihash, murmur3 |

## Links

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

## Dependencies (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

- 2.2.8 (latest) — 2026-07-09
- 2.2.7 — 2026-07-07
- 2.2.6 — 2026-07-04
- 2.2.5 — 2026-05-11
- 2.2.4 — 2026-05-11
- 2.2.3 — 2026-05-07
- 2.2.2 — 2026-03-03
- 2.2.1 — 2026-03-03
- 2.2.0 — 2026-01-27
- 2.1.10 — 2026-01-22
- 2.1.9 — 2026-01-21
- 2.1.8 — 2024-01-01
- 2.1.7 — 2023-10-03
- 2.1.6 — 2023-08-08
- 2.1.5 — 2023-06-19
- … 30 more at https://npm.io/package/@multiformats/murmur3/versions

## README

# @multiformats/murmur3

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

> Multiformats Murmur3 implementations

# About

<!--

!IMPORTANT!

Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.

To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts

To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.

-->

`MultihashHashers`s are exported from this library, they produce `MultihashDigest`s. Details about these can be found in the [multiformats multihash interface definitions](https://github.com/multiformats/js-multiformats/blob/master/src/hashes/interface.ts).

```js
import * as Block from 'multiformats/block'
import * as codec from '@ipld/dag-cbor'
import { murmur3128 as hasher } from '@multiformats/murmur3'

async function run () {
  const value = { hello: 'world' }
  const block = await Block.encode({ value, hasher, codec })
  console.log(block.cid)
  // -> CID(bafyseebn7ksk6khsn4an2lzmae6wm4qk)
}

run().catch(console.error)
```

## Usage

The `@multiformats/murmur3` package exports `murmur332` and `murmur3128` `MultihashHasher`s. The Multicodecs [table](https://github.com/multiformats/multicodec/blob/master/table.csv) defines these multihashes.

The `murmur3-32`, multicodec code `0x23`, may be imported as:

```js
import { murmur332 } from '@multiformats/murmur3'
```

The `murmur3-128`, multicodec code `0x22`, may be imported as:

```js
import { murmur3128 } from '@multiformats/murmur3'
```

The `murmur3-x64-64` (which is first 64-bits of `murmur3-128` used in UnixFS directory sharding), multicodec code `0x22`, may be imported as:

```js
import { murmur364 } from '@multiformats/murmur3'
```

# Install

```console
$ npm i @multiformats/murmur3
```

## Browser `<script>` tag

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

```html
<script src="https://unpkg.com/@multiformats/murmur3/dist/index.min.js"></script>
```

# API Docs

- <https://multiformats.github.io/js-murmur3>

# License

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](https://github.com/multiformats/js-murmur3/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/multiformats/js-murmur3/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/@multiformats/murmur3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
