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

agentmem

v2.4.0

Published

Memory API for AI agents. Writes are free, pay only for reads. No setup needed.

Readme

agentmem

Simple memory API for AI agents. Store, retrieve, delete. Pay with USDC or Stripe.

npm install agentmem

Quick Start

const { AgentMem } = require('agentmem');

// Get your API key at https://agentmem.io
const mem = new AgentMem('am_live_xxxxx');

// Store
await mem.put('user:preferences', { theme: 'dark', language: 'en' });

// Retrieve
const prefs = await mem.get('user:preferences');
console.log(prefs); // { theme: 'dark', language: 'en' }

// Delete
await mem.delete('user:preferences');

Try Without Signing Up

const { AgentMem } = require('agentmem');

// 25 free API calls, no signup required
const mem = new AgentMem(AgentMem.DEMO_KEY);

await mem.put('test', { hello: 'world' });
const data = await mem.get('test');

API

new AgentMem(apiKey, options?)

Create a client.

  • apiKey - Your API key from agentmem.io
  • options.baseUrl - Override API URL (default: https://api.agentmem.io)

mem.put(key, value)

Store a value.

await mem.put('user:session', { lastSeen: Date.now() });

mem.get(key)

Retrieve a value.

const session = await mem.get('user:session');

mem.delete(key)

Delete a value.

await mem.delete('user:session');

mem.bootstrap()

Get all context on startup. Call this when your agent wakes up.

const context = await mem.bootstrap();
console.log(context.memories); // Array of { key, size, updated }

mem.keys(options?)

List all keys.

const { keys } = await mem.keys({ prefix: 'user:', limit: 100 });

mem.export()

Export all memories as JSON.

const backup = await mem.export();
fs.writeFileSync('backup.json', JSON.stringify(backup));

mem.bulkDelete(prefix)

Delete multiple keys by prefix.

await mem.bulkDelete('temp:'); // Delete all temp:* keys
await mem.bulkDelete('*');     // Delete everything

mem.status()

Check account status.

const status = await mem.status();
console.log(status.storage.used_pct); // Storage usage percentage

Error Handling

try {
  await mem.get('nonexistent');
} catch (err) {
  console.log(err.status);  // 404
  console.log(err.code);    // 'not_found'
  console.log(err.hint);    // 'Use PUT /v1/memory/:key to create...'
  console.log(err.docs);    // 'https://agentmem.io/#how-it-works'
}

Pricing

  • Free tier: 10,000 keys, 1,000 API calls/month
  • Pro: $5/month, 1M keys, 100K calls
  • Pay-per-use: $0.0002/write, $0.0001/read (USDC on Base)

Get your API key at agentmem.io.

Links

License

MIT