# @mermaidchart/sdk

> Access the MermaidChart services with OAuth and type safety.

Latest version **0.2.8** (published 2026-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mermaidchart/sdk
pnpm add @mermaidchart/sdk
yarn add @mermaidchart/sdk
bun add @mermaidchart/sdk
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.8 |
| Published | 2026-09-17 |
| First published | 2023-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^18.18.0 \|\| >= 20.0.0 |
| Dependencies | 3 |
| Unpacked size | 67.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 7 |
| Maintainers | ashish4mc, aloisklink, sidv |

## Links

- npm: https://www.npmjs.com/package/@mermaidchart/sdk
- Repository: https://github.com/Mermaid-Chart/plugins
- Homepage: https://github.com/Mermaid-Chart/plugins/tree/main/packages/sdk#readme
- Issues: https://github.com/Mermaid-Chart/plugins/issues
- npm.io page: https://npm.io/package/@mermaidchart/sdk

## Dependencies (3)

- [uuid](https://npm.io/package/uuid.md) ^9.0.0
- [axios](https://npm.io/package/axios.md) ^1.5.0
- [@badgateway/oauth2-client](https://npm.io/package/@badgateway/oauth2-client.md) ^2.2.4

## Recent versions

- 0.2.8 (latest) — 2026-09-17
- 0.2.1-alpha.1 (alpha) — 2025-03-05
- 0.2.7 — 2026-07-31
- 0.2.6 — 2026-05-28
- 0.2.5 — 2026-04-29
- 0.2.4 — 2026-04-10
- 0.2.3 — 2026-02-18
- 0.2.2 — 2026-02-04
- 0.2.1 — 2025-04-30
- 0.2.1-alpha.0 — 2024-04-11
- 0.2.0 — 2024-04-11
- 0.1.1 — 2023-09-08
- 0.1.0 — 2023-09-08

## README

# MermaidChart SDK

This SDK allows developers of plugins to access the MermaidChart services efficiently.

It handles the OAuth based authentication, data fetching, type safety and more.

## Installation

```bash
npm install @mermaidchart/sdk
```

## Usage

Refer: https://github.com/Mermaid-Chart/vscode-mermaid-chart/blob/be2b73f1b346c6ba666fac6fa13a27328dbfb4b6/src/mermaidChartVSCode.ts

---
_Source: https://npm.io/package/@mermaidchart/sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
