# sprotty-protocol

> TypeScript declarations for Sprotty to be used both in browser and Node.js context

Latest version **1.4.0** (published 2024-12-17) · (EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0) license · 0 weekly downloads

## Install

```sh
npm install sprotty-protocol
pnpm add sprotty-protocol
yarn add sprotty-protocol
bun add sprotty-protocol
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2024-12-17 |
| First published | 2021-11-22 |
| Weekly downloads | 0 |
| License | (EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0) |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 264.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 882 |
| Author | Eclipse Sprotty |
| Maintainers | tortmayr, sprotty-owner, spoenemann, eclipse-sprotty-bot, dennis.huebner |
| Keywords | sprotty, typescript, nodejs, diagram, modeling, visualization |

## Links

- npm: https://www.npmjs.com/package/sprotty-protocol
- Repository: https://github.com/eclipse-sprotty/sprotty
- Issues: https://github.com/eclipse-sprotty/sprotty/issues
- npm.io page: https://npm.io/package/sprotty-protocol

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.4.0 (latest) — 2024-12-17
- 1.3.0-next.9aa2083.6 (next) — 2024-06-19
- 1.3.0 — 2024-07-23
- 1.3.0-next.8eb479f.3 — 2024-06-04
- 1.2.0 — 2024-04-09
- 1.1.0 — 2024-01-03
- 0.15.0-next.4b4da39.27 — 2023-12-08
- 0.15.0-next.446c62d.26 — 2023-12-06
- 0.15.0-next.781c032.25 — 2023-11-21
- 0.15.0-next.e38e5d4.24 — 2023-11-20
- 0.15.0-next.28dc7b8.23 — 2023-11-15
- 0.15.0-next.8dba94d.20 — 2023-11-09
- 0.15.0-next.f785425.19 — 2023-11-09
- 0.15.0-next.771285d.18 — 2023-11-08
- 0.15.0-next.5c4476b.17 — 2023-11-06
- … 56 more at https://npm.io/package/sprotty-protocol/versions

## README

# Sprotty Protocol

This package contains the platform-independent definitions of Sprotty. They are used both by the main client code ([sprotty](https://www.npmjs.com/package/sprotty)) and by servers running in Node.js.

For Node.js-based diagram servers, a class `DiagramServer` is provided. It handles the state and message handling for one client, so you need to create one instance of that class for every diagram instance that is shown in the frontend.

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