{"id":36643101,"url":"https://github.com/usemarble/marble-ts","last_synced_at":"2026-04-04T21:05:58.248Z","repository":{"id":331988535,"uuid":"1130300041","full_name":"usemarble/marble-ts","owner":"usemarble","description":"Typescript sdk for Marble","archived":false,"fork":false,"pushed_at":"2026-03-30T02:15:32.000Z","size":304,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T05:27:21.758Z","etag":null,"topics":["cms","marble","sdk"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@usemarble/sdk","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usemarble.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-08T10:03:43.000Z","updated_at":"2026-02-25T11:05:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/usemarble/marble-ts","commit_stats":null,"previous_names":["usemarble/marble-ts"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/usemarble/marble-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usemarble%2Fmarble-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usemarble%2Fmarble-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usemarble%2Fmarble-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usemarble%2Fmarble-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usemarble","download_url":"https://codeload.github.com/usemarble/marble-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usemarble%2Fmarble-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31414143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cms","marble","sdk"],"created_at":"2026-01-12T09:55:20.564Z","updated_at":"2026-04-04T21:05:58.240Z","avatar_url":"https://github.com/usemarble.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @usemarble/sdk\n\nDeveloper-friendly \u0026 type-safe Typescript SDK specifically catered to leverage _@usemarble/sdk_ API.\n\n[![Built by Speakeasy](https://img.shields.io/badge/Built_by-SPEAKEASY-374151?style=for-the-badge\u0026labelColor=f3f4f6)](https://www.speakeasy.com/?utm_source=@usemarble/sdk\u0026utm_campaign=typescript)\n[![License: MIT](https://img.shields.io/badge/LICENSE_//_MIT-3b5bdb?style=for-the-badge\u0026labelColor=eff6ff)](https://opensource.org/licenses/MIT)\n\n\u003c!-- Start Summary [summary] --\u003e\n## Summary\n\nMarble API: A headless CMS API for managing and delivering content programmatically.\n\u003c!-- End Summary [summary] --\u003e\n\n\u003c!-- Start Table of Contents [toc] --\u003e\n## Table of Contents\n\u003c!-- $toc-max-depth=2 --\u003e\n* [@usemarble/sdk](#usemarblesdk)\n  * [SDK Installation](#sdk-installation)\n  * [Requirements](#requirements)\n  * [SDK Example Usage](#sdk-example-usage)\n  * [Authentication](#authentication)\n  * [Available Resources and Operations](#available-resources-and-operations)\n  * [Standalone functions](#standalone-functions)\n  * [Pagination](#pagination)\n  * [Retries](#retries)\n  * [Error Handling](#error-handling)\n  * [Server Selection](#server-selection)\n  * [Custom HTTP Client](#custom-http-client)\n  * [Debugging](#debugging)\n* [Development](#development)\n  * [Maturity](#maturity)\n  * [Contributions](#contributions)\n\n\u003c!-- End Table of Contents [toc] --\u003e\n\n\u003c!-- Start SDK Installation [installation] --\u003e\n## SDK Installation\n\nThe SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers.\n\n### NPM\n\n```bash\nnpm add @usemarble/sdk\n```\n\n### PNPM\n\n```bash\npnpm add @usemarble/sdk\n```\n\n### Bun\n\n```bash\nbun add @usemarble/sdk\n```\n\n### Yarn\n\n```bash\nyarn add @usemarble/sdk\n```\n\n\u003e [!NOTE]\n\u003e This package is published with CommonJS and ES Modules (ESM) support.\n\u003c!-- End SDK Installation [installation] --\u003e\n\n\u003c!-- Start Requirements [requirements] --\u003e\n## Requirements\n\nFor supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).\n\u003c!-- End Requirements [requirements] --\u003e\n\n\u003c!-- Start SDK Example Usage [usage] --\u003e\n## SDK Example Usage\n\n### Example\n\n```typescript\nimport { Marble } from \"@usemarble/sdk\";\n\nconst marble = new Marble({\n  apiKey: process.env[\"MARBLE_API_KEY\"] ?? \"\",\n});\n\nasync function run() {\n  const result = await marble.posts.list({\n    limit: 10,\n    page: 1,\n    categories: [\n      \"tech\",\n      \"news\",\n    ],\n    excludeCategories: [\n      \"changelog\",\n    ],\n    tags: [\n      \"javascript\",\n      \"react\",\n    ],\n    excludeTags: [\n      \"outdated\",\n    ],\n    query: \"nextjs\",\n    format: \"html\",\n    featured: \"true\",\n  });\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\u003c!-- End SDK Example Usage [usage] --\u003e\n\n\u003c!-- Start Authentication [security] --\u003e\n## Authentication\n\n### Per-Client Security Schemes\n\nThis SDK supports the following security scheme globally:\n\n| Name     | Type   | Scheme  | Environment Variable |\n| -------- | ------ | ------- | -------------------- |\n| `apiKey` | apiKey | API key | `MARBLE_API_KEY`     |\n\nTo authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example:\n```typescript\nimport { Marble } from \"@usemarble/sdk\";\n\nconst marble = new Marble({\n  apiKey: process.env[\"MARBLE_API_KEY\"] ?? \"\",\n});\n\nasync function run() {\n  const result = await marble.posts.list({\n    limit: 10,\n    page: 1,\n    categories: [\n      \"tech\",\n      \"news\",\n    ],\n    excludeCategories: [\n      \"changelog\",\n    ],\n    tags: [\n      \"javascript\",\n      \"react\",\n    ],\n    excludeTags: [\n      \"outdated\",\n    ],\n    query: \"nextjs\",\n    format: \"html\",\n    featured: \"true\",\n  });\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\u003c!-- End Authentication [security] --\u003e\n\n\u003c!-- Start Available Resources and Operations [operations] --\u003e\n## Available Resources and Operations\n\n\u003cdetails open\u003e\n\u003csummary\u003eAvailable methods\u003c/summary\u003e\n\n### [Authors](docs/sdks/authors/README.md)\n\n* [list](docs/sdks/authors/README.md#list) - List authors\n* [create](docs/sdks/authors/README.md#create) - Create author\n* [get](docs/sdks/authors/README.md#get) - Get author\n* [update](docs/sdks/authors/README.md#update) - Update author\n* [delete](docs/sdks/authors/README.md#delete) - Delete author\n\n### [Categories](docs/sdks/categories/README.md)\n\n* [list](docs/sdks/categories/README.md#list) - List categories\n* [create](docs/sdks/categories/README.md#create) - Create category\n* [get](docs/sdks/categories/README.md#get) - Get category\n* [update](docs/sdks/categories/README.md#update) - Update category\n* [delete](docs/sdks/categories/README.md#delete) - Delete category\n\n### [Posts](docs/sdks/posts/README.md)\n\n* [list](docs/sdks/posts/README.md#list) - List posts\n* [create](docs/sdks/posts/README.md#create) - Create post\n* [get](docs/sdks/posts/README.md#get) - Get post\n* [update](docs/sdks/posts/README.md#update) - Update post\n* [delete](docs/sdks/posts/README.md#delete) - Delete post\n\n### [Tags](docs/sdks/tags/README.md)\n\n* [list](docs/sdks/tags/README.md#list) - List tags\n* [create](docs/sdks/tags/README.md#create) - Create tag\n* [get](docs/sdks/tags/README.md#get) - Get tag\n* [update](docs/sdks/tags/README.md#update) - Update tag\n* [delete](docs/sdks/tags/README.md#delete) - Delete tag\n\n\u003c/details\u003e\n\u003c!-- End Available Resources and Operations [operations] --\u003e\n\n\u003c!-- Start Standalone functions [standalone-funcs] --\u003e\n## Standalone functions\n\nAll the methods listed above are available as standalone functions. These\nfunctions are ideal for use in applications running in the browser, serverless\nruntimes or other environments where application bundle size is a primary\nconcern. When using a bundler to build your application, all unused\nfunctionality will be either excluded from the final bundle or tree-shaken away.\n\nTo read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).\n\n\u003cdetails\u003e\n\n\u003csummary\u003eAvailable standalone functions\u003c/summary\u003e\n\n- [`authorsCreate`](docs/sdks/authors/README.md#create) - Create author\n- [`authorsDelete`](docs/sdks/authors/README.md#delete) - Delete author\n- [`authorsGet`](docs/sdks/authors/README.md#get) - Get author\n- [`authorsList`](docs/sdks/authors/README.md#list) - List authors\n- [`authorsUpdate`](docs/sdks/authors/README.md#update) - Update author\n- [`categoriesCreate`](docs/sdks/categories/README.md#create) - Create category\n- [`categoriesDelete`](docs/sdks/categories/README.md#delete) - Delete category\n- [`categoriesGet`](docs/sdks/categories/README.md#get) - Get category\n- [`categoriesList`](docs/sdks/categories/README.md#list) - List categories\n- [`categoriesUpdate`](docs/sdks/categories/README.md#update) - Update category\n- [`postsCreate`](docs/sdks/posts/README.md#create) - Create post\n- [`postsDelete`](docs/sdks/posts/README.md#delete) - Delete post\n- [`postsGet`](docs/sdks/posts/README.md#get) - Get post\n- [`postsList`](docs/sdks/posts/README.md#list) - List posts\n- [`postsUpdate`](docs/sdks/posts/README.md#update) - Update post\n- [`tagsCreate`](docs/sdks/tags/README.md#create) - Create tag\n- [`tagsDelete`](docs/sdks/tags/README.md#delete) - Delete tag\n- [`tagsGet`](docs/sdks/tags/README.md#get) - Get tag\n- [`tagsList`](docs/sdks/tags/README.md#list) - List tags\n- [`tagsUpdate`](docs/sdks/tags/README.md#update) - Update tag\n\n\u003c/details\u003e\n\u003c!-- End Standalone functions [standalone-funcs] --\u003e\n\n\u003c!-- Start Pagination [pagination] --\u003e\n## Pagination\n\nSome of the endpoints in this SDK support pagination. To use pagination, you\nmake your SDK calls as usual, but the returned response object will also be an\nasync iterable that can be consumed using the [`for await...of`][for-await-of]\nsyntax.\n\n[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of\n\nHere's an example of one such pagination call:\n\n```typescript\nimport { Marble } from \"@usemarble/sdk\";\n\nconst marble = new Marble({\n  apiKey: process.env[\"MARBLE_API_KEY\"] ?? \"\",\n});\n\nasync function run() {\n  const result = await marble.posts.list({\n    limit: 10,\n    page: 1,\n    categories: [\n      \"tech\",\n      \"news\",\n    ],\n    excludeCategories: [\n      \"changelog\",\n    ],\n    tags: [\n      \"javascript\",\n      \"react\",\n    ],\n    excludeTags: [\n      \"outdated\",\n    ],\n    query: \"nextjs\",\n    format: \"html\",\n    featured: \"true\",\n  });\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\u003c!-- End Pagination [pagination] --\u003e\n\n\u003c!-- Start Retries [retries] --\u003e\n## Retries\n\nSome of the endpoints in this SDK support retries.  If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API.  However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.\n\nTo change the default retry strategy for a single API call, simply provide a retryConfig object to the call:\n```typescript\nimport { Marble } from \"@usemarble/sdk\";\n\nconst marble = new Marble({\n  apiKey: process.env[\"MARBLE_API_KEY\"] ?? \"\",\n});\n\nasync function run() {\n  const result = await marble.posts.list({\n    limit: 10,\n    page: 1,\n    categories: [\n      \"tech\",\n      \"news\",\n    ],\n    excludeCategories: [\n      \"changelog\",\n    ],\n    tags: [\n      \"javascript\",\n      \"react\",\n    ],\n    excludeTags: [\n      \"outdated\",\n    ],\n    query: \"nextjs\",\n    format: \"html\",\n    featured: \"true\",\n  }, {\n    retries: {\n      strategy: \"backoff\",\n      backoff: {\n        initialInterval: 1,\n        maxInterval: 50,\n        exponent: 1.1,\n        maxElapsedTime: 100,\n      },\n      retryConnectionErrors: false,\n    },\n  });\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\nIf you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:\n```typescript\nimport { Marble } from \"@usemarble/sdk\";\n\nconst marble = new Marble({\n  retryConfig: {\n    strategy: \"backoff\",\n    backoff: {\n      initialInterval: 1,\n      maxInterval: 50,\n      exponent: 1.1,\n      maxElapsedTime: 100,\n    },\n    retryConnectionErrors: false,\n  },\n  apiKey: process.env[\"MARBLE_API_KEY\"] ?? \"\",\n});\n\nasync function run() {\n  const result = await marble.posts.list({\n    limit: 10,\n    page: 1,\n    categories: [\n      \"tech\",\n      \"news\",\n    ],\n    excludeCategories: [\n      \"changelog\",\n    ],\n    tags: [\n      \"javascript\",\n      \"react\",\n    ],\n    excludeTags: [\n      \"outdated\",\n    ],\n    query: \"nextjs\",\n    format: \"html\",\n    featured: \"true\",\n  });\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\u003c!-- End Retries [retries] --\u003e\n\n\u003c!-- Start Error Handling [errors] --\u003e\n## Error Handling\n\n[`MarbleError`](./src/models/errors/marbleerror.ts) is the base class for all HTTP error responses. It has the following properties:\n\n| Property            | Type       | Description                                                                             |\n| ------------------- | ---------- | --------------------------------------------------------------------------------------- |\n| `error.message`     | `string`   | Error message                                                                           |\n| `error.statusCode`  | `number`   | HTTP response status code eg `404`                                                      |\n| `error.headers`     | `Headers`  | HTTP response headers                                                                   |\n| `error.body`        | `string`   | HTTP body. Can be empty string if no body is returned.                                  |\n| `error.rawResponse` | `Response` | Raw HTTP response                                                                       |\n| `error.data$`       |            | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |\n\n### Example\n```typescript\nimport { Marble } from \"@usemarble/sdk\";\nimport * as errors from \"@usemarble/sdk/models/errors\";\n\nconst marble = new Marble({\n  apiKey: process.env[\"MARBLE_API_KEY\"] ?? \"\",\n});\n\nasync function run() {\n  try {\n    const result = await marble.posts.list({\n      limit: 10,\n      page: 1,\n      categories: [\n        \"tech\",\n        \"news\",\n      ],\n      excludeCategories: [\n        \"changelog\",\n      ],\n      tags: [\n        \"javascript\",\n        \"react\",\n      ],\n      excludeTags: [\n        \"outdated\",\n      ],\n      query: \"nextjs\",\n      format: \"html\",\n      featured: \"true\",\n    });\n\n    for await (const page of result) {\n      console.log(page);\n    }\n  } catch (error) {\n    // The base class for HTTP error responses\n    if (error instanceof errors.MarbleError) {\n      console.log(error.message);\n      console.log(error.statusCode);\n      console.log(error.body);\n      console.log(error.headers);\n\n      // Depending on the method different errors may be thrown\n      if (error instanceof errors.ErrorT) {\n        console.log(error.data$.error); // string\n        console.log(error.data$.details); // Detail[]\n        console.log(error.data$.message); // string\n      }\n    }\n  }\n}\n\nrun();\n\n```\n\n### Error Classes\n**Primary errors:**\n* [`MarbleError`](./src/models/errors/marbleerror.ts): The base class for HTTP error responses.\n  * [`ServerError`](./src/models/errors/servererror.ts): Server error. Status code `500`.\n\n\u003cdetails\u003e\u003csummary\u003eLess common errors (11)\u003c/summary\u003e\n\n\u003cbr /\u003e\n\n**Network errors:**\n* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server.\n* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal.\n* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client.\n* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid.\n* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error.\n\n\n**Inherit from [`MarbleError`](./src/models/errors/marbleerror.ts)**:\n* [`ErrorT`](./src/models/errors/errort.ts): Status code `400`. Applicable to 13 of 20 methods.*\n* [`ForbiddenError`](./src/models/errors/forbiddenerror.ts): Status code `403`. Applicable to 12 of 20 methods.*\n* [`NotFoundError`](./src/models/errors/notfounderror.ts): Status code `404`. Applicable to 12 of 20 methods.*\n* [`ConflictError`](./src/models/errors/conflicterror.ts): Status code `409`. Applicable to 8 of 20 methods.*\n* [`PageNotFoundError`](./src/models/errors/pagenotfounderror.ts): Invalid query parameters or page number. Status code `400`. Applicable to 4 of 20 methods.*\n* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.\n\n\u003c/details\u003e\n\n\\* Check [the method documentation](#available-resources-and-operations) to see if the error is applicable.\n\u003c!-- End Error Handling [errors] --\u003e\n\n\u003c!-- Start Server Selection [server] --\u003e\n## Server Selection\n\n### Override Server URL Per-Client\n\nThe default server can be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:\n```typescript\nimport { Marble } from \"@usemarble/sdk\";\n\nconst marble = new Marble({\n  serverURL: \"https://api.marblecms.com\",\n  apiKey: process.env[\"MARBLE_API_KEY\"] ?? \"\",\n});\n\nasync function run() {\n  const result = await marble.posts.list({\n    limit: 10,\n    page: 1,\n    categories: [\n      \"tech\",\n      \"news\",\n    ],\n    excludeCategories: [\n      \"changelog\",\n    ],\n    tags: [\n      \"javascript\",\n      \"react\",\n    ],\n    excludeTags: [\n      \"outdated\",\n    ],\n    query: \"nextjs\",\n    format: \"html\",\n    featured: \"true\",\n  });\n\n  for await (const page of result) {\n    console.log(page);\n  }\n}\n\nrun();\n\n```\n\u003c!-- End Server Selection [server] --\u003e\n\n\u003c!-- Start Custom HTTP Client [http-client] --\u003e\n## Custom HTTP Client\n\nThe TypeScript SDK makes API calls using an `HTTPClient` that wraps the native\n[Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). This\nclient is a thin wrapper around `fetch` and provides the ability to attach hooks\naround the request lifecycle that can be used to modify the request or handle\nerrors and response.\n\nThe `HTTPClient` constructor takes an optional `fetcher` argument that can be\nused to integrate a third-party HTTP client or when writing tests to mock out\nthe HTTP client and feed in fixtures.\n\nThe following example shows how to:\n- route requests through a proxy server using [undici](https://www.npmjs.com/package/undici)'s ProxyAgent\n- use the `\"beforeRequest\"` hook to add a custom header and a timeout to requests\n- use the `\"requestError\"` hook to log errors\n\n```typescript\nimport { Marble } from \"@usemarble/sdk\";\nimport { ProxyAgent } from \"undici\";\nimport { HTTPClient } from \"@usemarble/sdk/lib/http\";\n\nconst dispatcher = new ProxyAgent(\"http://proxy.example.com:8080\");\n\nconst httpClient = new HTTPClient({\n  // 'fetcher' takes a function that has the same signature as native 'fetch'.\n  fetcher: (input, init) =\u003e\n    // 'dispatcher' is specific to undici and not part of the standard Fetch API.\n    fetch(input, { ...init, dispatcher } as RequestInit),\n});\n\nhttpClient.addHook(\"beforeRequest\", (request) =\u003e {\n  const nextRequest = new Request(request, {\n    signal: request.signal || AbortSignal.timeout(5000)\n  });\n\n  nextRequest.headers.set(\"x-custom-header\", \"custom value\");\n\n  return nextRequest;\n});\n\nhttpClient.addHook(\"requestError\", (error, request) =\u003e {\n  console.group(\"Request Error\");\n  console.log(\"Reason:\", `${error}`);\n  console.log(\"Endpoint:\", `${request.method} ${request.url}`);\n  console.groupEnd();\n});\n\nconst sdk = new Marble({ httpClient: httpClient });\n```\n\u003c!-- End Custom HTTP Client [http-client] --\u003e\n\n\u003c!-- Start Debugging [debug] --\u003e\n## Debugging\n\nYou can setup your SDK to emit debug logs for SDK requests and responses.\n\nYou can pass a logger that matches `console`'s interface as an SDK option.\n\n\u003e [!WARNING]\n\u003e Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.\n\n```typescript\nimport { Marble } from \"@usemarble/sdk\";\n\nconst sdk = new Marble({ debugLogger: console });\n```\n\nYou can also enable a default debug logger by setting an environment variable `MARBLE_DEBUG` to true.\n\u003c!-- End Debugging [debug] --\u003e\n\n\u003c!-- Placeholder for Future Speakeasy SDK Sections --\u003e\n\n# Development\n\n## Maturity\n\nThis SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage\nto a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally\nlooking for the latest version.\n\n## Contributions\n\nWhile we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.\nWe look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.\n\n### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=@usemarble/sdk\u0026utm_campaign=typescript)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusemarble%2Fmarble-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusemarble%2Fmarble-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusemarble%2Fmarble-ts/lists"}