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

@memnexus-ai/sdk

v1.60.6

Published

Official Node.js SDK for the MemNexus API

Readme

@memnexus-ai/sdk

Official Node.js / TypeScript SDK for the MemNexus API — persistent AI memory management.

Version: 1.53.28 Node.js: >= 18.0.0 Dependencies: none (uses native fetch)

Installation

npm install @memnexus-ai/sdk

Quick Start

import { MemNexus } from '@memnexus-ai/sdk';

const client = new MemNexus({ apiKey: 'your-api-key' });

// Save a memory
await client.remember('I deployed the new feature to production');

// Search memories
const results = await client.search('deployment history');
console.log(results.data);

// Build context briefing
const briefing = await client.brief('working on auth module');
console.log(briefing.data);

// Recall a digest
const digest = await client.recall('authentication decisions');
console.log(digest.data);

// Delete a memory
await client.forget('mem_abc123');

Authentication

Pass the API key directly or via the MEMNEXUS_API_KEY environment variable:

// Direct
const client = new MemNexus({ apiKey: 'your-api-key' });

// Environment variable
process.env.MEMNEXUS_API_KEY = 'your-api-key';
const client = new MemNexus();

Services

The client exposes a service for each API resource group:

const client = new MemNexus({ apiKey: 'your-api-key' });

// User management and profile endpoints
client.users

// Topic detection, clustering, and management endpoints
client.topics

// System health, monitoring, and configuration endpoints
client.system

// Pattern detection and behavioral analysis endpoints
client.patterns

// Behavioral pattern tracking and state management endpoints
client.behavior

// Behavioral recommendation management endpoints (v2)
client.recommendations

// Narrative thread management endpoints
client.narratives

// Observability and metrics endpoints for production monitoring
client.monitoring

// Memory management and retrieval endpoints
client.memories

// Invite code validation and gate status endpoints
client.invites

// Health check endpoints
client.health

// Graph-based retrieval augmented generation endpoints
client.graphrag

// Fact extraction and management endpoints
client.facts

// Entity extraction and discovery endpoints
client.entities

// Conversation tracking and analysis endpoints
client.conversations

// Subscription billing and payment management endpoints
client.billing

// Artifact storage and retrieval endpoints
client.artifacts

// API key management endpoints
client.apiKeys

// System alerts banner endpoints (customer portal)
client.alerts

// Admin management endpoints for invite codes and platform configuration
client.admin

// Admin endpoints for managing system alerts
client.adminAlerts

// Admin Pipeline
client.adminPipeline

Error Handling

import { MemNexus, SdkError } from '@memnexus-ai/sdk';

const client = new MemNexus({ apiKey: 'your-api-key' });

try {
  await client.remember('my memory');
} catch (err) {
  if (err instanceof SdkError) {
    console.error(`API error ${err.status}: ${err.statusText}`);
    console.error('Response body:', err.data);
  }
}

Configuration

const client = new MemNexus({
  apiKey: 'your-api-key',
  baseUrl: 'https://api.memnexus.ai',  // default
  timeoutMs: 30_000,         // default: 30 seconds
});

Retry Behaviour

The client automatically retries failed requests with exponential backoff:

  • Max attempts: 5
  • Base delay: 500 ms
  • Max delay: 10 000 ms
  • Backoff factor:
  • Retried status codes: 408, 429, 500, 502, 503, 504

License

Proprietary — Copyright © MemNexus Team