All Projects â†’ niclasko â†’ Cypher.js

niclasko / Cypher.js

Licence: GPL-3.0 license
Cypher graph database for Javascript

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to Cypher.js

Neo4j
Graphs for Everyone
Stars: ✭ 9,582 (+31840%)
Mutual labels:  graph-database, graphdb, cypher
NeoClient
🦉 Lightweight OGM for Neo4j which support transactions and BOLT protocol.
Stars: ✭ 21 (-30%)
Mutual labels:  graph-database, graphdb, cypher
Redisgraph
A graph database as a Redis module
Stars: ✭ 1,292 (+4206.67%)
Mutual labels:  graph-database, graphdb, cypher
seabolt
Neo4j Bolt Connector for C
Stars: ✭ 37 (+23.33%)
Mutual labels:  graph-database, cypher, cypher-query-language
janusgraph-docker
Yet another JanusGraph, Cassandra/Scylla and Elasticsearch in Docker Compose setup
Stars: ✭ 54 (+80%)
Mutual labels:  graph-database, cypher, cypher-query-language
ml-models
Machine Learning Procedures and Functions for Neo4j
Stars: ✭ 63 (+110%)
Mutual labels:  graph-database, cypher
Ecosys
TigerGraph Ecosystem
Stars: ✭ 166 (+453.33%)
Mutual labels:  graph-database, graphdb
Bolt sips
Neo4j driver for Elixir
Stars: ✭ 204 (+580%)
Mutual labels:  graph-database, graphdb
incubator-age-viewer
Graph database optimized for fast analysis and real-time data processing. It is provided as an extension to PostgreSQL.
Stars: ✭ 123 (+310%)
Mutual labels:  graph-database, graphdb
Movies Javascript Bolt
Neo4j Movies Example with webpack-in-browser app using the neo4j-javascript-driver
Stars: ✭ 123 (+310%)
Mutual labels:  graph-database, cypher
Gremlin Javascript
JavaScript tools for graph processing in Node.js and the browser inspired by the Apache TinkerPop API
Stars: ✭ 209 (+596.67%)
Mutual labels:  graph-database, graphdb
neo4j-faker
Use faker cypher functions to generate demo and test data with cypher
Stars: ✭ 30 (+0%)
Mutual labels:  graph-database, cypher
Neo4j Etl
Data import from relational databases to Neo4j.
Stars: ✭ 165 (+450%)
Mutual labels:  graph-database, cypher
Neo4j 3d Force Graph
Experiments with Neo4j & 3d-force-graph https://github.com/vasturiano/3d-force-graph
Stars: ✭ 159 (+430%)
Mutual labels:  graph-database, cypher
Movies Python Bolt
Neo4j Movies Example application with Flask backend using the neo4j-python-driver
Stars: ✭ 197 (+556.67%)
Mutual labels:  graph-database, cypher
Arangodb
🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.
Stars: ✭ 11,880 (+39500%)
Mutual labels:  graph-database, graphdb
Grakn
TypeDB: a strongly-typed database
Stars: ✭ 2,947 (+9723.33%)
Mutual labels:  graph-database, graphdb
nebula
A distributed, fast open-source graph database featuring horizontal scalability and high availability
Stars: ✭ 8,196 (+27220%)
Mutual labels:  graph-database, graphdb
docs
Source code of the ArangoDB online documentation
Stars: ✭ 18 (-40%)
Mutual labels:  graph-database, graphdb
angular-neo4j
Neo4j Bolt driver wrapper for Angular
Stars: ✭ 18 (-40%)
Mutual labels:  graph-database, cypher

Cypher.js

Cypher graph database query engine and graph database in Javascript. The Cypher query language in your browser! Zero dependencies

For inquiries, reach out to Cypher.js author Niclas Kjäll-Ohlsson ([email protected]).

Demos

  1. Just for fun: https://bit.ly/2Dbylrh
  2. Molecule interactions
  3. Game of Thrones: https://bit.ly/2QoBSG9
  4. Time series analysis: https://bit.ly/2zSQkzt
  5. Generate random strings: https://bit.ly/2FoJcAW
  6. Bill of material explosion: https://bit.ly/2DoKJE6

Usage

Client-side (web browser)

  1. Include

    <script type="text/javascript" src="Cypher.min.js"></script>

  2. Use

    var options = {
    
    	// Default will run as Web Worker, i.e. runInWebWorker = true if not specified
    	// Set runInWebWorker to false to run in same thread as main page javascript
    	runInWebWorker: true,
    
    	// Proxy for xmlhttprequest to avoid CORS. This is optional. If not provided
    	// will attempt to download from given URL directly which might give error
    	// Access denied for URL resource due to "Cross-Origin Request Blocked"
    	// The data download proxy must take one GET parameter, u, which is the URL to download
    	// and must return the data from the URL to download. 
    	// Also it should add the "Access-Control-Allow-Origin: *" http header to the response
    	// if the proxy is not served from same url as Cypher.js script is run from
    	dataDownloadProxy: "http://proxy_url?u="
    
    };
    var cypher = new Cypher(options);
    
    var query = 'merge (n:Test{what:"Hello World"}) return n';
    
    cypher.execute(
    	query,
    	function(results) {
    		console.log(results);
    	},
    	function(errorText) {
    		console.log(errorText);
    	}
    );
    

Node.js

// Dependency to https package
var https = require("https");

var Cypher = require("Cypher.min.js").Cypher;

var options = {

	// In Node.js the runInWebWorker option must be set to false
	// Web Workers are not supported in Node.js
	runInWebWorker: false,

	// In Node.js a proxy is not needed
	dataDownloadProxy: null

};
var cypher = new Cypher(true);

cypher.execute(
	'unwind range(0,10) as item return item',
	function(results) {
		console.log(JSON.stringify(results));
	},
	function(error) {
		console.log(error);
	}
);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].