# nflx-spectator

> [![Snapshot](https://github.com/Netflix/spectator-js/actions/workflows/snapshot.yml/badge.svg)](https://github.com/Netflix/spectator-js/actions/workflows/snapshot.yml) [![npm version](https://badge.fury.io/js/nflx-spectator.svg)](https://badge.fury.io/js/

Latest version **3.1.3** (published 2026-08-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install nflx-spectator
pnpm add nflx-spectator
yarn add nflx-spectator
bun add nflx-spectator
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.1.3 |
| Published | 2026-08-12 |
| First published | 2019-01-04 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 1 |
| Unpacked size | 179.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Netflix Telemetry Engineering |
| Maintainers | dmuino, brharrington, ebadeaux |

## Links

- npm: https://www.npmjs.com/package/nflx-spectator
- Homepage: https://github.com/Netflix/spectator-js
- npm.io page: https://npm.io/package/nflx-spectator

## Dependencies (1)

- [node-unix-socket](https://npm.io/package/node-unix-socket.md) ^0.2.7

## Recent versions

- 3.1.3 (latest) — 2026-08-12
- 3.1.2 — 2026-07-30
- 3.1.1 — 2026-06-24
- 3.1.0 — 2026-06-19
- 3.1.0-rc.9 — 2026-06-11
- 3.1.0-rc.8 — 2026-06-02
- 3.1.0-rc.7 — 2026-05-27
- 3.1.0-rc.6 — 2026-05-14
- 3.1.0-rc.5 — 2026-05-04
- 3.1.0-rc.4 — 2026-05-04
- 3.1.0-rc.3 — 2026-04-30
- 3.1.0-rc.2 — 2026-04-28
- 3.1.0-rc.1 — 2026-04-09
- 3.0.18 — 2025-07-22
- 3.0.17 — 2025-07-21
- … 55 more at https://npm.io/package/nflx-spectator/versions

## README

[![Snapshot](https://github.com/Netflix/spectator-js/actions/workflows/snapshot.yml/badge.svg)](https://github.com/Netflix/spectator-js/actions/workflows/snapshot.yml)
[![npm version](https://badge.fury.io/js/nflx-spectator.svg)](https://badge.fury.io/js/nflx-spectator)

## Spectator-js

TypeScript thin-client metrics library compiled to JavaScript for use with [Atlas] and [SpectatorD].

Intended for use with [Node.js] applications.

See the [Atlas Documentation] site for more details on `spectator-js`.

[Atlas]: https://netflix.github.io/atlas-docs/overview/
[SpectatorD]: https://netflix.github.io/atlas-docs/spectator/agent/usage/
[Node.js]: https://nodejs.org
[Atlas Documentation]: https://netflix.github.io/atlas-docs/spectator/lang/nodejs/usage/

## Local Development

Install a version of [Node.js] >= 18, possibly with [Homebrew] or [nvm].

```shell
npm run build-and-test
```

Followed the advice in [Supporting CommonJS and ESM with Typescript and Node] to produce both CJS and ESM output.

[Homebrew]: https://brew.sh/
[nvm]: https://github.com/nvm-sh/nvm
[Supporting CommonJS and ESM with Typescript and Node]: https://evertpot.com/universal-commonjs-esm-typescript-packages/

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