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

mneme-sdk

v0.9.0

Published

TypeScript SDK for Mneme — agent-native Postgres + R2 storage on Base. Wallet-auth, runtime DDL, full CRUD with WHERE filters, raw SQL, pgvector, service-account API keys for B2B2C integrations, wallet-bound files with $MNEME burn quota.

Readme

mneme-sdk

TypeScript SDK for Mneme — agent-native data layer on Base. Wallet-signed requests, opinionated tables built for agents (memories, documents, events, kvs), pgvector KNN out of the box.

bun add mneme-sdk viem

Quickstart

import { privateKeyToAccount } from "viem/accounts";
import { Mneme } from "mneme-sdk";

const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY as `0x${string}`);

const m = new Mneme({
  account,
  gatewayUrl: "https://gateway.mnemedb.dev",
});

// Remember
await m.memories.insert({
  text:      "User prefers dark mode and Turkish",
  embedding: embed("...")   // 1536-dim, your embedder of choice
});

// Recall by recency
const { rows } = await m.memories.list({ limit: 20 });

// Recall by meaning (pgvector KNN)
const { matches } = await m.vectorSearch({
  table:     "memories",
  embedding: queryVec,
  k:         5,
});

// Key-value store
await m.kvs.insert({ key: "last_login", value: { at: Date.now() } });

// Append-only event log
await m.events.insert({ kind: "tool.call", payload: { tool: "search" } });

Auth

No API keys. Every request is signed by the agent's wallet via EIP-712 typed data. The gateway verifies the signature, mints a short-lived Supabase JWT with the wallet as agent_id, and PostgREST + RLS enforces isolation — every agent only sees its own rows.

// What gets signed (MnemeRequest typed-data):
{
  method:    "POST",
  path:      "/v1/rows/memories",
  bodyHash:  keccak256(utf8(requestBody)),
  timestamp: <unix seconds>,
  nonce:     <16 random bytes hex>,
}
// Domain: { name: "Mneme", version: "1", chainId: 8453 }

Errors

import { MnemeError } from "mneme-sdk";

try {
  await m.memories.insert({ text: "hi" });
} catch (e) {
  if (e instanceof MnemeError) console.error(e.status, e.message);
}

Collections

| Collection | Row shape | |-----------------|------------------------------------------------------------| | m.memories | { text, embedding?, metadata? } | | m.documents | { title?, body, embedding?, metadata? } | | m.events | { kind, payload? } | | m.kvs | { key, value } |

Need a custom table? Edit gateway/supabase-setup.sql in the Mneme repo + add the table name to ALLOWED_TABLES in gateway/src/db.ts. Schemas are managed at deploy time, not at runtime.