# @metrics/client

> A streaming metric producer. Allows producing counters, gauges, histograms and summaries in a way that is independent of your metrics system.

Latest version **2.5.5** (published 2025-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @metrics/client
pnpm add @metrics/client
yarn add @metrics/client
bun add @metrics/client
```

## Health

**Score 50/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.5.5 |
| Published | 2025-06-26 |
| First published | 2018-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 15.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Richard Walker |
| Maintainers | digitalsadhu, trygve-lie, leftiefriele |
| Keywords | server-statistics, server-stats, statistics, metrics, monitoring |

## Links

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

## Dependencies (4)

- [time-span](https://npm.io/package/time-span.md) ^4.0.0
- [@metrics/metric](https://npm.io/package/@metrics/metric.md) ^2.3.2
- [readable-stream](https://npm.io/package/readable-stream.md) ^3.4.0
- [@types/readable-stream](https://npm.io/package/@types/readable-stream.md) ^4.0.0

## Recent versions

- 2.5.5 (latest) — 2025-06-26
- 2.5.4 — 2024-11-13
- 2.5.3 — 2024-07-29
- 2.5.2 — 2023-09-19
- 2.5.1 — 2023-09-13
- 2.5.0 — 2019-10-03
- 2.4.1 — 2019-03-08
- 2.4.0 — 2019-03-07
- 2.3.1 — 2019-02-07
- 2.3.0 — 2019-01-21
- 2.2.0 — 2018-12-27
- 2.1.1 — 2018-12-17
- 2.1.0 — 2018-12-12
- 2.0.0 — 2018-12-11
- 1.0.0 — 2018-06-28

## README

# @metrics/client

[![GitHub Actions status](https://github.com/metrics-js/client/workflows/Run%20Lint%20and%20Tests/badge.svg)](https://github.com/metrics-js/client/actions?query=workflow%3A%22Run+Lint+and+Tests%22)
[![Known Vulnerabilities](https://snyk.io/test/github/metrics-js/client/badge.svg?targetFile=package.json)](https://snyk.io/test/github/metrics-js/client?targetFile=package.json)

A streaming metric producer. Allows producing counters, gauges, time series in a way that is independent of your metrics system so that you can produce metrics and let consumers decide how to consume them. Additionally, you can pipe together different metrics streams before finally consuming them all in a single location.

## Usage

- [Getting started with MetricsJS](https://metrics-js.github.io/introduction/getting-started/).
- [Reference documentaiton for `@metrics/client`](https://metrics-js.github.io/reference/client/).

---
_Source: https://npm.io/package/@metrics/client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
