Elestia Open Source Ratings
7.0

Mixpanel SDK

A strong pick. 4th of 9 product analytics SDKs.

mixpanel-browser is the official, actively maintained browser SDK for Mixpanel's hosted product analytics. It is mature and well typed, and it now covers session replay, feature flags and experiments. It is a solid pick if your team has chosen Mixpanel. Its downloads grow more slowly than the median, PostHog is winning far more new projects, and Mixpanel's breach in November 2025 is a reminder that you depend on a third party holding your users' data.

Best for: Teams that use or plan to use Mixpanel's hosted analytics and want product managers to run self-serve funnel and retention reports.

WebsiteGitHubnpm

Scores

Overall7.0

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

The SDK is well maintained and capable, and it is the right pick if your team has chosen Mixpanel for its analysis UI. For a new project, PostHog offers more tools, an open-source and self-hostable backend, and much faster adoption. That, plus the 2025 vendor breach and below-median growth, keeps Mixpanel under the top tier. The range is wide because the choice depends mostly on the hosted product, not on the SDK.

GPT-6.2 Sol: 7.4, likely 6.3 to 8.5

Mixpanel is a strong pick for teams that want mature hosted reporting and a maintained browser SDK with flexible event capture. PostHog is the stronger default for a new engineering-led project that also wants integrated error tracking and surveys, and it has more momentum among recent launches. Mixpanel's hosted-service security record and the sparse comparative SDK performance evidence keep the recommendation below the top tier.

Needed by many5.8

How many developers need a tool for this job?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Most teams that build web apps or SaaS products want product analytics. This SDK only serves people who choose Mixpanel's service, which is narrower than the whole category. It still runs on any browser framework.

  • category.job: Records user actions in an app; a common need in web apps
  • project.note: SDK for one closed analytics service

GPT-6.2 Sol: 5.5, likely 4.3 to 6.7

Event tracking is useful across many web products, and Mixpanel works across frontend frameworks. This package serves browser teams that choose Mixpanel's hosted service. Developer and enterprise studies give some context, but neither measures how many JavaScript and TypeScript developers need this specific setup.

Helps a lot7.5

How well does it do the job for those who need it?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

The SDK has a long track record and covers tracking, identity, autocapture, session replay, heatmaps, feature flags with an OpenFeature provider, and now experiments. It ships its own types, and its API is old and stable, which helps AI agents write correct code. Limits: ad blockers stop it unless you add a proxy, the community @types package has known gaps, and PostHog bundles more tools (surveys, warehouse) behind one SDK.

GPT-6.2 Sol: 8.0, likely 6.9 to 9.1

Version 2.86.0 combines custom events, autocapture, identity management, and replay, with visual experiments available in beta. Built-in types, console debugging, and agent setup guides make basic instrumentation straightforward. The default build includes the recorder, and a user reported browser slowdowns with replay enabled. Current comparative performance and coding-agent accuracy remain poorly measured.

Holds up over time7.6

Will it still be a good choice in two years?

Claude Opus 5.5: 7.5, likely 6.5 to 8.5

The project had 234 commits and 15 releases in the last year, and its latest release came out five days before the read date. A commercial company with paying customers funds the work. Over 200 issues and pull requests are open, and the SDK's future depends on Mixpanel's business, which lost some trust after the 2025 breach.

  • github commitsLastYear / releasesLastYear: 234 commits, 15 releases
  • github openIssues / openPullRequests: 179 open issues, 34 open PRs
  • github.com/mixpanel/mixpanel-js/releases: Monthly releases, none labelled breaking

GPT-6.2 Sol: 7.7, likely 6.5 to 8.7

Mixpanel maintains the SDK for its own service and shipped 15 releases and 234 commits in the past year. Recent releases fix browser behavior and add consent controls that preserve the previous defaults unless enabled. Some issues remain open for months, and recent GitHub releases repeatedly name one publisher. The two-year outlook also depends on Mixpanel's hosted service and its ability to attract new projects.

Used widely6.1

How many use it, and is that growing?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

Downloads were about 14.9M in the last 4 weeks and 1,218 dependent repos, the fourth highest in the category. Downloads grew 3.4x in a year, below the 4.1 median, so the SDK is losing ground. PostHog grew 12x and Vercel Analytics 9x over the same period.

  • npm downloadsLast4Weeks: 14.9M, up from 4.4M a year ago (3.4x, below the 4.1 median)
  • dependents.repos: 1,218 repos, behind Vercel, PostHog and Analytics
  • peers PostHog JS downloads: 101M, grew 12x
  • bluesky posts: 0 posts; little developer buzz

