# js-libp2p-tracked-map
**Repository Path**: mirrors_libp2p/js-libp2p-tracked-map
## Basic Information
- **Project Name**: js-libp2p-tracked-map
- **Description**: Allows tracking of statistics while libp2p is running
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-06-16
- **Last Updated**: 2025-12-13
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 📁 Archived - this module has been merged into [js-libp2p](https://github.com/libp2p/js-libp2p/tree/master/packages/metrics)
# @libp2p/tracked-map
[](http://libp2p.io/)
[](https://discuss.libp2p.io)
[](https://codecov.io/gh/libp2p/js-libp2p-tracked-map)
[](https://github.com/libp2p/js-libp2p-tracked-map/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)
> Allows tracking of statistics while libp2p is running
## Table of contents
- [Install](#install)
- [Browser `
```
## Description
A map that reports it's size to the libp2p [Metrics](https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-interfaces/src/metrics#readme) system.
If metrics are disabled a regular map is used.
## Example
```JavaScript
import { trackedMap } from '@libp2p/tracked-map'
const map = trackedMap({ metrics })
map.set('key', 'value')
```
## API Docs
-
## License
Licensed under either of
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / )
- MIT ([LICENSE-MIT](LICENSE-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.