/mem-node

Official Node.js client for the Mem API

Primary LanguageTypeScriptISC LicenseISC


Mem logo

Mem Node.js Client

The Mem Client provides convenient access to the Mem API from applications written in server-side JavaScript.

mem-node is released under the ISC license. Main branch merge - github action status.


Installation

Install the package with:

npm install @mem-labs/mem-node --save
# or
yarn add @mem-labs/mem-node

Usage

These examples show the most common features of the MemClient. You'll find more information on the Mem API documentation website.


Initialize the client

import { MemClient } from "@mem-labs/mem-node";

const memClient = new MemClient({
  apiAccessToken: "<Replace this with your access token>"
});

Create a mem

await memClient.createMem({
  content: "Hello world."
});

Contributing

Read our CONTRIBUTING.md to learn about our development process, and how to build and test your changes to the Mem Node.js Client.


License

The Mem Node.js Client is ISC licensed.