Image Banner

Install and initialize in under a minute.

npm install @use-tusk/drift-sdk
import { tdSdk } from "@use-tusk/drift-sdk";

tdSdk.initialize({
  apiKey: process.env.TUSK_DRIFT_API_KEY,
  env: process.env.ENV,
  logLevel: process.env.TUSK_DRIFT_LOG_LEVEL,
});

export { tdSdk };
Icon

Simulate real world traffic to
detect regressions

Our SDK records API calls made to and from your Node.js service in staging or production to cover thousands of edge cases

How it works

Why Tusk Drift?

Resolve API drift before they reach production

Replay traces recorded from real traffic as tests to find unintended drifts in your PRs or locally via Tusk CLI. No need to write or maintain API tests.

Screenshot showing Tusk Drift recent test runs
Screenshot showing Tusk Drift page showing list of repos and services

Security-first with built-in PII redaction

Configure custom PII redaction rules and prevent specific domains or endpoints from being recorded. Our SDK and CLI are open source for transparency.

Run the highest-signal API tests in your CI

Tusk's AI filters recorded traces to create a high-quality API test suite. Auto-match relevant API tests to your PR's code changes and run them in CI.

Screenshot showing Tusk Drift page with auto-generated API test suite

Get your full API test suite with a few lines of code.

Get started

Helpful resources about AI automated testing