# react-gravizo

> Generates Graphviz schemas from source code with gravizo.com

Latest version **2.0.2** (published 2017-10-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-gravizo
pnpm add react-gravizo
yarn add react-gravizo
bun add react-gravizo
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2017-10-29 |
| First published | 2017-09-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Julien Bouquillon |
| Maintainers | revolunet |
| Keywords | react-component, graphviz, gravizo, uml |

## Links

- npm: https://www.npmjs.com/package/react-gravizo
- Repository: https://github.com/revolunet/react-gravizo
- Homepage: https://revolunet.github.io/react-gravizo/
- Issues: https://github.com/revolunet/react-gravizo/issues
- npm.io page: https://npm.io/package/react-gravizo

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 2.0.2 (latest) — 2017-10-29
- 2.0.1 — 2017-10-29
- 2.0.0 — 2017-10-29
- 1.0.0 — 2017-09-13

## README

# react-gravizo

[![npm package][npm-badge]][npm]

Generates Graphviz schemas from source code with [gravizo.com](http://gravizo.com/)

Support DOT, PlantUML or UMLGraph formats.

This renders static images, generated via gravizo.com backend with a free anonymous plan.

Demo : https://codesandbox.io/s/42n35on6n7

## Usage

To generate this image :

![demo](./demo.png)

Use this example :

```js
const Gravizo = require('react-gravizo');

const uml=`
@startuml;
(*) -->[bookeo payment] "webhook endpoint";

--> if "Client.getList(email) exist" then;
-->[true] "create document";
else;
->[false] "Client.create";
--> "create document";
endif;

--> if "Document.getList(bookeoref) exist" then;
-->[true] "SKIP (duplicate)";
else;
-->[false] "Document.create(bookeoref)";
--> "set bookeoref with CustomFields.recordValues";
--> "mark invoice as paid with Document.updateStep";
--> "add payment info with Payments.create";
endif;

@enduml
`

const Demo = () => <Gravizo graph={uml} width={400}/>
```

See also [demo](http://revolunet.github.io/react-gravizo)

[npm-badge]: https://img.shields.io/npm/v/react-gravizo.png?style=flat-square
[npm]: https://www.npmjs.org/package/react-gravizo

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