Amplitude SDK
A strong pick. 2nd of 9 product analytics SDKs.
Amplitude's official TypeScript browser SDK sends events to Amplitude's closed-source analytics service. It is well maintained and rich in features: autocapture, attribution, session replay and plugins. It is a solid pick for teams that already chose Amplitude, but it ties you to a paid vendor. PostHog JS is gaining ground faster.
Best for: Product and growth teams that have chosen Amplitude's hosted analytics and experimentation platform.
Scores
Overall7.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
It is a capable, well-funded and actively maintained SDK, and the right one if you use Amplitude. It ties you to a closed paid service, carries a heavy bundle and has open attribution and consent bugs. Its growth is below the median. PostHog JS is open source and growing much faster, so it is the better default for most new projects.
- npm downloads ratio: 3.6 against a 4.1 median
- peers PostHog JS: The peer's growth is far stronger
- posthog.com/compare/best-amplitude-alternatives: Alternatives are widely discussed
- github.com/amplitude/Amplitude-TypeScript/issues: Open bugs in core tracking options
GPT-6.2 Sol: 8.0, likely 7.0 to 8.9
Choose Amplitude’s SDK when the team wants Amplitude’s hosted reporting and needs both explicit instrumentation and automatic browser tracking. The typed API, Lite build, and active maintenance make it a strong new-project choice in that setting. For a team choosing its analytics stack from scratch, PostHog JS has stronger adoption momentum and offers event tracking, replay, and feature flags through one SDK. Most independent feedback covers the hosted platforms, leaving some uncertainty about how the current browser SDKs compare in production.
- amplitude.com/docs/sdks/analytics/browser/browser-sdk-2/get-started: Current browser setup, Lite build, and hosted project requirement.
- github.com/amplitude/Amplitude-TypeScript/releases/tag/@amplitude%2Fanalytics-browser@2.49.4: Stable browser release published November 19, 2026.
- peers PostHog JS and medianDownloadsRatio: PostHog leads on indexed repositories and relative download growth.
- posthog.com/docs/libraries/js: PostHog’s browser SDK combines tracking with replay and feature flag extensions.
- reddit.com/r/analytics/comments/1tvn079/deciding_between_amplitude_mixpanel_posthog: Practitioners discuss Amplitude reporting and PostHog’s appeal to engineering teams.
Needed by many6.0
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Most teams that ship a web app or site want product analytics, so the category is broad. This package covers browsers only, and it only helps teams that use Amplitude's service, which narrows its take on the job. Sibling packages cover Node and React Native.
- project.note: SDK of a closed-source analytics service
- crazyegg.com/blog/amplitude-vs-posthog: Best suited to marketing, growth and ecommerce teams
GPT-6.2 Sol: 6.0, likely 4.8 to 7.1
Feature usage, conversion, and retention matter to many teams building customer-facing web apps. The browser SDK works across frameworks, though it serves teams that want a dedicated product analytics service and sends its data to Amplitude. Developer surveys establish the size of the JavaScript and TypeScript audience, while available adoption studies cover selected groups of businesses.
- survey.stackoverflow.co/2026/technology/data/languages-timeseries: Developer survey establishes the broad JavaScript and TypeScript audience.
- cardinalpath.com/wp-content/uploads/2026_State_of_Digital_Experience-Analytics.pdf: Dedicated product analytics appeared at 12% of Fortune 1000 companies studied.
- amplitude.com/docs/sdks/analytics/browser/browser-sdk-2/get-started: Browser installation works across frameworks and requires an Amplitude project.
Helps a lot7.7
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is full-featured: typed track/identify APIs, plugins, autocapture, attribution, session replay and remote config. The main limits are a heavy bundle of about 57 KB gzipped and open bugs in attribution and consent options. Defaults also change between minor versions. It is good, but PostHog does more in one SDK for engineers, and lighter trackers are much smaller.
- gsmarenas.netlify.app/host-https-github.com/amplitude/Amplitude-TypeScript/issues/1268: Open issue: bundle is large, and about half of it is autocapture plugins
- github.com/amplitude/Amplitude-TypeScript/issues: Open bugs in attribution, opt-out cookies and trackingOptions
- community.amplitude.com/data-instrumentation-57/can-t-turn-of-auto-capture-5422: Users confused about switching autocapture off across versions
- npm hasTypes: Ships its own TypeScript types
GPT-6.2 Sol: 8.3, likely 7.2 to 9.2
Version 2.49.4 covers custom events, identity, sessions, campaign attribution, and configurable autocapture. The typed API, troubleshooting examples, and upload status messages give developers and coding agents a clear way to verify delivery, though asynchronous calls use a separate promise property. The Lite build cuts bundle size by dropping autocapture. Independent evidence on current runtime overhead and delivery reliability is thin.
- npm latestVersion and hasTypes: Stable version 2.49.4 ships TypeScript declarations.
- amplitude.com/docs/sdks/analytics/browser/browser-sdk-2/get-started: Full and Lite builds, installation checks, and framework troubleshooting.
- amplitude.com/docs/sdks/analytics/browser/browser-sdk-2/instrument-and-configure: Identity, sessions, event batching, plugins, and autocapture controls.
- amplitude.com/docs/sdks/analytics/browser/browser-sdk-2/reference: Documents typed return values and upload status messages.
Holds up over time8.2
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
A public company pays for the work and depends on the SDK for its revenue. In the last year the repository had 565 commits and 71 contributors, and releases come out almost daily. The 2.x line has been stable since 2023. The 119 open pull requests and 66 open issues show some backlog, and the SDK is only as durable as Amplitude's business.
- github commitsLastYear: 565 commits in the last year
- npm versionsLastYear: 78 versions; latest published 2026-11-19
- github openPullRequests: 119 open PRs and 66 open issues
- github.com/amplitude/Amplitude-TypeScript/releases: Frequent releases across many packages
GPT-6.2 Sol: 8.3, likely 7.1 to 9.2
Amplitude funds the SDK and several maintainers have run the release workflow successfully. The browser package published 78 versions in a year, including routine version bumps, and shipped delivery fixes and the Lite build. Triage is uneven, with one production Safari report closed after about seven weeks, and a minor release changed the default attribution behavior. The SDK’s long-term value depends on Amplitude’s hosted platform.
- npm versionsLastYear and latestPublishedAt: 78 browser package versions in a year, with the latest published November 19.
- github.com/amplitude/Amplitude-TypeScript/actions/workflows/publish-v2.yml: Several maintainers successfully trigger the shared release workflow.
- raw.githubusercontent.com/amplitude/Amplitude-TypeScript/main/packages/analytics-browser/CHANGELOG.md: Package changelog records the Lite build and routine version bumps.
- amplitude.com/docs/sdks/analytics/browser/browser-sdk-2-release-notes: Delivery fixes and a change to default campaign attribution.
- github.com/amplitude/Amplitude-TypeScript/issues/1774: Production Safari diagnostics issue closed about seven weeks after filing.
- investors.amplitude.com/static-files/62a056aa-7573-468a-aa76-1f06e4921d45: Public filing reports growth in large accounts and continued platform investment.
Used widely5.7
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It had 14.7M downloads in the last 4 weeks, up 3.6 times on a year ago. That is below the 4.1 median ratio, about level with Mixpanel and Segment and far behind PostHog and Vercel Analytics. Its 440 dependent repos are similar to Segment's (398) but well under Mixpanel's (1218) and PostHog's (2707). Downloads are inflated by CI and by enterprise sites that run many builds.
- npm downloadsLast4Weeks: 14.66M, up from 4.08M a year ago (ratio 3.6)
- medianDownloadsRatio: The median ratio of 4.1 is higher, so it is losing relative ground
- dependents repos: 440 repos and 103 packages
- peers PostHog JS: PostHog has 101M downloads, 12 times more than a year ago
GPT-6.2 Sol: 5.3, likely 3.8 to 6.8
Four-week npm downloads rose from 4.1 million to 14.7 million, a 3.6× increase that trails the 4.1× baseline and PostHog JS’s 12.1× increase. Ecosyste.ms found 440 repositories and 103 packages, with fewer indexed repositories than Mixpanel and PostHog. CI and installs through Amplitude’s Unified SDK raise download counts, CDN installs escape the count, and the 181 stars are shared across several SDKs. Ramp’s spending data shows Amplitude still wins new platform customers, though PostHog leads by a wide margin.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: 14.7 million versus 4.1 million downloads, with growth below the catalog baseline.
- dependents repos and packages, github stars, and peers: 440 indexed repositories, 103 packages, and 181 shared repository stars.
- github.com/amplitude/Amplitude-TypeScript: The repository includes browser, Node.js, and React Native SDKs.
- amplitude.com/docs/sdks/analytics/browser/browser-sdk-2/get-started: The browser SDK supports CDN installation and is included in the Unified npm package.
- ramp.com/vendors/categories/product-analytics-cdp-event-infrastructure: November 2026 platform spending data shows 11% first-time adopter share for Amplitude and 60% for PostHog.
Vouched for6.7
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 4.0 to 7.0
Amplitude is a long-established commercial analytics platform that many large companies use, and analyst rankings place it among the leaders. Independent write-ups of the SDK itself are rare, and most comparisons come from competing vendors. It has no Hacker News or Bluesky presence and does not appear in developer surveys.
- crazyegg.com/blog/amplitude-vs-posthog: Third-party praise for its behavioural analysis, funnels and retention
- posthog.com/compare/posthog-vs-amplitude: A competitor's comparison treats Amplitude as the reference rival
- hackerNews / bluesky: No stories or posts
- Amplitude Inc. (NASDAQ: AMPL): A public company with a large enterprise customer base
GPT-6.2 Sol: 7.4, likely 6.0 to 8.6
Cisco lists Browser SDK 2 in a shipped product, and an independent report found Amplitude widely deployed among Fortune 1000 companies that use product analytics. Recent users report that Amplitude helps them study feature usage and funnels, with some describing a learning curve for event management. Most of that feedback covers the hosted service, leaving less direct evidence about satisfaction with the current SDK.
- cisco.com/c/dam/en_us/about/doing_business/open_source/docs/FRUPMicroapps-GovSSERelease-1749220065.pdf: Cisco’s software inventory names Browser SDK 2.12.2.
- cardinalpath.com/wp-content/uploads/2026_State_of_Digital_Experience-Analytics.pdf: Third-party measurement finds substantial enterprise adoption of Amplitude.
- g2.com/categories/product-analytics?order=g2_score: Recent platform reviews praise feature insights and report a learning curve.
- reddit.com/r/analytics/comments/1qcrbuz/who_actually_uses_mixpanel_or_amplitude: Practitioners describe front-end instrumentation, funnel analysis, and product-team use.
Safe7.5
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It has no OSV advisories, an MIT licence and 9 direct dependencies, and a company team publishes it. It has no Scorecard data. Session replay pulls in rrweb, which adds surface area. Users report that cookies are still set when opt-out is on, which is a privacy and compliance risk to check before you ship.
- advisories total: 0 advisories
- npm dependencies: 9 dependencies
- scorecard: No Scorecard data
- github.com/amplitude/Amplitude-TypeScript/issues: Open issue: cookies set with opt-out enabled (#1078)
GPT-6.2 Sol: 8.0, likely 6.7 to 9.0
The SDK uses the permissive MIT license, and OSV lists zero advisories for the package. GitHub Actions uses OIDC for npm publishing, and several maintainers can run releases. Eight of the nine direct dependencies are Amplitude packages, and the SDK supports opt-out controls. The missing OpenSSF Scorecard and repository security policy limit confidence in the public security record.
- advisories total and scorecard: Zero OSV advisories and no collected OpenSSF Scorecard.
- raw.githubusercontent.com/amplitude/Amplitude-TypeScript/c9b6e8f/packages/analytics-browser/package.json: MIT license and nine direct dependencies, eight in the Amplitude scope.
- raw.githubusercontent.com/amplitude/Amplitude-TypeScript/c9b6e8f/.github/workflows/publish-v2.yml: Release workflow checks permissions and uses OIDC for npm publishing.
- github.com/amplitude/Amplitude-TypeScript/actions/workflows/publish-v2.yml: Multiple maintainers have completed publish runs.
- github.com/amplitude/Amplitude-TypeScript/security: GitHub shows no repository security policy.
- amplitude.com/docs/sdks/analytics/browser/browser-sdk-2/instrument-and-configure: Documents opt-out behavior and configurable identity storage.
Good
- Amplitude, a public company, maintains it actively: 565 commits and 78 npm versions of the browser package in the last year.
- It is written in TypeScript and ships its own types, with a plugin system and an optional typed tracking-plan codegen (Ampli).
- Autocapture, web attribution, page views, web vitals and session replay all come from one monorepo.
- It has no known advisories, an MIT licence and only 9 direct dependencies.
Bad
- The bundle is large, about 57 KB gzipped, and an open issue asks for a modular build without the bundled autocapture plugins.
- It is only useful with Amplitude's closed, paid service, so you are locked in to the vendor.
- Open issues report bugs in attribution, opt-out cookies and trackingOptions, and some have long threads.
- Defaults keep shifting across 2.x minor versions (autocapture on by default, attribution persistence), which can surprise people when they upgrade.
The numbers
- npm downloads, 4 weeks
- 15M ×3.6 in a year
- GitHub stars
- 181
- Commits, 12 months
- 565
- npm version
- 2.49.4 Nov 2026
- Versions, 12 months
- 78
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
The SDK of an analytics service that is not open source.
Read on 21 November 2026 from GitHub (amplitude/Amplitude-TypeScript), npm (@amplitude/analytics-browser), OSV and the OpenSSF Scorecard.
Product analytics SDKs
- 8.2PostHog JS
- 7.3Amplitude SDK
- 7.3Plausible tracker
- 7.0Mixpanel SDK
- 6.8RudderStack SDK
- 6.5OpenPanel
- 6.5Segment Analytics.js
- 6.2Vercel Analytics
- 4.9Analytics