# posthog-node

> PostHog Node.js integration

Latest version **5.54.1** (published 2026-09-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install posthog-node
pnpm add posthog-node
yarn add posthog-node
bun add posthog-node
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.54.1 |
| Published | 2026-09-25 |
| First published | 2020-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^20.20.0 \|\| >=22.22.0 |
| Dependencies | 1 |
| Unpacked size | 867.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 613 |
| Author | PostHog |
| Maintainers | fuziontech, mariusandra, ben-posthog, timgl, rafael_posthog, fraserhopper, manoelposthog, robbie-c, gustavostrassburger, dustinbyrne, feliperalmeida, lucasheriques, frankposthog, tom-posthog, adamleithp, rauln, cat-ph, sarahxsanders, peterkirkhamposthog, ioannisj, huguespouillot, twixes |
| Keywords | posthog, stats, analysis, funnels |

## Links

- npm: https://www.npmjs.com/package/posthog-node
- Repository: https://github.com/PostHog/posthog-js
- Issues: https://github.com/PostHog/posthog-js/issues
- npm.io page: https://npm.io/package/posthog-node

## Dependencies (1)

- [@posthog/core](https://npm.io/package/@posthog/core.md) ^1.55.2

## Recent versions

- 5.54.1 (latest) — 2026-09-25
- 5.13.4 (previous) — 2025-11-24
- 5.0.0-alpha.1 (alpha) — 2025-04-29
- 5.54.0 — 2026-09-25
- 5.53.0 — 2026-09-23
- 5.52.6 — 2026-09-23
- 5.52.5 — 2026-09-21
- 5.52.4 — 2026-09-15
- 5.52.3 — 2026-09-15
- 5.52.2 — 2026-09-14
- 5.52.1 — 2026-09-11
- 5.52.0 — 2026-09-10
- 5.51.8 — 2026-09-09
- 5.51.7 — 2026-09-07
- 5.51.6 — 2026-09-01
- … 319 more at https://npm.io/package/posthog-node/versions

## README

# PostHog Node.js package

Please see the main [PostHog docs](https://posthog.com/docs).

SDK usage examples and code snippets live in the official documentation so they stay up to date.

## Documentation

- [Node.js library docs](https://posthog.com/docs/libraries/node)

## Questions??

### [Check out our community page.](https://posthog.com/posts)

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