Cypher.js is a lightweight, in-memory graph database and partial implementation of the Cypher query language, written in JavaScript for Node.js (v1.0.10). It allows executing Cypher queries via a CLI tool (processing .cql files or interactive shell) or programmatically as a library. Key differentiators: pure JavaScript, no external dependencies, simple callback-based API. However, it is not a full Cypher implementation and lacks transaction support, indexing, and production-grade persistence. Suitable for prototyping or small-scale projects where a full Neo4j instance is overkill.
npm install cypherdotjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create an instance of Cypher and execute a simple CREATE/RETURN query with callbacks.
Use require('cypherdotjs') instead of import.Wrap in a Promise if needed: new Promise((resolve, reject) => cypher.execute(query, resolve, reject)).
Check the source or keep queries simple. Do not rely on full Cypher compatibility.
Implement your own persistence layer (e.g., serialize to JSON on exit) if you need data durability.
Install locally and run via npx or use an alias to avoid conflicts.
Use const Cypher = require('cypherdotjs'); const cypher = new Cypher();Create an instance first: const cypher = new Cypher();
Simplify the query to basic CREATE, MERGE, MATCH, RETURN statements without complex patterns.
No dependency data recorded yet.