Package Managers
- npm
- yarn
- pnpm
- bun
JSR (JavaScript Registry)
For Deno or other runtimes that support JSR, you can install tctx from the JavaScript Registry:- deno
- npm (via JSR)
- yarn (via JSR)
- pnpm (via JSR)
- bun (via JSR)
The npm package is published as
tctx while the JSR package is published as @mr/tracecontext.Verify Installation
After installation, verify that tctx is working correctly:Dependencies
tctx has minimal dependencies:- @lukeed/csprng - Cryptographically secure pseudo-random number generation for creating trace IDs
TypeScript Support
tctx includes full TypeScript type definitions out of the box. No additional@types packages are required.
Runtime Compatibility
tctx works seamlessly across all major JavaScript runtimes:- Node.js - Version 14 and above
- Deno - All versions
- Bun - All versions
- Browsers - All modern browsers (ES2015+)
- Edge Functions - Cloudflare Workers, Vercel Edge, Deno Deploy, etc.
Next Steps
Quickstart Guide
Learn how to use tctx in your application
API Reference
Explore the complete API documentation