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

memoir-mcp

v1.0.4

Published

MCP server for structured session journals — gives AI agents persistent memory across sessions

Downloads

573

Readme

memoir-mcp

Structured session journals for AI agents. Persistent memory across sessions -- no more repeating dead ends.

When a session ends, all reasoning is lost -- what was tried, what failed, what's blocked. The next session starts from scratch and repeats the same mistakes. memoir logs it all and hands it off so the next session picks up where the last one left off.

Works with any MCP client: Claude Code, Cursor, Codex, Windsurf, and more.

Install

Claude Code

claude mcp add memoir -s user -- npx -y memoir-mcp

Other MCP clients

npx -y memoir-mcp

How it works

  • Automatic project detection -- identifies the project by its git root, so logs stay scoped without any configuration.
  • Implicit sessions -- a session is created automatically on first log. No setup step.
  • Rolling retention -- keeps the last 20 sessions per project (configurable). Old sessions are pruned automatically.

Tools

Write

| Tool | Description | |------|-------------| | log_attempt | Record something that was tried and its outcome. | | log_blocker | Flag something that's stuck and why. | | resolve_blocker | Mark a blocker as resolved with what fixed it. | | log_decision | Record a design or architecture choice and its rationale. | | end_session | Close the current session with an optional summary. |

Read

| Tool | Description | |------|-------------| | get_handoff | Structured summary of the last session -- what was attempted, what's blocked, what was decided. | | get_history | Query past sessions (default: last 3, max 20). | | get_blockers | List unresolved (or resolved) blockers across all sessions. |

Storage

Single SQLite file at ~/.memoir/memoir.db. No API keys, no external services.

Configuration

All limits are configurable via environment variables:

| Variable | Default | Description | |----------|---------|-------------| | MEMOIR_MAX_CONTENT | 500 | Max characters for content fields | | MEMOIR_MAX_OUTCOME | 300 | Max characters for outcome/resolution fields | | MEMOIR_MAX_ENTRIES | 50 | Max entries per session | | MEMOIR_MAX_SESSIONS | 20 | Max sessions per project (rolling) |

Example with custom limits:

claude mcp add memoir -s user -e MEMOIR_MAX_CONTENT=1000 -e MEMOIR_MAX_ENTRIES=100 -- npx -y memoir-mcp

Handoff output uses a compact format to keep context window usage low.

License

MIT