# PostHog JS — card for AI agents

Automatic event capture and product analytics SDK for JavaScript applications.

Category: Logging, monitoring and analytics · npm package `posthog-js` · latest version 1.444.0 (checked 2026-11-01)
Install: `npm install posthog-js`
License: (Apache-2.0 AND MIT) (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 61.5 (#915 of all tools, 27 of 121 in its category)
- Used in 68 public projects set up for AI coding agents (1.1%)
- Downloads last week: 28,351,473 (as of 2026-11-24), +59.0% over 4 weeks
- GitHub stars: 671 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
Tailwind Merge 70.6%, clsx 72.1%, React 91.2%, Tailwind CSS 91.2%, Lucide React 70.6%, Testing Library 57.4%

## Checked alternatives (same job)
- Vercel Analytics: https://agentgid.com/tools/vercel-analytics/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/posthog-js/
- Homepage: https://posthog.com/docs/libraries/js
- Repository: https://github.com/PostHog/posthog-js

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
