Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/glayzzle/grafine

:lollipop: A tiny nodejs/javascript in memory graph database
https://github.com/glayzzle/grafine

database graph-database memory-graph-database nosql nosql-database

Last synced: about 1 month ago
JSON representation

:lollipop: A tiny nodejs/javascript in memory graph database

Awesome Lists containing this project

README

        

# GraFine

[![npm version](https://badge.fury.io/js/grafine.svg)](https://www.npmjs.com/package/grafine)
[![Build Status](https://travis-ci.org/glayzzle/grafine.svg?branch=master)](https://travis-ci.org/glayzzle/grafine)
[![Coverage Status](https://coveralls.io/repos/github/glayzzle/grafine/badge.svg?branch=master)](https://coveralls.io/github/glayzzle/grafine?branch=master)
[![Gitter](https://img.shields.io/badge/GITTER-join%20chat-green.svg)](https://gitter.im/glayzzle/Lobby)

A tiny nodejs/javascript in memory graph database - used as a core component into
the [php-reflection](https://github.com/glayzzle/php-reflection) project.

## Statistics :

```
Create 100000 items in 645ms 96Mb 155039/sec
0. Deleted 10000 items in 64ms 99Mb 156250/sec
0. Create 10000 items in 100ms 104Mb 100000/sec
1. Deleted 10000 items in 53ms 106Mb 188679/sec
1. Create 10000 items in 26ms 112Mb 384615/sec
Found 6012 items in 9ms 112Mb 668000/sec
Export 100000 items in 113ms 125Mb 884956/sec
Import 100000 items in 559ms 164Mb 178891/sec
Found 6012 items in 7ms 164Mb 858857/sec
---------------------------
Estimated size 7.6 Mb
```

## API :

```
npm install grafine --save
```

And next use it :

```js
var grafine = require('grafine');
var db = new grafine.graph();
var a = db.create();
var b = db.create();
a.set('friend', b);
a.index('name', 'john');
// etc ...
```

@todo