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

@johngalt017/memory-layer

v1.0.0

Published

MCP server for persistent AI memory management with leveled context (L0/L1/L2)

Readme

memory-layer

MCP server for persistent AI memory management across projects. Built on top of the Memory Bank concept with leveled context to reduce token consumption.

Why

When working with large memory banks (50+ files), reading everything at full content is expensive. This server adds L0/L1/L2 context levels so the AI can quickly scan abstracts before deciding what to read in full.

memory_bank_overview   → L0 abstracts for all files (~100 tokens each)
memory_bank_read L1    → frontmatter + first section (~500 tokens)
memory_bank_read L2    → full content (default)

Tools

| Tool | Description | |------|-------------| | memory_bank_overview | L0 abstracts for all files in a project or all projects. Call this first. | | memory_bank_query | Filter files by type, status, tags, updatedAfter | | memory_bank_read | Read a file with optional level param (L0/L1/L2) | | memory_bank_write | Create a new file | | memory_bank_update | Update an existing file | | memory_bank_upsert | Create or update (idempotent) | | memory_bank_append | Append content to a file | | memory_bank_search | Full-text search across all files in a project | | list_projects | List all projects | | list_project_files | List files in a project |

Frontmatter

Files support YAML frontmatter for metadata. Abstract is auto-injected on write if missing.

---
type: architecture
status: active
abstract: "One-line description (~100 tokens)"
tags: [rust, polyalgo]
updated: 2026-03-16
---

# File Title

Content starts here...

type: architecture | progress | decisions | reference | notes status: active | archived | draft

Installation

Claude Code

Add to ~/.claude.json:

"memory-layer": {
  "type": "stdio",
  "command": "npx",
  "args": ["-y", "github:JohnGalt017/memory-layer"],
  "env": {
    "MEMORY_BANK_ROOT": "/path/to/your/memory-bank"
  },
  "autoApprove": [
    "memory_bank_read",
    "memory_bank_overview",
    "list_projects",
    "list_project_files"
  ]
}

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

"memory-layer": {
  "command": "npx",
  "args": ["-y", "github:JohnGalt017/memory-layer"],
  "env": {
    "MEMORY_BANK_ROOT": "/path/to/your/memory-bank"
  }
}

Cline / Roo Code / Cursor

Same config, placed in the corresponding MCP settings file for your client.

Local build

git clone https://github.com/JohnGalt017/memory-layer.git
cd memory-layer
npm install
npm run build

Then point command to node and args to dist/main/index.js.

Migrate existing files

If you have existing memory bank files without abstract frontmatter:

npx tsx scripts/migrate-abstracts.ts

Reads MEMORY_BANK_ROOT env var. Skips files that already have abstract.

Development

npm install       # install deps
npm run build     # compile TypeScript
npm test          # run tests (159 tests)
npm run test:watch

Credits

Forked from alioshr/memory-bank-mcp by Aliosh Pimenta. This project adds leveled context (L0/L1/L2), frontmatter support, and new tools built on top of the original foundation.

License

MIT