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

openclaw-mengram

v2.0.0

Published

Mengram memory backend for OpenClaw — semantic, episodic & procedural memory with self-improving procedures and Graph RAG

Readme

Mengram — OpenClaw Memory Plugin

Human-like long-term memory for your OpenClaw agent. Three memory types that work together, with automatic recall and capture on every turn.

What It Does

| Without Mengram | With Mengram | |---|---| | "Which restaurant?" | "Booking Kaganat at 7pm for 2. Vegan menu for Anya?" | | New session = blank slate | Knows your preferences, history, workflows | | Same as day 1 after 100 chats | Deep understanding of who you are |

Memory types:

  • Semantic — facts: preferences, relationships, habits
  • Episodic — events with timestamps and outcomes
  • Procedural — learned workflows that self-improve from failures
  • Graph RAG — 2-hop knowledge graph traversal connects related memories

Auto-recall: Before every agent turn, relevant memories are injected into context. No manual tool calls needed.

Auto-capture: After every turn, new information is automatically extracted and stored. Nothing is lost.

Install

openclaw plugins install openclaw-mengram

Setup

  1. Get a free API key at mengram.io

  2. Add to ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "openclaw-mengram": {
        "enabled": true,
        "config": {
          "apiKey": "${MENGRAM_API_KEY}"
        }
      }
    },
    "slots": {
      "memory": "openclaw-mengram"
    }
  }
}
  1. Set your API key:
export MENGRAM_API_KEY="om-your-key-here"
  1. Restart OpenClaw. Memory works automatically.

Configuration

| Option | Default | Description | |---|---|---| | apiKey | $MENGRAM_API_KEY | API key from mengram.io | | baseUrl | https://mengram.io | Custom URL for self-hosted | | autoRecall | true | Inject memories before each turn | | autoCapture | true | Store memories after each turn | | topK | 5 | Max results per search | | graphDepth | 2 | Knowledge graph hops (0=off, 1, 2) | | injectProfile | false | Include cognitive profile periodically | | profileFrequency | 25 | Profile injection every N turns | | maxFactsPerEntity | 5 | Max facts shown per entity in context | | maxRelationsPerEntity | 5 | Max relationships shown per entity | | maxEpisodes | 5 | Max episodic memories in context | | maxProcedures | 3 | Max procedures in context | | maxStepsPerProcedure | 8 | Max steps shown per procedure | | captureMessageCount | 10 | Messages to capture after each turn | | requestTimeout | 15000 | HTTP timeout in milliseconds | | debug | false | Verbose logging |

Tools

The agent can also use these tools explicitly:

| Tool | Purpose | |---|---| | memory_search | Search all 3 memory types | | memory_store | Save text to memory | | memory_forget | Delete a memory entity | | memory_profile | Get cognitive profile | | memory_procedures | List learned workflows | | memory_feedback | Record workflow success/failure (triggers evolution) |

Slash Commands

| Command | Action | |---|---| | /remember <text> | Save to memory | | /recall <query> | Search memory | | /forget <entity> | Delete from memory |

CLI

openclaw mengram search "coffee preferences"
openclaw mengram stats
openclaw mengram profile
openclaw mengram procedures

Experience-Driven Procedures

Workflows learn from experience:

Day 1: Agent figures out deploy steps manually
Day 2: Agent finds the saved workflow, follows it (v1)
Day 3: Deploy fails — agent reports failure with context
Day 4: Procedure auto-evolved to v2 with fixed steps

Record outcomes with memory_feedback. On failure with context, the procedure automatically evolves.

vs mem0

| Feature | mem0 | Mengram | |---|---|---| | Memory types | 1 (flat facts) | 3 (semantic + episodic + procedural) | | Knowledge graph | Optional | Built-in Graph RAG (2-hop) | | Self-improving workflows | No | Yes (auto-evolution) | | Cognitive profile | No | Yes | | Price | $99/mo+ | Free (open-source) |

Links

License

Apache-2.0