MCPcopy Create free account
hub / github.com/amplitude/Amplitude-TypeScript

github.com/amplitude/Amplitude-TypeScript @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,739 symbols 8,083 edges 855 files 245 documented · 9% updated 7d ago@amplitude/plugin-custom-enrichment-browser@0.1.21 · 2026-08-12★ 18065 open issues

Browse by type

Functions 2,104 Types & classes 635
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Amplitude-TypeScript

This is Amplitude's latest version of the JavaScript SDK, written in TypeScript.

Development

If you plan on contributing to this SDK, here's how you can start.

  1. Clone GitHub repo
  2. Install dependencies
  3. Build and link packages
$ git clone git@github.com:amplitude/Amplitude-TypeScript.git
$ nvm use
$ pnpm --version
$ pnpm install
$ pnpm build

Check our guidelines for repo contributions on CONTRIBUTING.md.

Projects

Testing Locally

To test the SDK locally, you can run our test server.

Before running the test server for the first time, copy ".env.example" as ".env" and replace the variables in '.env' with your own variables.

Run pnpm dev to run the test server. It will open up to the home page automatically in your default browser.

For more details visit the Test Server README.md

Troubleshooting

If you ever see an error that looks like this while running an Nx command (pnpm test, pnpm build, etc...):

Lerna (powered by Nx) DB transaction operation error: SqliteFailure(Error { code: SystemIoFailure, extended_code: 522 }, Some("disk I/O error"))

Run npx nx reset and try again

Documentation

See our Typescript SDK Reference for a list and description of all available SDK methods.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 1,068
Function 1,036
Interface 341
Class 273
Enum 21

Languages

TypeScript91%
Kotlin7%
Java2%
C++1%

Modules by API surface

examples/browser/chrome-ext/amplitude-min.js63 symbols
packages/analytics-core/src/network-request-event.ts44 symbols
packages/analytics-react-native/android/src/test/java/com/amplitude/reactnative/ConnectivityCheckerTest.kt37 symbols
packages/session-replay-browser/src/track-destination.ts33 symbols
packages/session-replay-browser/src/session-replay.ts31 symbols
packages/analytics-types/src/event.ts31 symbols
packages/analytics-core/src/diagnostics/diagnostics-storage.ts31 symbols
packages/analytics-core/src/identify.ts30 symbols
packages/analytics-react-native/src/react-native-client.ts28 symbols
packages/analytics-react-native/android/src/main/java/com/amplitude/reactnative/LegacyDatabaseStorage.kt26 symbols
packages/analytics-core/src/revenue.ts26 symbols
packages/analytics-core/src/remote-config/remote-config.ts26 symbols

For agents

$ claude mcp add Amplitude-TypeScript \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page