Giter Site home page Giter Site logo

lmangani / gun-elastic Goto Github PK

View Code? Open in Web Editor NEW
29.0 4.0 6.0 38 KB

Elasticsearch storage adapter for Gun DB :gun:

Home Page: http://qxip.net

License: MIT License

JavaScript 100.00%
elasticsearch elastic gun gundb storage persistence graph nodejs relation-extraction

gun-elastic's Introduction

Gun-Elastic

Elasticsearch native persistence layer for Gun, a realtime, distributed, offline-first, graph database engine.

This gun storage adapter interfaces with Elasticsearch using an extended flint node strategy:

  • get request expect to read an entire Gun node.
  • put requests write an entire Gun node.
    • node key-value structure (soul,relation,field,value,state) optionally saved to secondary index

THIS WORK IS EXPERIMENTAL WORK IN PROGRESS! USE AT YOUR OWN RISK!

Comments and PR/Contributions are super welcome!


Installation

npm install gun-elastic.

const Gun = require('gun');

// Must be added after Gun but before instantiating Gun
require('gun-elastic');

// Instantiate Gun
const gun = new Gun({
    file: false,
    web: httpServer,

    // The following are defaults.
    elastic: {
        host: 'localhost',
        port: '9200',
        index: 'gun_es',
        type: 'gun_data',
        
        store_keys: false,
        store_keys_index: 'gun_es_keys'
    }
});

Screenshots

Filtered Network Relations

Search and Display node relations using the kbn_graph plugin

Todo

  • Optional Key Storage in secondary index
  • Authentication support, array of servers, etc
  • Add tests with ES mockups

Acknowledgement

Gun is open-sourced and copyrighted by Mark Nadal

Elasticsearch and Kibana are trademarks of Elasticsearch BV, registered in the U.S. and in other countries.

This extension is made possible by gun-flint @sjones6

Issues & Contributing

Issues welcome on Github.

Community contributions welcome. PRs accepted after code review.

gun-elastic's People

Contributors

dependabot[bot] avatar lmangani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gun-elastic's Issues

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.