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

@memnode/client

v0.1.0

Published

TypeScript client for Memnode, persistent memory for AI agents

Readme

@memnode/client (TypeScript)

TypeScript client for Memnode, persistent memory for AI agents.

  • Uses built-in fetch — runs on Node 18+, Bun, Deno, and modern browsers.
  • Typed request options and response shapes.
  • No runtime dependencies.

Quickstart and proof

If you land on this package page first, use this order:

  1. Install + proof loop: https://memnode.dev/mcp
  2. Public demo article: https://memnode.dev/articles/claude-code-memory-demo
  3. Downloadable 14-second proof loop: https://memnode.dev/article-images/mcp-demo-loop.mp4
  4. Hosted docs: https://memnode.dev/docs

The shortest believable Memnode loop is still MCP-first:

  • teach Claude Code one repo convention
  • start a fresh task or later session
  • recall it and inspect lineage

Install

npm install @memnode/client
# or
pnpm add @memnode/client

For local development:

cd clients/typescript
npm install typescript@^5.4
npm run build

Usage

import { MemnodeClient } from "@memnode/client";

const client = new MemnodeClient("https://api.memnode.dev", process.env.MEMNODE_API_KEY!);

const result = await client.recall("Where is the user moving?");
console.log(result.answer, result.confidence);
for (const hit of result.supportingMemories) {
  console.log(hit.nodeId, hit.props.summary, hit.score);
}

const query = await client.query("Observation", {
  filter: {
    _memory_status: { $in: ["supported", "canonical"] },
    _support_count: { $gte: 3 },
  },
  limit: 10,
});
console.log(query.nodes[0]?.props.summary);

await client.feedback(result.supportingMemories[0].nodeId, true);

const health = await client.healthz();
console.log(health.ok);

For the shortest proof loop, start with the local MCP path first and keep this SDK for hosted or app-backend use.

Methods

| Method | HTTP | Notes | |---------------------|-------------------------|-----------------------------------------------| | recall | POST /v1/recall | Returns RecallResponse | | feedback | POST /v1/feedback | Mark a supporting memory helpful / not | | explain | POST /v1/explain | Raw JSON with per-edge scoring | | query | POST /v1/query | Structured query for memory inspection | | recordProcedure | POST /v1/procedures | Persist a trigger → action-sequence procedure | | recallProcedures | GET /v1/procedures | Retrieve procedures, optionally by trigger | | memoryLineage | GET /v1/lineage/{id} | CORRECTS / SUPERSEDES / DERIVED_FROM chain | | healthz | GET /healthz | Liveness probe | | status | GET /v1/status | Lease + data-plane counters |

Recording raw observations over HTTP is not yet supported server-side — use the MCP transport until POST /v1/record ships.

Errors

All errors inherit from MemnodeError:

  • MemnodeAuthError — 401/403
  • MemnodeRateLimitError — 429, carries retryAfter (seconds) when the server returns a Retry-After header
  • MemnodeUnavailableError — 503 (control-plane lease gone, shutting down, …)
  • MemnodeHTTPError — other non-2xx responses with status and body

Tests

cd clients/typescript
node --test --experimental-strip-types tests/*.test.ts

Tests spin up an in-process node:http server on a random port and drive the client end-to-end — no fetch mocks, no fixtures.