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

fsrs-memory

v1.0.1

Published

Local-first AI long-term memory with FSRS scheduling, git-backed snapshots, and semantic diffing for efficient context management.

Readme

fsrs-memory

fsrs-memory

npm version License: MIT Build Status

A compact, local-first AI long-term memory manager using FSRS scheduling and a Model Context Protocol (MCP) toolset.

Purpose: store, recall, review, and manage developer or application memories with scheduled reviews, soft-delete/purge, git-backed snapshots, and optional Anthropic summarization.

Visual Architecture

flowchart LR
	A[AI Agent] --> B[MCP Server]
	B --> C[FSRS Engine]
	C --> D[Local Git Vault]
	B --> E[CLI / Tools]
	style D fill:#f9f,stroke:#333,stroke-width:1px

Why FSRS?

FSRS (forgetting-space repetition scheduling) surfaces only what the system is likely to forget. By filtering to items where the retrievability $R < 0.85$, the AI agent receives concise, high-priority context — saving API token costs and reducing noisy context windows.

Key features

  • FSRS-based review scheduling (ts-fsrs)
  • Fuzzy duplicate detection and dependency tracking
  • Soft-delete / restore / purge workflow
  • Bulk operations for reviews and deletes
  • Git-backed automatic backups and restore/preview/diff tools ("Git-backed Time Machine")
  • Semantic diffing between snapshots
  • Summarization via Anthropic (env-only API key)

Requirements

  • Node.js 18+ (or compatible LTS)
  • Git (for backup/snapshot features)

Install

Install dependencies:

npm install

Environment

  • ANTHROPIC_API_KEY — optional. Required only for the summarize tool.

Data directory

By default the app stores data under your home directory in .fsrs-memory (for example ~/.fsrs-memory). This contains memories.json, session logs, and the embedded git repository used for snapshots.

Quick Copy-Paste: mcp_config.json

Use this simple MCP config snippet to register the toolset with an agent runtime:

{
	"name": "fsrs-memory",
	"tools": ["remember","recall","recall_all","search","reviewed","forget","list","summarize","backup_history","backup_restore","backup_diff"]
}

CLI – copy-paste commands

Show dashboard status:

node src/index.js status

List recent git-backed backups:

node src/index.js backup

Soft-delete a memory (CLI wrapper):

node src/index.js forget <memory-id> [--force]

Export project memories to markdown:

node src/index.js export --project my-project

Project Isolation

fsrs-memory supports multiple isolated projects inside a single vault. Each memory is tagged with a project field so different applications (for example, kooOKIE and Mingle) can coexist without leaking context. Tools accept a project argument to scope operations and the engine only surfaces records within the requested project by default.

Tools (MCP)

This project exposes several tools via the Model Context Protocol server. Notable tool names:

  • remember — save a fact to long-term memory (requires project)
  • recall, recall_all — surface fading memories
  • search — keyword search within a project
  • reviewed, bulk_reviewed — apply review ratings
  • forget, bulk_forget, restore, purge — delete/restore/purge memories
  • summarize — project summary using Anthropic
  • export — export a project's memories to markdown
  • backup_history, backup_restore, backup_diff — git-backed snapshot tools

See the tool definitions in src/index.js.

Backup & Git snapshots

If git is available, the storage layer initializes a local git repo inside the data directory and commits on saves. Use the backup_history, backup_restore, and backup_diff tools to inspect or restore historical snapshots.

Testing

Run unit tests with Jest:

npm test

Development notes

Contributing

See CONTRIBUTING.md for contribution guidelines.

License

This project is released under the MIT License — see LICENSE.