Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Object-to-graph mapper for Node.js using Gremlin in Mongoose style (very alpha work)
Object-to-graph mapper for Node.js which speaks Gremlin (and also reads .groovy files).
Mogwai tries to abstract interaction with any Tinkerpop's Blueprints compliant Graph databases (ie. TitanDB, Neo4J, OrientDB, FoundationDB, Apache's Giraph, etc.).
Most of the documentation is found in the wiki.
Comments, suggestions and pull requests are welcome.
Twitter: @jbmusso
$ npm install mogwai
Please refer to grex's documentation first on how to set up your Graph database/Rexster server (ie. you will have to install Gremlin and Batch kibbles).
Note that installing Batch kibble will no longer be necessary in a future version of Mogwai.
var mogwai = require("mogwai");
var settings = {
host: "localhost",
port: 8182,
graph: "graph",
client: "titan" // or "rexster"
};
mogwai.connect(settings, function(err, connection) {
// Start here...
});
var UserSchema = new mogwai.Schema(
name: String
);
module.exports = mogwai.model("User", UserSchema)
The full documentation is available in the Github wiki.
Mogwai's API is currently inspired by two libraries:
findById
, update
, etc.).Mogwai sends Gremlin code/queries via HTTP directly to a Rexster server with the Gremlin extension enabled. Note that Mogwai currently also uses some features from grex, a "Gremlin inspired Rexster Graph Server client", which requires the Batch extension on your Rexster server as well.
Mogwai also aims to be ready for changes coming next year with Tinkerpop 3.0. Mogwai may support Rexpro in the future.
Note that Mogwai is currently developed with TitanDB v0.4.0 only, and hasn't been tested with other Tinkerpop/Rexster compliant databases. Although most features should work, expect some of them to not work at all (ie. the still partially supported indexes). Feel free to fork and send a pull request (see /src/clients
if you wish to tweak/implement client classes).
Please be aware that Mogwai is in active development, so changes breaking backward compatibility are very likely to occur as this project evolves to a more mature/stable API.
Mogwai is not considered stable and should not be used in production. Use at your own risk.
Install development dependencies
$ npm install
then run tests
$ make test
Features
Misc
The MIT License (MIT)
Copyright (c) 2013 Jean-Baptiste Musso
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Object-to-graph mapper for Node.js using Gremlin in Mongoose style (very alpha work)
We found that mogwai demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.