{
  "markdown": "# Mux TypeScript API Library\n\n[![NPM version](<https://img.shields.io/npm/v/@mux/ts.svg?label=npm%20(stable)>)](https://npmjs.org/package/@mux/ts) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@mux/ts)\n\nThis library provides convenient access to the Mux REST API from server-side TypeScript or JavaScript.\n\nThe REST API documentation can be found on [docs.mux.com](https://docs.mux.com). The full API of this library can be found in [api.md](api.md).\n\nNote: As of v14 of mux-node-sdk, we have changed some internal workings of the SDKs. You can read more about this [here](MIGRATION.md).\n\n## MCP Server\n\nUse the Mux MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.\n\n[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40mux%2Fmcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBtdXgvbWNwIl0sImVudiI6eyJNVVhfVE9LRU5fSUQiOiJteSB0b2tlbiBpZCIsIk1VWF9UT0tFTl9TRUNSRVQiOiJteSBzZWNyZXQiLCJNVVhfV0VCSE9PS19TRUNSRVQiOiJNeSBXZWJob29rIFNlY3JldCIsIk1VWF9TSUdOSU5HX0tFWSI6Ik15IEp3dCBTaWduaW5nIEtleSIsIk1VWF9QUklWQVRFX0tFWSI6Ik15IEp3dCBQcml2YXRlIEtleSIsIk1VWF9BVVRIT1JJWkFUSU9OX1RPS0VOIjoibXkgYXV0aG9yaXphdGlvbiB0b2tlbiJ9fQ)\n[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40mux%2Fmcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40mux%2Fmcp%22%5D%2C%22env%22%3A%7B%22MUX_TOKEN_ID%22%3A%22my%20token%20id%22%2C%22MUX_TOKEN_SECRET%22%3A%22my%20secret%22%2C%22MUX_WEBHOOK_SECRET%22%3A%22My%20Webhook%20Secret%22%2C%22MUX_SIGNING_KEY%22%3A%22My%20Jwt%20Signing%20Key%22%2C%22MUX_PRIVATE_KEY%22%3A%22My%20Jwt%20Private%20Key%22%2C%22MUX_AUTHORIZATION_TOKEN%22%3A%22my%20authorization%20token%22%7D%7D)\n\n> Note: You may need to set environment variables in your MCP client.\n\n## Installation\n\n```sh\nnpm install @mux/ts\n```\n\n## Usage\n\nThe full API of this library can be found in [api.md](api.md).\n\n<!-- prettier-ignore -->\n```js\nimport Mux from '@mux/ts';\n\nconst client = new Mux({\n  tokenId: process.env['MUX_TOKEN_ID'], // This is the default and can be omitted\n  tokenSecret: process.env['MUX_TOKEN_SECRET'], // This is the default and can be omitted\n});\n\nconst asset = await client.video.assets.create({\n  inputs: [{ url: 'https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }],\n  playback_policies: ['public'],\n});\n\nconsole.log(asset.id);\n```\n\n### Request & Response types\n\nThis library includes TypeScript definitions for all request params and response fields. You may import and use them like so:\n\n<!-- prettier-ignore -->\n```ts\nimport Mux from '@mux/ts';\n\nconst client = new Mux({\n  tokenId: process.env['MUX_TOKEN_ID'], // This is the default and can be omitted\n  tokenSecret: process.env['MUX_TOKEN_SECRET'], // This is the default and can be omitted\n});\n\nconst params: Mux.Video.AssetCreateParams = {\n  inputs: [{ url: 'https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }],\n  playback_policies: ['public'],\n};\nconst asset: Mux.Video.Asset = await client.video.assets.create(params);\n```\n\nDocumentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.\n\n## JWT Helpers ([API Reference](https://github.com/muxinc/mux-ts/blob/main/api.md#jwt))\n\nYou can use any JWT-compatible library, but we've included some light helpers in the SDK to make it easier to get up and running.\n\n```js\n// Assuming you have your signing key specified in your environment variables:\n// Signing token ID: process.env.MUX_SIGNING_KEY\n// Signing token secret: process.env.MUX_PRIVATE_KEY\n\n// Most simple request, defaults to type video and is valid for 7 days.\nconst token = mux.jwt.signPlaybackId('some-playback-id');\n// https://stream.mux.com/some-playback-id.m3u8?token=${token}\n\n// If you wanted to sign a thumbnail\nconst thumbParams = { time: 14, width: 100 };\nconst thumbToken = mux.jwt.signPlaybackId('some-playback-id', {\n  type: 'thumbnail',\n  params: thumbParams,\n});\n// https://image.mux.com/some-playback-id/thumbnail.jpg?token=${token}\n\n// If you wanted to sign a gif\nconst gifToken = mux.jwt.signPlaybackId('some-playback-id', { type: 'gif' });\n// https://image.mux.com/some-playback-id/animated.gif?token=${token}\n\n// Here's an example for a storyboard\nconst storyboardToken = mux.jwt.signPlaybackId('some-playback-id', {\n  type: 'storyboard',\n});\n\n// https://image.mux.com/some-playback-id/storyboard.jpg?token=${token}\n\n// You can also use `signViewerCounts` to get a token\n// used for requests to the Mux Engagement Counts API\n// https://docs.mux.com/guides/see-how-many-people-are-watching\nconst statsToken = mux.jwt.signViewerCounts('some-live-stream-id', {\n  type: 'live_stream',\n});\n\n// https://stats.mux.com/counts?token={statsToken}\n```\n\n### Signing multiple JWTs at once\n\nIn cases you need multiple tokens, like when using Mux Player, things can get unwieldy pretty quickly. For example,\n\n```tsx\nconst playbackToken = await mux.jwt.signPlaybackId(id, {\n  expiration: \"1d\",\n  type: \"playback\"\n})\nconst thumbnailToken = await mux.jwt.signPlaybackId(id, {\n  expiration: \"1d\",\n  type: \"thumbnail\",\n})\nconst storyboardToken = await mux.jwt.signPlaybackId(id, {\n  expiration: \"1d\",\n  type: \"storyboard\"\n})\nconst drmToken = await mux.jwt.signPlaybackId(id, {\n  expiration: \"1d\",\n  type: \"drm_license\"\n})\n\n<mux-player\n  playback-token={playbackToken}\n  thumbanil-token={thumbnailToken}\n  storyboard-token={storyboardToken}\n  drm-token={drmToken}\n  playbackId={id}\n></mux-player>\n```\n\nTo simplify this use-case, you can provide multiple types to `signPlaybackId` to recieve multiple tokens. These tokens are provided in a format that Mux Player can take as props:\n\n```tsx\n// { \"playback-token\", \"thumbnail-token\", \"storyboard-token\", \"drm-token\" }\nconst tokens = await mux.jwt.signPlaybackId(id, {\n  expiration: \"1d\",\n  type: [\"playback\", \"thumbnail\", \"storyboard\", \"drm_license\"]\n})\n\n<mux-player\n  {...tokens}\n  playbackId={id}\n></mux-player>\n```\n\nIf you would like to provide params to a single token (e.g., if you would like to have a thumbnail `time`), you can provide `[type, typeParams]` instead of `type`:\n\n```tsx\nconst tokens = await mux.jwt.signPlaybackId(id, {\n  expiration: '1d',\n  type: ['playback', ['thumbnail', { time: 2 }], 'storyboard', 'drm_license'],\n});\n```\n\n## Parsing Webhook payloads\n\nTo validate that the given payload was sent by Mux and parse the webhook payload for use in your application,\nyou can use the `mux.webhooks.unwrap` utility method.\n\nThis method accepts a raw `body` string and a list of headers. As long as you have set your `webhookSecret` in the\nappropriate configuration property when instantiating the library, all webhooks will be verified for authenticity automatically.\n\nThe following example shows how you can handle a webhook using a Next.js app directory API route:\n\n```js\n// app/api/mux/webhooks/route.ts\nimport { revalidatePath } from 'next/cache';\nimport { headers } from 'next/headers';\n\nimport Mux from '@mux/ts';\n\nconst mux = new Mux({\n  webhookSecret: process.env.MUX_WEBHOOK_SECRET,\n});\n\nexport async function POST(request: Request) {\n  const headersList = headers();\n  const body = await request.text();\n  const event = await mux.webhooks.unwrap(body, headersList);\n\n  switch (event.type) {\n    case 'video.live_stream.active':\n    case 'video.live_stream.idle':\n    case 'video.live_stream.disabled':\n      /**\n       * `event` is now understood to be one of the following types:\n       *\n       *   | Mux.Webhooks.VideoLiveStreamActiveWebhookEvent\n       *   | Mux.Webhooks.VideoLiveStreamIdleWebhookEvent\n       *   | Mux.Webhooks.VideoLiveStreamDisabledWebhookEvent\n       */\n      if (event.data.id === 'MySpecialTVLiveStreamID') {\n        revalidatePath('/tv');\n      }\n      break;\n    default:\n      break;\n  }\n\n  return Response.json({ message: 'ok' });\n}\n```\n\n## Verifying Webhook Signatures\n\nVerifying Webhook Signatures is _optional but encouraged_. Learn more in our [Webhook Security Guide](https://docs.mux.com/docs/webhook-security)\n\n```js\n/*\n  If the header is valid, this function will not throw an error and will not return a value.\n  If the header is invalid, this function will throw one of the following errors:\n    - new Error(\n      \"The webhook secret must either be set using the env var, MUX_WEBHOOK_SECRET, on the client class, Mux({ webhookSecret: '123' }), or passed to this function\",\n    );\n    - new Error('Could not find a mux-signature header');\n    - new Error(\n      'Webhook body must be passed as the raw JSON string sent from the server (do not parse it first).',\n    );\n    - new Error('Unable to extract timestamp and signatures from header')\n    - new Error('No v1 signatures found');\n    - new Error('No signatures found matching the expected signature for payload.')\n    - new Error('Webhook timestamp is too old')\n*/\n\n/*\n  `body` is the raw request body. It should be a string representation of a JSON object.\n  `headers` is the value in request.headers\n  `secret` is the signing secret for this configured webhook. You can find that in your webhooks dashboard\n          (note that this secret is different than your API Secret Key)\n*/\n\nmux.webhooks.verifySignature(body, headers, secret);\n```\n\nNote that when passing in the payload (body) you want to pass in the raw un-parsed request body, not the parsed JSON. Here's an example if you are using express.\n\n```js\nconst Mux = require('@mux/ts');\nconst mux = new Mux();\nconst express = require('express');\nconst bodyParser = require('body-parser');\n\n/**\n * You'll need to make sure this is externally accessible.  ngrok (https://ngrok.com/)\n * makes this really easy.\n */\n\nconst webhookSecret = process.env.WEBHOOK_SECRET;\nconst app = express();\n\napp.post('/webhooks', bodyParser.raw({ type: 'application/json' }), async (req, res) => {\n  try {\n    // will raise an exception if the signature is invalid\n    const isValidSignature = await mux.webhooks.verifySignature(req.body, req.headers, webhookSecret);\n    console.log('Success:', isValidSignature);\n    // convert the raw req.body to JSON, which is originally Buffer (raw)\n    const jsonFormattedBody = JSON.parse(req.body);\n    // await doSomething();\n    res.json({ received: true });\n  } catch (err) {\n    // On error, return the error message\n    return res.status(400).send(`Webhook Error: ${err.message}`);\n  }\n});\n\napp.listen(3000, () => {\n  console.log('Example app listening on port 3000!');\n});\n```\n\n## Handling errors\n\nWhen the library is unable to connect to the API,\nor if the API returns a non-success status code (i.e., 4xx or 5xx response),\na subclass of `APIError` will be thrown:\n\n<!-- prettier-ignore -->\n```ts\nconst liveStream = await client.video.liveStreams\n  .create({ playback_policies: ['public'] })\n  .catch(async (err) => {\n    if (err instanceof Mux.APIError) {\n      console.log(err.status); // 400\n      console.log(err.name); // BadRequestError\n      console.log(err.headers); // {server: 'nginx', ...}\n    } else {\n      throw err;\n    }\n  });\n```\n\nError codes are as follows:\n\n| Status Code | Error Type                 |\n| ----------- | -------------------------- |\n| 400         | `BadRequestError`          |\n| 401         | `AuthenticationError`      |\n| 403         | `PermissionDeniedError`    |\n| 404         | `NotFoundError`            |\n| 422         | `UnprocessableEntityError` |\n| 429         | `RateLimitError`           |\n| >=500       | `InternalServerError`      |\n| N/A         | `APIConnectionError`       |\n\n### Retries\n\nCertain errors will be automatically retried 2 times by default, with a short exponential backoff.\nConnection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,\n429 Rate Limit, and >=500 Internal errors will all be retried by default.\n\nYou can use the `maxRetries` option to configure or disable this:\n\n<!-- prettier-ignore -->\n```js\n// Configure the default for all requests:\nconst client = new Mux({\n  maxRetries: 0, // default is 2\n});\n\n// Or, configure per-request:\nawait client.video.assets.retrieve('t02rm...', {\n  maxRetries: 5,\n});\n```\n\n### Timeouts\n\nRequests time out after 1 minute by default. You can configure this with a `timeout` option:\n\n<!-- prettier-ignore -->\n```ts\n// Configure the default for all requests:\nconst client = new Mux({\n  timeout: 20 * 1000, // 20 seconds (default is 1 minute)\n});\n\n// Override per-request:\nawait client.video.assets.retrieve('t02rm...', {\n  timeout: 5 * 1000,\n});\n```\n\nOn timeout, an `APIConnectionTimeoutError` is thrown.\n\nNote that requests which time out will be [retried twice by default](#retries).\n\n## Auto-pagination\n\nList methods in the Mux API are paginated.\nYou can use the `for await … of` syntax to iterate through items across all pages:\n\n```ts\nasync function fetchAllDeliveryReports(params) {\n  const allDeliveryReports = [];\n  // Automatically fetches more pages as needed.\n  for await (const deliveryReport of client.video.deliveryUsage.list()) {\n    allDeliveryReports.push(deliveryReport);\n  }\n  return allDeliveryReports;\n}\n```\n\nAlternatively, you can request a single page at a time:\n\n```ts\nlet page = await client.video.deliveryUsage.list();\nfor (const deliveryReport of page.data) {\n  console.log(deliveryReport);\n}\n\n// Convenience methods are provided for manually paginating:\nwhile (page.hasNextPage()) {\n  page = await page.getNextPage();\n  // ...\n}\n```\n\n## Advanced Usage\n\n### Accessing raw Response data (e.g., headers)\n\nThe \"raw\" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.\nThis method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.\n\nYou can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.\nUnlike `.asResponse()` this method consumes the body, returning once it is parsed.\n\n<!-- prettier-ignore -->\n```ts\nconst client = new Mux();\n\nconst response = await client.video.assets\n  .create({\n    inputs: [{ url: 'https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }],\n    playback_policies: ['public'],\n  })\n  .asResponse();\nconsole.log(response.headers.get('X-My-Header'));\nconsole.log(response.statusText); // access the underlying Response object\n\nconst { data: asset, response: raw } = await client.video.assets\n  .create({\n    inputs: [{ url: 'https://storage.googleapis.com/muxdemofiles/mux-video-intro.mp4' }],\n    playback_policies: ['public'],\n  })\n  .withResponse();\nconsole.log(raw.headers.get('X-My-Header'));\nconsole.log(asset.id);\n```\n\n### Logging\n\n> [!IMPORTANT]\n> All log messages are intended for debugging only. The format and content of log messages\n> may change between releases.\n\n#### Log levels\n\nThe log level can be configured in two ways:\n\n1. Via the `MUX_LOG` environment variable\n2. Using the `logLevel` client option (overrides the environment variable if set)\n\n```ts\nimport Mux from '@mux/ts';\n\nconst client = new Mux({\n  logLevel: 'debug', // Show all log messages\n});\n```\n\nAvailable log levels, from most to least verbose:\n\n- `'debug'` - Show debug messages, info, warnings, and errors\n- `'info'` - Show info messages, warnings, and errors\n- `'warn'` - Show warnings and errors (default)\n- `'error'` - Show only errors\n- `'off'` - Disable all logging\n\nAt the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.\nSome authentication-related headers are redacted, but sensitive data in request and response bodies\nmay still be visible.\n\n#### Custom logger\n\nBy default, this library logs to `globalThis.console`. You can also provide a custom logger.\nMost logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.\n\nWhen providing a custom logger, the `logLevel` option still controls which messages are emitted, messages\nbelow the configured level will not be sent to your logger.\n\n```ts\nimport Mux from '@mux/ts';\nimport pino from 'pino';\n\nconst logger = pino();\n\nconst client = new Mux({\n  logger: logger.child({ name: 'Mux' }),\n  logLevel: 'debug', // Send all messages to pino, allowing it to filter\n});\n```\n\n### Making custom/undocumented requests\n\nThis library is typed for convenient access to the documented API. If you need to access undocumented\nendpoints, params, or response properties, the library can still be used.\n\n#### Undocumented endpoints\n\nTo make requests to undocumented endpoints, you can use `client.get`, `client.post`, and other HTTP verbs.\nOptions on the client, such as retries, will be respected when making these requests.\n\n```ts\nawait client.post('/some/path', {\n  body: { some_prop: 'foo' },\n  query: { some_query_arg: 'bar' },\n});\n```\n\n#### Undocumented request params\n\nTo make requests using undocumented parameters, you may use `// @ts-expect-error` on the undocumented\nparameter. This library doesn't validate at runtime that the request matches the type, so any extra values you\nsend will be sent as-is.\n\n```ts\nclient.video.assets.create({\n  // ...\n  // @ts-expect-error baz is not yet public\n  baz: 'undocumented option',\n});\n```\n\nFor requests with the `GET` verb, any extra params will be in the query, all other requests will send the\nextra param in the body.\n\nIf you want to explicitly send an extra argument, you can do so with the `query`, `body`, and `headers` request\noptions.\n\n#### Undocumented response properties\n\nTo access undocumented response properties, you may access the response object with `// @ts-expect-error` on\nthe response object, or cast the response object to the requisite type. Like the request params, we do not\nvalidate or strip extra properties from the response from the API.\n\n### Customizing the fetch client\n\nBy default, this library expects a global `fetch` function is defined.\n\nIf you want to use a different `fetch` function, you can either polyfill the global:\n\n```ts\nimport fetch from 'my-fetch';\n\nglobalThis.fetch = fetch;\n```\n\nOr pass it to the client:\n\n```ts\nimport Mux from '@mux/ts';\nimport fetch from 'my-fetch';\n\nconst client = new Mux({ fetch });\n```\n\n### Fetch options\n\nIf you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)\n\n```ts\nimport Mux from '@mux/ts';\n\nconst client = new Mux({\n  fetchOptions: {\n    // `RequestInit` options\n  },\n});\n```\n\n#### Configuring proxies\n\nTo modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy\noptions to requests:\n\n<img src=\"https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg\" align=\"top\" width=\"18\" height=\"21\"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>\n\n```ts\nimport Mux from '@mux/ts';\nimport * as undici from 'undici';\n\nconst proxyAgent = new undici.ProxyAgent('http://localhost:8888');\nconst client = new Mux({\n  fetchOptions: {\n    dispatcher: proxyAgent,\n  },\n});\n```\n\n<img src=\"https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg\" align=\"top\" width=\"18\" height=\"21\"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>\n\n```ts\nimport Mux from '@mux/ts';\n\nconst client = new Mux({\n  fetchOptions: {\n    proxy: 'http://localhost:8888',\n  },\n});\n```\n\n<img src=\"https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg\" align=\"top\" width=\"18\" height=\"21\"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>\n\n```ts\nimport Mux from 'npm:@mux/ts';\n\nconst httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });\nconst client = new Mux({\n  fetchOptions: {\n    client: httpClient,\n  },\n});\n```\n\n## Frequently Asked Questions\n\n## Semantic versioning\n\nThis package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:\n\n1. Changes that only affect static types, without breaking runtime behavior.\n2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_\n3. Changes that we do not expect to impact the vast majority of users in practice.\n\nWe take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.\n\nWe are keen for your feedback; please open an [issue](https://www.github.com/muxinc/mux-ts/issues) with questions, bugs, or suggestions.\n\n## Requirements\n\nTypeScript >= 4.9 is supported.\n\nThe following runtimes are supported:\n\n- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)\n- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.\n- Deno v1.28.0 or higher.\n- Bun 1.0 or later.\n- Cloudflare Workers.\n- Vercel Edge Runtime.\n- Jest 28 or greater with the `\"node\"` environment (`\"jsdom\"` is not supported at this time).\n- Nitro v2.6 or greater.\n\nNote that React Native is not supported at this time.\n\nIf you are interested in other runtime environments, please open or upvote an issue on GitHub.\n\n## Contributing\n\nSee [the contributing documentation](./CONTRIBUTING.md).\n",
  "bytes": 22758,
  "sha": "8d6d9e367fa3f9dbe5230b39793ae929b6a5020f81fc5ff7dd327a01186bc596",
  "repo_slug": "muxinc/mux-node-sdk",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_com_mux_mcp_cd3a191b/readme"
}