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

akm-opencode

v0.2.0

Published

OpenCode plugin for Agentikit - search and show extension assets via the akm CLI.

Readme

akm-opencode

OpenCode plugin for the Agentikit CLI. Registers tools that let your AI agent search, show, and manage extension assets from stash directories and registries.

Installation

Add to your OpenCode config (opencode.json):

{
  "plugin": ["akm-opencode"]
}

Tools

| Tool | Description | |------|-------------| | akm_search | Search the local stash, the registry, or both for scripts, skills, commands, agents, and knowledge | | akm_registry_search | Search configured registries for installable kits and optional asset-level hits | | akm_show | Show a stash asset by its ref | | akm_index | Build or rebuild the search index | | akm_agent | Dispatch a stash agent:* into OpenCode using the stash prompt and metadata | | akm_cmd | Execute a stash command:* template in OpenCode via SDK session prompting | | akm_add | Install kits from npm, GitHub, git URLs, or local directories | | akm_list | List installed registry kits | | akm_remove | Remove an installed registry kit and reindex | | akm_update | Update one installed kit or all installed kits | | akm_clone | Clone an asset into the working stash or a custom destination for editing | | akm_config | Get, set, unset, list, or inspect akm configuration (including config path --all) | | akm_run | Execute a stash script using its run field | | akm_sources | List all resolved stash search paths | | akm_upgrade | Check for or install akm CLI updates |

Registry discovery

Use either:

  • akm_search with source: "registry" or source: "both"
  • akm_registry_search when you only want installable community kits

Registry hits include id, installRef, and action fields. Use installRef when passing a result into akm_add; registry-specific IDs are not installable refs. Use assets: true when you also want asset-level matches from registry v2 indexes.

Agent Dispatch

Use akm_agent after retrieving an agent ref from akm_search.

Inputs:

  • ref (optional): stash ref like agent:coach.md
  • query (optional): resolve best matching stash agent when ref is omitted
  • task_prompt (required): user task to run
  • dispatch_agent (optional): OpenCode agent name (defaults to general)
  • as_subtask (optional): create child session (defaults to true)

At least one of ref or query is required.

Behavior:

  • Loads the stash agent via akm show
  • Uses stash prompt verbatim as OpenCode system
  • Applies stash modelHint when in provider/model format
  • Applies stash toolPolicy when it maps to boolean tool flags

Command Execution

Use akm_cmd to execute stash command templates through the OpenCode SDK.

Inputs:

  • ref (optional): stash ref like command:review.md
  • query (optional): resolve best matching stash command when ref is omitted
  • arguments (optional): raw command arguments for $ARGUMENTS, $1, $2, etc.
  • dispatch_agent (optional): OpenCode agent name (defaults to current agent)
  • as_subtask (optional): create child session (defaults to false)

At least one of ref or query is required.

Prerequisites

When the plugin loads, it runs bun install -g akm-cli@latest so it always picks up the latest published npm package. It then prefers the Bun-installed binary and falls back to an existing akm on PATH when needed. It does not run the standalone shell installers automatically.

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/itlackey/agentikit/main/install.sh | bash
# PowerShell (Windows)
irm https://raw.githubusercontent.com/itlackey/agentikit/main/install.ps1 -OutFile install.ps1; ./install.ps1

# Or via Bun
bun install -g akm-cli@latest

Stash model

The stash directory is resolved automatically via a three-tier fallback: AKM_STASH_DIR env var (optional override) → stashDir in config.json → platform default. Set it persistently with:

akm config set stashDir /abs/path/to/your-stash

Expected layout:

stash/
├── scripts/    # executable scripts (.sh, .ts, .js, .ps1, .cmd, .bat, .py, .rb, .go, .pl, .php, .lua, .r, .swift, .kt)
├── skills/     # skill directories containing SKILL.md
├── commands/   # markdown files
├── agents/     # markdown files
└── knowledge/  # markdown files

Assets are resolved from three source types: working (local stash), search paths (additional dirs via searchPaths config), and installed (registry kits via akm add).

Docs