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

@hivekeep/sdk

v0.10.0

Published

Plugin SDK for Hivekeep — declare tools, channels, providers, and hooks without depending on Hivekeep internals.

Readme

@hivekeep/sdk

Plugin SDK for Hivekeep. One package, every extension point.

bun add @hivekeep/sdk
# or
npm i @hivekeep/sdk

Hivekeep's plugin loader resolves this package against the host install — declare it as a peer dep in your plugin's package.json so the host version is the one your code links against at runtime.

What's in here

| Surface | What you get | |---|---| | Tools | tool() helper with INPUT inferred from a zod inputSchema, plus z re-exported. | | Channels | ChannelAdapter, IncomingMessage, OutboundMessageParams, etc. — full adapter contract. | | Providers | LLMProvider, EmbeddingProvider, ImageProvider, SearchProvider — the same native interfaces Hivekeep's built-in Anthropic / OpenAI / Brave / Tavily providers implement. Streaming chat() yielding ChatChunks, prompt caching, thinking effort, tool use, per-provider tunables (defaultMaxTools, billing). Image providers can implement describeModel() to surface per-model parameters (seed, guidance, LoRA scale, …) to the LLM via the describe_image_model tool; ImageRequest carries plural imageInputs for multi-reference models (Nano Banana Pro, Flux-Kontext multi) and a free-form params map for the tunables. Search providers declare static SearchCapabilities (supportsAnswer, supportsFreshness, supportsDomainFilter, supportsLanguage, supportsLocation) so the host can warn the LLM when a request asks for something the provider doesn't expose; SearchRequest.extra is a free-form passthrough for provider-specific quirks (Perplexity search_recency_filter, Tavily include_raw_content, …) that the standard schema doesn't model. | | Hooks | HookPayloadMap discriminated union → each hook handler gets the typed payload for its hook name. | | Cards | PluginCardPrimitive (header / info-grid / status-banner / progress / collapsible / log-stream / action-row / markdown / spinner / badge / divider) + card.* builders. | | Plugin context | PluginContext<Config> generic with log, storage, http (permission-enforced), vault (scoped), cards, typed config, and manifest info. |

Usage

import { tool, z, card } from '@hivekeep/sdk'
import type {
  ChannelAdapter,
  LLMProvider,
  PluginContext,
  PluginExports,
} from '@hivekeep/sdk'

interface MyConfig { apiKey: string; region?: 'eu' | 'us' }

export default function (ctx: PluginContext<MyConfig>): PluginExports {
  return {
    tools: {
      greet: {
        availability: ['main', 'sub-agent'],
        readOnly: true,
        concurrencySafe: true,
        create: () => tool({
          description: 'Say hi',
          inputSchema: z.object({ name: z.string() }),
          execute: async ({ name }) => ({ reply: `Hi ${name}` }),
        }),
      },
    },

    providers: [/* one or more LLM / Embedding / Image / Search providers */],

    channels: { /* platform -> ChannelAdapter */ },

    hooks: {
      afterToolCall: (h) => {
        // h.toolName, h.toolArgs, h.toolResult — fully typed per hook
      },
    },

    async activate() {},
    async deactivate() {},
  }
}

Manifest JSON Schema

Reference the published schema from your plugin.json and any JSON-aware editor (VSCode, JetBrains) gives you autocomplete and inline validation:

{
  "$schema": "https://unpkg.com/@hivekeep/sdk/schemas/plugin-manifest.schema.json",
  "name": "my-plugin",
  "version": "0.1.0",
  "description": "…",
  "main": "index.ts",
  "hivekeep": ">=0.40.0"
}

Reference example

examples/hello-agent/ — a single-file plugin demonstrating every extension point (tool, channel, native LLM provider, hooks with typed payloads, card emission, lifecycle). Used by the SDK's own test suite to guarantee the public surface stays loadable.

Documentation

The canonical plugin author guide lives on the docs site:

License

AGPL-3.0-only.