The Mem Client provides convenient access to the Mem API from applications written in server-side JavaScript.
Install the package with:
npm install @mem-labs/mem-node --save
# or
yarn add @mem-labs/mem-node
These examples show the most common features of the MemClient
. You'll find more information on the Mem API documentation website.
import { MemClient } from "@mem-labs/mem-node";
const memClient = new MemClient({
apiAccessToken: "<Replace this with your access token>"
});
await memClient.createMem({
content: "Hello world."
});
Read our CONTRIBUTING.md to learn about our development process, and how to build and test your changes to the Mem Node.js Client.
The Mem Node.js Client is ISC licensed.