# @ipshipyard/keychain

> Generate and securely store private keys at rest

Latest version **1.0.2** (published 2026-05-28) · Apache-2.0 OR MIT license · 0 weekly downloads

## Install

```sh
npm install @ipshipyard/keychain
pnpm add @ipshipyard/keychain
yarn add @ipshipyard/keychain
bun add @ipshipyard/keychain
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2026-05-28 |
| First published | 2026-05-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 OR MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 6 |
| Unpacked size | 391.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Maintainers | aschmahmann, achingbrain, ipshipyard-publisher-bot |

## Links

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

## Dependencies (6)

- [abort-error](https://npm.io/package/abort-error.md) ^1.0.2
- [uint8arrays](https://npm.io/package/uint8arrays.md) ^6.1.1
- [multiformats](https://npm.io/package/multiformats.md) ^14.0.0
- [sanitize-filename](https://npm.io/package/sanitize-filename.md) ^1.6.4
- [@ipshipyard/crypto](https://npm.io/package/@ipshipyard/crypto.md) ^1.1.0
- [interface-datastore](https://npm.io/package/interface-datastore.md) ^10.0.1

## Recent versions

- 1.0.2 (latest) — 2026-05-28
- 1.0.1 — 2026-05-27
- 1.0.0 — 2026-05-27
- 0.0.0 — 2026-05-26

## README

# @ipshipyard/keychain

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

> Generate and securely store private keys at rest

# 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.

-->

A WebCrypto-first keychain implementation for use with Helia and libp2p.

## Configuring additional implementations

ECDSA, Ed25519 and RSA keys are supported out of the box but other schemes
are configurable by passing a `CryptoLoader` that can return `Crypto`
instances.

# Install

```console
$ npm i @ipshipyard/keychain
```

## Browser `<script>` tag

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

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

# API Docs

- <https://ipshipyard.github.io/js-keychain>

# License

Licensed under either of

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