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

linkmind-context

v1.0.1

Published

LinkMind Context Engine Plugin for OpenClaw

Readme

LinkMind Context Engine Plugin for OpenClaw

linkmind-context is a native OpenClaw plugin that registers a custom context engine via api.registerContextEngine(id, factory). It compacts long conversation history by sending the current session messages to the LinkMind API and can be selected through plugins.slots.contextEngine.

Repository: landingbj/linkmind-context

Features

  • Registers a native OpenClaw context engine named linkmind-context
  • Triggers compaction when the accumulated context exceeds a configurable threshold
  • Calls POST /openclaw/compress on the LinkMind service
  • Supports optional bearer-token authentication
  • Keeps the plugin configuration validated through openclaw.plugin.json

Project Layout

linkmind-context/
|- src/
|  |- index.ts
|  `- types.ts
|- openclaw.plugin.json
|- package.json
|- tsconfig.json
`- README.md

Requirements

  • Node.js 22 or newer
  • OpenClaw with plugin support enabled
  • A reachable LinkMind service endpoint

Install for Local Development

npm install
npm run build
openclaw plugins install .

After installing, restart the OpenClaw gateway so the plugin can be discovered and loaded.

Install from a Published Package

Once the package is published, users can install it with:

openclaw plugins install linkmind-context

OpenClaw checks ClawHub first and falls back to npm automatically.

OpenClaw Configuration

Configure the plugin in your OpenClaw config file and select it as the active context engine:

{
  "plugins": {
    "slots": {
      "contextEngine": "linkmind-context"
    },
    "entries": {
      "linkmind-context": {
        "enabled": true,
        "config": {
          "apiUrl": "http://localhost:8080/v1",
          "apiKey": "",
          "compressionThreshold": 1000,
          "debug": false
        }
      }
    }
  }
}

Configuration Reference

| Field | Type | Default | Description | | --- | --- | --- | --- | | apiUrl | string | https://api.linkmind.dev/v1 | Base URL of the LinkMind service | | apiKey | string | "" | Optional bearer token | | compressionThreshold | number | 1000 | Compaction trigger threshold in characters | | debug | boolean | false | Enables verbose gateway logs |

LinkMind API Contract

The plugin calls this endpoint:

POST /v1/openclaw/compress
Content-Type: application/json
Authorization: Bearer <token>

Example request body:

{
  "sessionId": "session-123",
  "messages": [],
  "tokenBudget": 128000,
  "currentTokenCount": 2048
}

Expected response shape:

{
  "status": "success",
  "messages": [],
  "tokensBefore": 2048,
  "tokensAfter": 768
}

If status is not success, the plugin treats the response as a compaction failure and keeps the original context.

Publish Checklist

  • package.json includes openclaw.extensions
  • openclaw.plugin.json exists at the package root
  • The published tarball includes dist/, README.md, and openclaw.plugin.json
  • Source code is hosted publicly on GitHub
  • This README documents installation and configuration

Development Notes

  • Build output is emitted to dist/
  • npm pack and npm publish will run npm run build first through prepack
  • For a production release, publish the package, then submit it to the OpenClaw community plugin list with the package name, repository URL, description, and install command

License

ISC