@libp2p/peer-id-factory 2.0.4
Create PeerId instances
@libp2p/peer-id-factory@2.0.4 was published on 2023-06-15. Its manifest declares 8 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=16.0.0.
All @libp2p/peer-id-factory versions · Permanent reference to 2.0.4 · Latest release
Package specifications
| Version | 2.0.4 |
|---|---|
| License declaration | Apache-2.0 OR MIT |
| Published | 2023-06-15T13:05:05.319Z |
| Node.js requirement | >=16.0.0 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 8 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 256.71 KiB |
| Published file count | 16 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | Not declared |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 20 |
| Repository stars | 2586 |
| Repository forks | 556 |
Install @libp2p/peer-id-factory 2.0.4
npm install @libp2p/peer-id-factory@2.0.4 pnpm add @libp2p/peer-id-factory@2.0.4 yarn add @libp2p/peer-id-factory@2.0.4
Runtime dependencies
- uint8arrays ^4.0.2
- multiformats ^11.0.0
- @libp2p/crypto ^1.0.0
- uint8arraylist ^2.0.0
- @libp2p/peer-id ^2.0.0
- protons-runtime ^5.0.0
- @libp2p/interface-keys ^1.0.2
- @libp2p/interface-peer-id ^2.0.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @libp2p/crypto@1.0.17 — direct
- @libp2p/interface-keys@1.0.8 — direct
- @libp2p/interface-peer-id@2.0.2 — direct
- @libp2p/peer-id@2.0.4 — direct
- multiformats@11.0.2 — direct
- protons-runtime@5.6.0 — direct
- uint8arraylist@2.4.9 — direct
- uint8arrays@4.0.10 — direct
- @libp2p/interfaces@3.3.2 — indirect
- @noble/ed25519@1.7.5 — indirect
- @noble/secp256k1@1.7.2 — indirect
- node-forge@1.4.2 — indirect
- uint8-varint@2.0.5 — indirect
- uint8arrays@5.1.1 — indirect
- uint8arrays@5.1.1 — indirect
- multiformats@12.1.3 — indirect
- uint8arrays@5.1.1 — indirect
- multiformats@13.4.2 — indirect
- multiformats@13.4.2 — indirect
- multiformats@13.4.2 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 2/10 — Found 5/20 approved changesets -- score normalized to 2 |
|---|---|
| Maintained | 10/10 — 30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10 |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Security-Policy | 10/10 — security policy file detected |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| License | 10/10 — license file detected |
| Branch-Protection | 5/10 — branch protection is not maximal on development and all release branches |
| Pinned-Dependencies | 2/10 — dependency not pinned by hash detected -- score normalized to 2 |
| Fuzzing | 0/10 — project is not fuzzed |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/%40libp2p%2Fpeer-id-factory/2.0.4 — retrieved 2026-10-30T22:44:29.480Z
- https://api.deps.dev/v3/projects/github.com%2Flibp2p%2Fjs-libp2p — retrieved 2026-10-30T22:12:38.951Z
- https://api.deps.dev/v3/systems/npm/packages/%40libp2p%2Fpeer-id-factory/versions/2.0.4 — retrieved 2026-10-30T22:44:29.902Z
- https://api.deps.dev/v3/systems/npm/packages/%40libp2p%2Fpeer-id-factory/versions/2.0.4:dependencies — retrieved 2026-10-30T22:44:29.931Z