GPT-6.2 Sol: 5.2, likely 3.9 to 6.5

Four-week downloads rose from 4.44 million to 14.90 million, or 3.36× against the catalog median of 4.1× and PostHog's 12.12×. The 1,218 tracked repos and 235 packages show established use, with more tracked repos than Amplitude and Segment and fewer than PostHog. Mixpanel also took a smaller share of recent launches in an independent sample, and no Bluesky posts linked to the repository in the collection window. Repeat installs, CDN use, and incomplete repository coverage leave the number of direct adopters uncertain.

  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 3.36× install growth against a 4.1× baseline
  • dependents and peers: 1,218 tracked repos versus 2,707 for PostHog and 440 for Amplitude
  • bluesky posts: Zero repository links in the 24-month collection window
  • howmakersbuild.com/tools/mixpanel: 8% of sampled 2026 launches versus 29% of those launched in 2024 or earlier
  • docs.mixpanel.com/docs/tracking-methods/sdks/javascript: CDN installs are available outside npm
Vouched for6.4

Who stands behind it being good?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

News coverage of the breach named large companies on Mixpanel, such as Pinterest, Workday, Yelp and LG, and comparison articles treat it as a main option for product teams. Most comparisons come from rival vendors, and I found no independent benchmark. OpenAI stopped using Mixpanel after the breach.

GPT-6.2 Sol: 6.2, likely 4.9 to 7.4

Transporeon documents production use for retention and feature engagement, and practitioners describe Mixpanel as useful for self-serve funnels and cohorts. OpenAI previously used the service for web analytics and ended its use after the 2025 breach. Most independent evidence covers the hosted product, with little current survey or benchmark evidence about the browser SDK itself.

Safe6.4

How safe is it to depend on?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

The SDK has no advisories on record, an OpenSSF Scorecard of 8.2, only 5 dependencies, an Apache-2.0 licence, and an SBOM published with each release. The larger risk is the service: in November 2025 an SMS phishing attack on Mixpanel staff let an attacker export customer analytics data, and HN commenters found the disclosure vague. Session replay can also capture personal data unless you configure it carefully.

GPT-6.2 Sol: 6.3, likely 5.0 to 7.6

The SDK uses the permissive Apache-2.0 license, declares five dependencies, and has zero direct OSV advisories in the snapshot. OpenSSF scores it 8.2, with strong code review, partial branch protection, no detected fuzzing, and no result for release signing. GitHub releases are immutable, while npm publishing permissions and provenance remain unverified. A report of outdated code bundled into the recorder and the 2025 hosted-service breach both lower confidence, even with documented containment steps.

Good

  • Mature SDK with built-in TypeScript types, autocapture, session replay, heatmaps and feature flags.
  • Released about once a month by a funded company, with no breaking changes labelled in the last year.
  • Small dependency footprint and an OpenSSF Scorecard of 8.2, with no known advisories.
  • New consent_mode and on_track hooks give fine control over privacy and what gets sent.

Bad

  • It only works with Mixpanel's closed, paid cloud service, so you cannot self-host and switching vendors is hard.
  • In November 2025 an attacker exported customer analytics data from Mixpanel's own systems, and OpenAI dropped Mixpanel after the breach.
  • Ad blockers block its default endpoints, so you need your own proxy to get complete data.
  • Its download growth is below the median, while PostHog is growing much faster in new projects.

The numbers

npm downloads, 4 weeks
15M ×3.4 in a year
GitHub stars
944
Commits, 12 months
234
npm version
2.86.0 Nov 2026
Versions, 12 months
15
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
8.2 out of 10, Nov 2026
Licence
Apache-2.0

The SDK of an analytics service that is not open source.

Read on 21 November 2026 from GitHub (mixpanel/mixpanel-js), npm (mixpanel-browser), OSV and the OpenSSF Scorecard.

Product analytics SDKs

  1. 8.2PostHog JS
  2. 7.3Amplitude SDK
  3. 7.3Plausible tracker
  4. 7.0Mixpanel SDK
  5. 6.8RudderStack SDK
  6. 6.5OpenPanel
  7. 6.5Segment Analytics.js
  8. 6.2Vercel Analytics
  9. 4.9Analytics
Compare all 9 on six scores