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

@withone/mem

v0.1.0

Published

Memory for AI agents. Simple, fast, works anywhere.

Readme

Mem

Memory for AI agents. Simple, fast, works anywhere.

https://mem.now

Quick Start

npm install @withone/mem
mem init

The init wizard will:

  1. Configure your Supabase connection
  2. Apply the database schema
  3. Create CLAUDE.md with instructions
  4. Install skills for Claude Code

Usage

# Add memories
mem add note '{"content": "Meeting notes from today"}'
mem add decision '{"topic": "API Design", "content": "Using REST because...", "weight": 9}'
mem add preference '{"content": "Prefers TypeScript", "weight": 8}'

# Search (semantic + keyword)
mem search "API design"
mem search "meeting" -t note

# Get context at session start
mem context
mem context -n 10 -t decision,preference

# Manage relevance
mem weight <id> 9      # Set importance (1-10)
mem archive <id>       # Exclude from context
mem flush <id>         # Reset access count

# Link memories
mem link <id1> related_to <id2> --bi    # Bidirectional
mem link <new> supersedes <old>          # Directional

How It Works

Two tables:

  • mem_records - All memories (flexible JSON)
  • mem_links - Relationships between memories

Relevance scoring:

  • Weight (40%) - Explicit importance you set
  • Access (30%) - How often it's retrieved
  • Recency (30%) - When it was last accessed

High-weight items always surface. Frequently used items rise. Old unused items fade.

Hybrid search:

  • Semantic similarity (70%) - Finds conceptually related content
  • Keyword matching (30%) - Finds exact terms

Requirements

  • Node.js 18+
  • Supabase project (free tier works)
  • OpenAI API key (optional, for semantic search)

TypeScript API

import { add, search, context, link } from '@withone/mem';

// Add a memory
const record = await add('decision', {
  topic: 'Database',
  content: 'Using Supabase because...',
}, { weight: 9 });

// Search
const results = await search('database decision');

// Get startup context
const relevant = await context({ limit: 20 });

// Link memories
await link(id1, id2, 'related_to', { bidirectional: true });

License

MIT