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

@aaplugin/platform-opencode

v1.0.0-beta.4

Published

OpenCode Platform integration for AAPlugin.

Readme

@aaplugin/platform-opencode

OpenCode Platform package for aaplugin.

pnpm add -D @aaplugin/kit @aaplugin/platform-opencode
import { defineConfig } from '@aaplugin/kit';
import openCode from '@aaplugin/platform-opencode';

export default defineConfig({
  name: 'my-plugin',
  version: '1.0.0',
  description: 'Reusable AI workflows.',
  platforms: [openCode()],
});

The package also exports the named openCode factory, its option types, OpenCodePackageComponent, OpenCodeNativeAgentComponent, PLATFORM_ID, and PLATFORM_API_VERSION.

OpenCodePackageComponent is for trusted Extension contributors that need native workspace delivery. OpenCode owns its validation and rendering and does not create a synthetic Plugin Manifest for it.

Runtime and installation

The delivery root is dist/opencode/workspace/: apply its contents to the business repository root, including hidden .opencode/ files and any generated opencode.json or Public files. This is a workspace overlay, not an npm Hook plugin. OpenCode's npm plugin loader does not install the complete Skill/Agent/Runtime tree.

A release branch can distribute the complete overlay:

git clone --single-branch --branch release-opencode https://github.com/OWNER/REPO.git ./my-plugin-opencode

Merge the checked-out delivery into the target repository through its normal version-controlled file workflow. Resolve existing-file and configuration conflicts before applying it; do not replace the repository or discard existing opencode.json settings. There is no claimed native OpenCode command to install this whole overlay from a Git ref.

For a fresh workspace, copy the complete overlay into a new directory before opening it:

mkdir ./my-workspace && cp -R ./dist/opencode/workspace/. ./my-workspace/
cd ./my-workspace
opencode

Skills are under .opencode/skills/ and Runtime entries under .opencode/runtime/<id>/main.mjs. Resolve ../../runtime/<id>/main.mjs from the loaded Skill, or resolve .opencode/runtime/<id>/main.mjs against the actual business repository root. Do not assume an arbitrary shell subdirectory is that root. Keep cwd at the business repository when invoking Node.

Node must be on PATH; the standalone OpenCode executable is not assumed to be Node. AAPlugin targets Node 20 ESM and does not supply an interpreter. SessionStart Hook context is cached per session and included in its system-transform output; repeated transforms do not duplicate text in the same output. Candidate/contract tests are separate from a real OpenCode discovery/session check.

Sources: Skills, Plugins. The system-transform callback shape was checked against @opencode-ai/[email protected].

License

MIT