Coder Social home page Coder Social logo

fbp-graph's Introduction

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.

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)

fbp-graph's People

Contributors

bergie avatar connoropolous avatar dependabot[bot] avatar greenkeeper[bot] avatar ifitzpatrick avatar ruippeixotog avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.