# fbp-graph

> JavaScript FBP graph library

Latest version **0.7.0** (published 2020-12-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install fbp-graph
pnpm add fbp-graph
yarn add fbp-graph
bun add fbp-graph
```

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2020-12-08 |
| First published | 2017-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 6 |
| Dependencies | 2 |
| Unpacked size | 313.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 53 |
| Author | Henri Bergius |
| Maintainers | bergie |
| Keywords | fbp, graph |

## Links

- npm: https://www.npmjs.com/package/fbp-graph
- Repository: https://github.com/flowbased/fbp-graph
- Homepage: https://github.com/flowbased/fbp-graph#readme
- Issues: https://github.com/flowbased/fbp-graph/issues
- npm.io page: https://npm.io/package/fbp-graph

## Dependencies (2)

- [fbp](https://npm.io/package/fbp.md) ^1.6.0
- [clone](https://npm.io/package/clone.md) ^2.1.0

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 0.7.0 (latest) — 2020-12-08
- 0.6.3 — 2020-12-03
- 0.6.2 — 2020-11-16
- 0.6.1 — 2020-10-26
- 0.6.0 — 2020-10-26
- 0.5.0 — 2020-10-23
- 0.4.0 — 2018-12-07
- 0.3.2 — 2018-03-27
- 0.3.1 — 2017-11-08
- 0.3.0 — 2017-11-03
- 0.2.1 — 2017-11-02
- 0.2.0 — 2017-11-02
- 0.1.0 — 2017-01-05

## README

FBP Graph library for JavaScript
================================

This library provides a JavaScript implementation of Flow-Based Programming graphs. There are two areas covered:

* `Graph` - the actual graph library
* `Journal` - journal system for keeping track of graph changes and undo history

## Installing

Install fbp-graph with:

```
npm install fbp-graph --save
```

## Usage

Load a graph definition into an object. Loading graph definitions works with both JSON and FBP formatted graphs.

```javascript
const fbpGraph = require('fbp-graph');
fbpGraph.graph.loadFile('some/path.json', (err, graph) => {
  // Do something with the graph object
});
```

## Changes

* 0.7.0 (December 08th 2020)
  - All graph modification methods are now chainable, allowing you to do things like `graph.addNode().addEdge().toJSON()`
  - Graph I/O methods (like `loadFile` and `save`) now return Promises in case no callback is supplied
* 0.6.3 (December 03rd 2020)
  - Fixed exporting of base Graph and Journal types in index
* 0.6.2 (November 16th 2020)
  - Graph properties `componentLoader` and `baseDir` are not serialized into JSON
* 0.6.1 (October 26th 2020)
  - Fixed packaging issue
* 0.6.0 (October 26th 2020)
  - Now shipping with TypeScript definitions
* 0.5.0 (October 23rd 2020)
  - Converted from CoffeeScript to modern JavaScript
* 0.4.0 (December 7th 2018)
  - Original JSON loaded via `loadJSON` no longer gets mutated by the graph instance (thanks @davecarlson)

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