0.2.0 • Published 5 years ago

seshat-node v0.2.0

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
5 years ago

Seshat-node

Node.js bindings for the Matrix message database/indexer Seshat.

Instalation

To install the bindings rust and npm are needed:

$ npm install

The above command will compile all the necessary rust libraries, install javascript dependencies and build a node module. After the command is done building the library can be used inside of node as usual:

const Seshat = require(".")

Usage

let db = new Seshat("/home/example/database_dir");
// Add a Matrix event to the database.
db.addEvent(textEvent, profile);
// Commit events waiting in the queue to the database.
await db.commit();
// Search the database for messages containing the word 'Test'
let results = await db.search({search_term: 'Test'});
0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago