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

@agent-mc/plugin-sdk

v1.0.4

Published

SDK for building Agent Mission Control plugins

Readme

@agent-mc/plugin-sdk

TypeScript types, interfaces, and validators for building Agent Mission Control plugins

npm TypeScript License: MIT


Overview

This package provides the type definitions and manifest validators for Agent Mission Control (AMC) plugins. It is a dev dependency for plugin projects — it supplies TypeScript interfaces for the sandboxed PluginContext your backend code receives, the AgentMC browser bridge your UI code uses, and a Zod-powered manifest validator for build-time checks.

Install

npm install @agent-mc/plugin-sdk --save-dev

Usage

Backend types

import type { PluginActivate, PluginContext } from '@agent-mc/plugin-sdk'

const activate: PluginActivate = (ctx) => {
  return {
    async onEnable() {
      const data = await ctx.storage.get('config')
      ctx.log.info('Plugin enabled', data)
    },
    async onShutdown() {
      ctx.log.info('Goodbye')
    },
  }
}

export default activate

Browser bridge types

import type { AgentMC } from '@agent-mc/plugin-sdk/browser'

declare global {
  interface Window { AgentMC: AgentMC }
}

const settings = await window.AgentMC.settings.getAll()

Manifest validation

import { validateManifest } from '@agent-mc/plugin-sdk/validators'

const result = validateManifest(manifest)
if (!result.valid) {
  console.error(result.errors)
}

PluginContext API

Every backend plugin receives a PluginContext with these sandboxed capabilities:

| Capability | Interface | Permission | Description | |---|---|---|---| | storage | PluginStorage | storage | Key-value store (get, set, delete, list) | | db | PluginDb | storage | SQLite collections (insert, query, getById, update, delete) | | fs | PluginFs | storage | Sandboxed filesystem (readFile, writeFile, exists, listDir) | | sessions | PluginSessions | sessions | Create and manage Claude Code sessions | | ai | PluginAi | ai | Direct AI text generation (generateMessage, generateTitle) | | http | PluginHttp | network | Outbound HTTP requests (fetch) | | cron | PluginCron | cron | Scheduled recurring tasks | | cli | PluginCli | cli | HTTP endpoints on AMC's control server | | toast | PluginToast | notifications* | In-app toasts and OS notifications | | sidebar | PluginSidebar | — | Badge count and navigation items | | settings | PluginSettings | — | Read plugin settings (getAll, get) | | log | PluginLogger | — | Scoped logging (info, warn, error, debug) | | events | PluginEvents | — | Pub/sub event system (emit, on) |

* toast.show() is always available; only toast.notify() (OS-level) requires the notifications permission.

Permissions

Declare in manifest.json — AMC shows these at install and enforces at runtime:

{
  "permissions": ["storage", "network", "ai"]
}

| Permission | Grants | |---|---| | storage | ctx.storage, ctx.db, ctx.fs | | sessions | ctx.sessions | | ai | ctx.ai | | network | ctx.http | | cron | ctx.cron | | cli | ctx.cli | | notifications | ctx.toast.notify() | | rss | Access to AMC's built-in RSS feed data |

Exports

This package provides three entry points:

| Import path | What it provides | |---|---| | @agent-mc/plugin-sdk | All TypeScript types + validateManifest() + manifestSchema | | @agent-mc/plugin-sdk/browser | AgentMC browser bridge type for UI plugins | | @agent-mc/plugin-sdk/validators | Zod manifest schema and validation function |

Backend Lifecycle

interface PluginBackend {
  onEnable?(): Promise<void> | void
  onDisable?(): Promise<void> | void
  onSettingsChanged?(settings: Record<string, unknown>): Promise<void> | void
  onAppReady?(): Promise<void> | void
  onShutdown?(): Promise<void> | void
}

Documentation

Full guides, API reference, and examples: AMC Plugin SDK Docs

License

MIT