# @snag-run/renderer

> Snag Map renderer (RENDER) — framework-agnostic Cytoscape viewer.

Latest version **0.4.0** (published 2026-07-08) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @snag-run/renderer
pnpm add @snag-run/renderer
yarn add @snag-run/renderer
bun add @snag-run/renderer
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2026-07-08 |
| First published | 2026-06-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 6 |
| Unpacked size | 160.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | David Taing |
| Maintainers | teeang |

## Links

- npm: https://www.npmjs.com/package/@snag-run/renderer
- Repository: https://github.com/snag-run/snag
- Homepage: https://github.com/snag-run/snag/tree/main/packages/renderer#readme
- Issues: https://github.com/snag-run/snag/issues
- npm.io page: https://npm.io/package/@snag-run/renderer

## Dependencies (6)

- [dagre](https://npm.io/package/dagre.md) 0.8.5
- [esbuild](https://npm.io/package/esbuild.md) ^0.28.1
- [cytoscape](https://npm.io/package/cytoscape.md) ^3.31.0
- [escape-html](https://npm.io/package/escape-html.md) ^1.0.3
- [@snag-run/core](https://npm.io/package/@snag-run/core.md) ^0.4.0
- [cytoscape-dagre](https://npm.io/package/cytoscape-dagre.md) 4.0.0

## Recent versions

- 0.4.0 (latest) — 2026-07-08
- 0.3.0 — 2026-07-06
- 0.2.5 — 2026-07-05
- 0.2.4 — 2026-06-30
- 0.2.3 — 2026-06-26
- 0.2.2 — 2026-06-26
- 0.2.0 — 2026-06-25
- 0.1.1 — 2026-06-25
- 0.1.0 — 2026-06-25

## README

# @snag-run/renderer

Framework-agnostic renderer (the **RENDER** stage) for a Snag Map — draws the
Happy Path → Failure Map as an interactive Cytoscape graph. Consumed by
[`@snag-run/cli`](https://www.npmjs.com/package/@snag-run/cli)'s `snag view`;
usable directly to embed a map view in a web app.

> Status: pre-v1.0.0 — early release. APIs may change before `1.0`.

Part of [snag](https://snag.run) — see [snag.run/docs](https://snag.run/docs) for
the full documentation and a live demo.

## Install

```sh
npm install @snag-run/renderer
```

## License

Apache-2.0 © David Taing. See [LICENSE](./LICENSE).

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