3.0.1 • Published 12 months ago
matrix-seshat v3.0.1
Seshat-node
Node.js bindings for the Matrix message database/indexer Seshat.
Installation
To install the bindings rust and yarn are needed:
$ yarn && yarn run build-bundled
The above command will compile all the necessary rust libraries, install javascript dependencies and build a node module.
This will build a fully static version, with SQLCipher and OpenSSL statically built and linked by cargo.
If you'd rather use SQLCipher from the system you can use build
instead.
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'});
3.0.1
12 months ago
3.0.0
1 year ago
2.4.0
1 year ago
2.3.2
2 years ago
2.3.1
2 years ago
2.3.3
2 years ago
2.3.0
3 years ago
2.2.4
3 years ago
2.2.3
3 years ago
2.2.2
3 years ago
2.2.1
4 years ago
2.2.0
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.0
4 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago
0.3.0
4 years ago