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

@mem0/opencode-plugin

v0.1.1

Published

Mem0 persistent memory plugin for OpenCode — add, search, and manage memories across sessions

Readme

@mem0/opencode-plugin

Persistent memory for OpenCode. Your agent remembers decisions, preferences, and learnings across sessions automatically.

Install

bunx @mem0/opencode-plugin@latest install

Or using OpenCode's built-in CLI:

opencode plugin @mem0/opencode-plugin

Or let your agent do it — paste this into OpenCode:

Install @mem0/opencode-plugin by following https://raw.githubusercontent.com/mem0ai/mem0/main/mem0-plugin/.opencode-plugin/README.md

All commands auto-add the plugin and MCP server to your ~/.config/opencode/opencode.json. No manual config needed.

Get your API key (free): app.mem0.ai/dashboard/api-keys

echo 'export MEM0_API_KEY="m0-your-key"' >> ~/.zshrc && source ~/.zshrc

Restart OpenCode.

What's included

| Component | Description | |-----------|-------------| | MCP Server | 9 memory tools — add, search, get, update, delete memories | | Lifecycle Hooks | Auto-search on session start and every prompt, metadata enforcement, error memory lookup, compaction context | | 16 Slash Commands | /mem0:remember, /mem0:tour, /mem0:stats, /mem0:health, /mem0:dream, and more |

Hooks

Pure TypeScript — no Python, no shell scripts. Uses the mem0ai SDK directly.

| Hook | Event | What it does | |------|-------|-------------| | Chat message | chat.message | Loads prior memories on session start, searches relevant memories before each prompt, auto-captures learnings periodically | | Pre-tool | tool.execute.before | Blocks MEMORY.md writes, enforces user_id/app_id on mem0 tools | | Post-tool | tool.execute.after | Tracks stats, scans bash errors for related memories | | System transform | experimental.chat.system.transform | Injects memory context (session memories, search results, error lookups) into system prompt | | Compaction | experimental.session.compacting | Stores session state memory, then injects prior memories into compaction context so nothing is lost | | Shell env | shell.env | Exports MEM0_USER_ID, MEM0_APP_ID, MEM0_SESSION_ID, and MEM0_BRANCH to shell |

MCP Tools

| Tool | Description | |------|-------------| | add_memory | Save text or conversation history | | search_memories | Semantic search across memories | | get_memories | List memories with filters and pagination | | get_memory | Retrieve a specific memory by ID | | update_memory | Overwrite a memory's text by ID | | delete_memory | Delete a single memory by ID | | delete_all_memories | Bulk delete all memories in scope | | delete_entities | Delete an entity and its memories | | list_entities | List users/agents/apps stored in Mem0 |

Verify

Start OpenCode and ask: "Search my memories for recent decisions"

If the mem0 tools respond, you're all set.

Troubleshooting

| Problem | Fix | |---------|-----| | No tools appearing | Restart OpenCode after installing | | 401 Unauthorized | echo $MEM0_API_KEY must print your m0- key | | Plugin not loading | Run opencode plugin @mem0/opencode-plugin again |

License

Apache-2.0