got
got is a fluent, functional, zero-dependency, in-memory JavaScript graph database. However it can be used with plain JS it is built with TypeScript and provides its own typings. got is more of a design pattern than a full-featured DB and therefore comes with a very small set of basic functionality at this point. Let's see where we can get.
inspired by: Ramda, Gun, Redux, GraphQL, Cycle.js and git 😋
Installation
On Node:
$ npm i gotjs
or
$ yarn add gotjs
Usage
const { got } = require('gotjs');
const friends = got()
.node({ id: 'person1', name: 'Bob' })
.node({ id: 'person2', name: 'Alice' })
.edge({ from: 'person1', fromType: 'friend', to: 'person2', toType: 'friend' });
console.log(friends.state());