Skip to content
JS
Package

posthog-js

Posthog-js allows you to automatically capture usage and send events to PostHog.

v1.434.13, 24 Sept 2026(Apache-2.0 AND MIT)ESM + CommonJSTypes: BundledMonitoring and error trackingTypeScript tooling
$ npm install posthog-js

Key numbers

As of 25 Sept 2026
Weekly downloads
10m
+239% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
10
Direct, from package.json
Last release
today
v1.434.13
GitHub stars
610
347 forks
Open issues / PRs
113 / 50
Contributors
-
Commits, last 52 weeks
2,562

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 12.8m (25 Aug 2026)Low 1.2m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

10,041,680 downloads last week, 48,399,292 in the last month. The 12-month change of +239% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
5241,386 in total
Latest version
1.434.13, 24 Sept 2026today
First published
20 Feb 2020
Last push to GitHub
25 Sept 2026same day as the snapshot
Repository archived
No
Open issues
113
Open pull requests
50
Commits, last 52 weeks
2,562
Dependents on npm
374

Major versions

  1. v1 first release 1.0.0, 20 Feb 2020

Recent releases

VersionPublished
1.434.1324 Sept 2026
1.434.1223 Sept 2026
1.434.1123 Sept 2026
1.434.1023 Sept 2026
1.434.922 Sept 2026
1.434.822 Sept 2026
1.434.722 Sept 2026
1.434.622 Sept 2026
1.434.521 Sept 2026
1.434.421 Sept 2026
1.434.321 Sept 2026
1.434.218 Sept 2026
1.434.118 Sept 2026
1.434.017 Sept 2026
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
25.2 MB
Dependencies (10)
fflatepreactcore-jsdompurifyweb-vitals@posthog/core@posthog/typesweb-vitals-soft-navs@posthog/browser-commonquery-selector-shadow-dom
Peer dependencies (2)
react@types/react
npm install posthog-js

CDN

jsDelivr: 35.5m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/posthog-js@1.434.13/
  • unpkghttps://unpkg.com/posthog-js@1.434.13/
  • esm.shhttps://esm.sh/posthog-js@1.434.13
PackageWeekly downloadsGzipLast releaseModuleComparison
node-os-utils174.2k-15 days agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.