Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niclasko/cypher.js
Cypher graph database for Javascript
https://github.com/niclasko/cypher.js
api-calls connected-data cypher cypher-query-language database graph-database graphdb javascript knowledge-base knowledge-graph large-language-models llms prompt-chaining
Last synced: about 9 hours ago
JSON representation
Cypher graph database for Javascript
- Host: GitHub
- URL: https://github.com/niclasko/cypher.js
- Owner: niclasko
- License: gpl-3.0
- Created: 2018-11-04T19:14:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T21:49:45.000Z (4 months ago)
- Last Synced: 2024-10-25T18:43:35.748Z (4 months ago)
- Topics: api-calls, connected-data, cypher, cypher-query-language, database, graph-database, graphdb, javascript, knowledge-base, knowledge-graph, large-language-models, llms, prompt-chaining
- Language: JavaScript
- Homepage: http://niclasko.github.io/CypherJS
- Size: 1.43 MB
- Stars: 59
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Cypher.js
Cypher graph database query engine and graph database in Javascript. The Cypher query language in your browser! Zero dependenciesFor 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
2. Game of Thrones: https://bit.ly/2QoBSG9
3. Time series analysis: https://bit.ly/2zSQkzt
4. Generate random strings: https://bit.ly/2FoJcAW
5. Bill of material explosion: https://bit.ly/2DoKJE6
6. Star Wars characters## Usage
**Client-side (web browser)**
1. Include
``````2. Use
```
var cypher = new Cypher({runInWebWorker: true});
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,
};
var cypher = new Cypher(options);cypher.execute(
'unwind range(0,10) as item return item',
function(results) {
console.log(JSON.stringify(results));
},
function(error) {
console.log(error);
}
);
```