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 };
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 worksReplay 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.
Configure custom PII redaction rules and prevent specific domains or endpoints from being recorded. Our SDK and CLI are open source for transparency.
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.