npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@momomemory/sdk

v0.2.1

Published

TypeScript SDK for Momo — the self-hostable AI memory system

Readme

@momomemory/sdk

TypeScript SDK for Momo — the self-hostable AI memory system.

Installation

npm install @momomemory/sdk
# or
bun add @momomemory/sdk

Quick Start

import { MomoClient } from "@momomemory/sdk";

const momo = new MomoClient({
  baseUrl: "http://localhost:3000",
  apiKey: "your-api-key",
  defaultContainerTag: "my-app",
});

// Create a document
const doc = await momo.documents.create({
  content: "TypeScript was released in 2012 by Microsoft.",
});

// Search memories
const results = await momo.search.search({
  q: "When was TypeScript created?",
  limit: 5,
});

// Get a specific document
const fetched = await momo.documents.get(doc.id);

// List memories
const { memories } = await momo.memories.list({ limit: 10 });

// Forget a memory
await momo.memories.forgetById("mem-id", { reason: "outdated" });

Error Handling

All API errors are thrown as MomoError with typed status, code, and message fields:

import { MomoClient, MomoError } from "@momomemory/sdk";

const momo = new MomoClient({ baseUrl: "http://localhost:3000" });

try {
  await momo.documents.get("nonexistent");
} catch (e) {
  if (e instanceof MomoError) {
    console.error(e.code);    // "not_found" | "unauthorized" | "invalid_request" | ...
    console.error(e.status);  // 404
    console.error(e.message); // Human-readable message
    console.error(e.path);    // "/api/v1/documents/nonexistent"
    console.error(e.method);  // "GET"
  }
}

Advanced: Raw Client

Every MomoClient instance exposes client.raw — a fully-typed openapi-fetch client for direct API access:

const momo = new MomoClient({
  baseUrl: "http://localhost:3000",
  apiKey: "key",
});

// Use openapi-fetch methods directly
const { data, error } = await momo.raw.GET("/api/v1/health");

// POST with typed body
const { data: doc } = await momo.raw.POST("/api/v1/documents", {
  body: {
    content: "raw access",
    containerTag: null,
    contentType: null,
    customId: null,
    extractMemories: null,
    metadata: {},
  },
});

The raw client shares the same auth and envelope-unwrapping middleware as the high-level groups.

API Reference

Full API documentation: https://github.com/momomemory/momo/blob/main/docs/api.md