# @ceramicnetwork/3id-did-resolver

> DID Resolver for the 3ID method

Latest version **6.4.0** (published 2024-08-19) · (Apache-2.0 OR MIT) license · 0 weekly downloads

## Install

```sh
npm install @ceramicnetwork/3id-did-resolver
pnpm add @ceramicnetwork/3id-did-resolver
yarn add @ceramicnetwork/3id-did-resolver
bun add @ceramicnetwork/3id-did-resolver
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 6.4.0 |
| Published | 2024-08-19 |
| First published | 2020-04-05 |
| Weekly downloads | 0 |
| License | (Apache-2.0 OR MIT) |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 23.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 423 |
| Author | Joel Torstensson |
| Maintainers | dav1do, ceramic-velvetshark, cb3box, jpham2023, npm.3box, smrz2001, oed, paul_lecam, stbrody, ukstv |
| Keywords | Ceramic, DID, identity, Data |

## Links

- npm: https://www.npmjs.com/package/@ceramicnetwork/3id-did-resolver
- Repository: https://github.com/ceramicnetwork/js-ceramic
- Homepage: https://github.com/ceramicnetwork/js-ceramic#readme
- Issues: https://github.com/ceramicnetwork/js-ceramic/issues
- npm.io page: https://npm.io/package/@ceramicnetwork/3id-did-resolver

## Dependencies (6)

- [uint8arrays](https://npm.io/package/uint8arrays.md) ^5.0.1
- [least-recent](https://npm.io/package/least-recent.md) ^1.0.3
- [multiformats](https://npm.io/package/multiformats.md) ~13.1.3
- [@ceramicnetwork/common](https://npm.io/package/@ceramicnetwork/common.md) ^6.4.0
- [@ceramicnetwork/streamid](https://npm.io/package/@ceramicnetwork/streamid.md) ^5.6.0
- [@ceramicnetwork/stream-tile](https://npm.io/package/@ceramicnetwork/stream-tile.md) ^6.4.0

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 6.4.0 (latest) — 2024-08-19
- 6.4.1-nightly.20251117002949.0 (nightly) — 2025-11-17
- 6.4.1-rc.0 (next) — 2024-12-24
- 2.9.0-hotfix.0 (hotfix) — 2022-12-23
- 6.4.1-nightly.20251116003123.0 — 2025-11-16
- 6.4.1-nightly.20251115002838.0 — 2025-11-15
- 6.4.1-nightly.20251114002950.0 — 2025-11-14
- 6.4.1-nightly.20251113002938.0 — 2025-11-13
- 6.4.1-nightly.20251112002933.0 — 2025-11-12
- 6.4.1-nightly.20251111002954.0 — 2025-11-11
- 6.4.1-nightly.20251110003201.0 — 2025-11-10
- 6.4.1-nightly.20251109003124.0 — 2025-11-09
- 6.4.1-nightly.20251108002716.0 — 2025-11-08
- 6.4.1-nightly.20251107002944.0 — 2025-11-07
- 6.4.1-nightly.20251106002909.0 — 2025-11-06
- … 970 more at https://npm.io/package/@ceramicnetwork/3id-did-resolver/versions

## README

# 3ID DID Resolver
![ceramicnetwork](https://circleci.com/gh/ceramicnetwork/js-ceramic.svg?style=shield)
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)
[![](https://img.shields.io/badge/Chat%20on-Discord-orange.svg?style=flat)](https://discord.gg/6VRZpGP)
[![Twitter](https://img.shields.io/twitter/follow/ceramicnetwork?label=Follow&style=social)](https://twitter.com/ceramicnetwork)

> 3ID is a DID method that uses the Ceramic network to resolve DID documents.

## Getting started

### Installation
```
$ npm install @ceramicnetwork/3id-did-resolver
```

### Usage

See the [Ceramic developer site](https://developers.ceramic.network/) for more details about how to use this package.

```
import { getResolver } from '@ceramicnetwork/3id-did-resolver'
import { Resolver } from 'did-resolver'

// You need an instance of Ceramic to call getResolver.
// This can be either @ceramicnetwork/core or @ceramicnetwork/http-client.
const ceramic = // ...

// getResolver will return an object with a key/value pair of { '3': resolver }
// where resolver is a function used by the generic did resolver.
const threeIdResolver = getResolver(ceramic)
const didResolver = new Resolver(threeIdResolver)

const doc = await didResolver.resolve('did:ethr:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74')
console.log(doc)
```

## Development
Run tests:
```
$ npm test
```

Run linter:
```
npm run lint
```


## Contributing
We are happy to accept small and large contributions. Make sure to check out the [Ceramic specifications](https://github.com/ceramicnetwork/ceramic/blob/main/SPECIFICATION.md) for details of how the protocol works.


## License

---
_Source: https://npm.io/package/@ceramicnetwork/3id-did-resolver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
