# @libp2p/interface-peer-store

> Peer Store interface for libp2p

Latest version **2.0.4** (published 2023-06-11) · Apache-2.0 OR MIT license · 0 weekly downloads

## Install

```sh
npm install @libp2p/interface-peer-store
pnpm add @libp2p/interface-peer-store
yarn add @libp2p/interface-peer-store
bun add @libp2p/interface-peer-store
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2023-06-11 |
| First published | 2022-06-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 OR MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 22 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 74 |
| Maintainers | jacobheun, npm-service-account-libp2p, alanshaw, vascosantos, achingbrain, daviddias |
| Keywords | interface, libp2p |

## Links

- npm: https://www.npmjs.com/package/@libp2p/interface-peer-store
- Repository: https://github.com/libp2p/js-libp2p-interfaces
- Homepage: https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/interface-peer-store#readme
- Issues: https://github.com/libp2p/js-libp2p-interfaces/issues
- npm.io page: https://npm.io/package/@libp2p/interface-peer-store

## Dependencies (2)

- [@multiformats/multiaddr](https://npm.io/package/@multiformats/multiaddr.md) ^12.0.0
- [@libp2p/interface-peer-id](https://npm.io/package/@libp2p/interface-peer-id.md) ^2.0.0

## Recent versions

- 2.0.4 (latest) — 2023-06-11
- 2.0.4-d853d124 (next) — 2023-06-19
- 2.0.4-ea8a0637 — 2023-06-19
- 2.0.4-ab0e3980 — 2023-06-19
- 2.0.4-3dfc236e — 2023-06-16
- 2.0.4-8c6b6d24 — 2023-06-15
- 2.0.4-d2f1eff4 — 2023-06-15
- 2.0.4-5a9fb4d6 — 2023-06-15
- 2.0.4-883082ca — 2023-06-15
- 2.0.4-1c6702c8 — 2023-06-15
- 2.0.3 — 2023-05-10
- 2.0.2 — 2023-05-04
- 2.0.1 — 2023-04-24
- 2.0.0 — 2023-04-21
- 1.2.9 — 2023-03-17
- … 12 more at https://npm.io/package/@libp2p/interface-peer-store/versions

## README

# @libp2p/interface-peer-store <!-- omit in toc -->

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

> Peer Store interface for libp2p

## Table of contents <!-- omit in toc -->

- [Install](#install)
- [Usage](#usage)
  - [Tags](#tags)
- [API Docs](#api-docs)
- [License](#license)
- [Contribution](#contribution)

## Install

```console
$ npm i @libp2p/interface-peer-store
```

## Usage

### Tags

Common tags can be imported from the `@libp2p/interface-peer-store/tag` module:

```js
import { KEEP_ALIVE } from '@libp2p/interface-peer-store/tags'

await peerStore.tagPeer(peerId, KEEP_ALIVE)
```

## API Docs

- <https://libp2p.github.io/js-libp2p-interfaces/modules/_libp2p_interface_peer_store.html>

## License

Licensed under either of

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