Skip to main content
Install the Muxx TypeScript SDK to add observability to your Node.js applications.

Requirements

  • Node.js 18 or higher
  • npm, yarn, pnpm, or bun

Install with npm

npm install muxx

Install with yarn

yarn add muxx

Install with pnpm

pnpm add muxx

Install with bun

bun add muxx

Verify Installation

import { Muxx } from 'muxx';

const muxx = new Muxx();
console.log('Muxx initialized');

Configuration

Set your Muxx API key as an environment variable:
export MUXX_API_KEY="muxx_sk_live_xxxxxxxxxxxx"
Or pass it directly when initializing:
import { Muxx } from 'muxx';

const muxx = new Muxx({ apiKey: 'muxx_sk_live_xxxxxxxxxxxx' });

TypeScript Setup

The SDK includes TypeScript types out of the box. No additional @types package needed.
// tsconfig.json - recommended settings
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "strict": true
  }
}

Next Steps

Quickstart

Start tracing your LLM calls