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

opencode-agentmemory-launcher

v1.1.0

Published

OpenCode plugin that auto-starts the agentmemory backend with health-check supervision

Readme

Agentmemory Launcher for OpenCode

OpenCode plugin that auto-starts the agentmemory backend with health-check supervision.

npm version License Node.js CI

Requirements

  • Node.js ≥ 18.0.0
  • OpenCode with plugin support
  • agentmemory backend (auto-installed via npx @agentmemory/agentmemory if not present)

Note: This plugin has only been tested on Windows 11. If you need support for other platforms, pull requests are welcome.

What It Does

This plugin automatically starts the agentmemory backend (REST API + iii-engine) when OpenCode loads its configuration. It runs once per OpenCode process and health-checks the backend every 60 seconds, restarting it if the process dies.

Installation

From npm (recommended)

Add to your OpenCode config:

// opencode.json
{
  "plugin": ["opencode-agentmemory-launcher@latest"]
}

OpenCode will automatically install the package at startup. See the OpenCode Plugins documentation for more details.

From local file

Place the plugin file in .opencode/plugins/:

.opencode/plugins/
└── agentmemory-launcher.ts

Files in this directory are automatically loaded at startup.

Manual Installation (from GitHub Releases)

  1. Download agentmemory-launcher.ts from the latest GitHub Release
  2. Place it in .opencode/plugins/:
.opencode/plugins/
└── agentmemory-launcher.ts

OpenCode loads .ts files from .opencode/plugins/ automatically at startup.

Usage

This launcher starts the agentmemory backend. To use agentmemory with OpenCode, also install the agentmemory plugin and refer to the OpenCode agentmemory plugin usage guide for setup instructions, available tools, and configuration options.

Updating

To update agentmemory to the latest version:

npx @agentmemory/agentmemory upgrade

After updating, stop the running agentmemory process and clear the npx cache:

Windows (PowerShell):

# Stop the agentmemory process
Get-Process -Name "node" | Where-Object {
    (Get-CimInstance Win32_Process -Filter "ProcessId = $($_.Id)").CommandLine -match 'agentmemory'
} | Stop-Process -Force

# Clear the npx cache
Get-ChildItem "$env:LOCALAPPDATA\npm-cache\_npx" -Directory | Where-Object {
    Test-Path "$($_.FullName)\node_modules\@agentmemory"
} | Remove-Item -Recurse -Force

Restart OpenCode to relaunch agentmemory with the updated version.

How It Works

  1. On first config load: The plugin starts a health-check interval (60s)
  2. Health check: Pings GET /agentmemory/livez on the backend (public, no auth)
  3. Auto-restart: If the health check fails, spawns npx @agentmemory/agentmemory in a detached process
  4. Debug mode: Set OPENCODE_AGENTMEMORY_DEBUG=1 for verbose logging

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | AGENTMEMORY_URL | http://localhost:3111 | Backend API URL | | OPENCODE_AGENTMEMORY_DEBUG | unset | Set to 1 for debug logging |

API

The plugin exports a single object conforming to the @opencode-ai/plugin interface:

import type { Plugin } from "@opencode-ai/plugin";

export const AgentmemoryLauncherPlugin: Plugin;

This plugin implements the config lifecycle hook, which is called each time OpenCode loads its configuration.

Development

# Install dependencies
npm install

# Type-check
npm run typecheck

# Build
npm run build

# Run tests
npm test

Community

License

GNU Affero General Public License v3.0

Copyright

Copyright (C) 2026 Cle2ment.