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

@cortexmem/cortex-bridge

v0.5.0

Published

Bridge plugin that connects [OpenClaw](https://github.com/openclaw) agents to [Cortex](https://github.com/rikouu/cortex) memory service.

Downloads

856

Readme

@cortexmem/cortex-bridge

Bridge plugin that connects OpenClaw agents to Cortex memory service.

Uses OpenClaw's standard register(api) plugin interface.

Install

openclaw plugins install @cortexmem/cortex-bridge

Configure

Plugin config via OpenClaw settings or environment variables:

| Config Key | Env Variable | Default | Description | |------------|-------------|---------|-------------| | cortexUrl | CORTEX_URL | http://localhost:21100 | Cortex server URL | | agentId | — | openclaw | Agent identifier for memory isolation | | debug | CORTEX_DEBUG | false | Enable debug logging |

Tools

These tools are always available and work reliably:

| Tool | Description | |------|-------------| | cortex_recall | Search long-term memory for relevant past conversations, facts, and preferences | | cortex_remember | Store a fact, preference, or decision (supports category: fact, preference, skill, identity, etc.) | | cortex_ingest | Send a conversation pair for automatic LLM memory extraction | | cortex_health | Check if the Cortex memory server is reachable (optional) |

Slash Command

  • /cortex-status — Quick check if Cortex server is online

Hooks

The plugin registers lifecycle hooks for automatic memory management:

| Hook | Status | Description | |------|--------|-------------| | before_agent_start | Working | Recalls relevant memories and injects as context before each response | | agent_end | Not working | Should auto-ingest conversations after each response (see Known Issues) | | before_compaction | Best-effort | Emergency flush before context compression |

Known Issues

agent_end hook not firing in streaming mode

Status: Upstream bug — openclaw/openclaw#21863

In streaming mode (used by Telegram and other gateway channels), the agent_end hook is not dispatched to plugins. The handleAgentEnd() function in OpenClaw's streaming event handler does not call hookRunner.runAgentEnd().

This means automatic conversation ingestion does not work in streaming mode. Memory recall (before_agent_start) works correctly.

Workarounds:

  1. Use cortex_ingest tool — Instruct your Agent (via system prompt) to call cortex_ingest after meaningful conversations. Example system prompt addition:

    After each conversation, use the cortex_ingest tool to save the exchange
    for long-term memory. Pass the user's message and your response.
  2. Use non-streaming mode — If your setup supports it, use a non-streaming channel where agent_end fires correctly.

  3. Use cortex_remember tool — For specific facts or preferences, the Agent can call cortex_remember directly during conversation.

License

MIT