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

@metaharness/opencode

v0.1.0

Published

MetaHarness example — minimal OpenCode .opencode/ config scaffold for agent harnesses (npx @metaharness/opencode my-bot)

Readme

MetaHarness × OpenCode .opencode/ config

A minimal MetaHarness scaffold wired for the OpenCode host. It drops a ready-to-edit .opencode/ config tree into a fresh project directory so you can run agents through OpenCode without hand-building the boilerplate. This is for developers who already use OpenCode (or want to try it) and want a working starting point in one command. It is not a multi-agent vertical template — there are no pre-built domain agents, no embedded MCP server farm, and no opinionated workflow. You get the harness skeleton; you bring the intent.

Quickstart

npx @metaharness/opencode@latest my-bot
cd my-bot
npm install
harness doctor

harness doctor confirms the OpenCode config loaded, the harness CLI is on PATH, and the scaffold passes structural validation.

What you get

  • .opencode/config.json — OpenCode host config, pre-pointed at the harness directory
  • .opencode/agents/ — empty agent registry with one example agent stub
  • .opencode/mcp/ — MCP server declarations (empty by default, ready for you to add servers)
  • harness.config.mjs — top-level harness manifest (template: minimal, host: opencode)
  • package.json with harness CLI wired as a dev dependency and npm run doctor / npm run validate scripts
  • .gitignore and README.md seeded for the project
  • No example domain agents, no opinionated prompts — clean slate

Advanced

Run the built-in health checks:

harness doctor
# ✓ OpenCode config found at .opencode/config.json
# ✓ harness CLI v0.x.x on PATH
# ✓ Node 20+ detected
# ✓ Scaffold structure valid

Validate the manifest and agent definitions without executing anything:

harness validate
# ✓ harness.config.mjs parsed
# ✓ 0 agents registered
# ✓ 0 MCP servers declared
# ✓ OK

Use the scaffold as a Claude Code plugin directory (OpenCode and Claude Code share enough of the contract that the harness skeleton works as both):

claude -p --plugin-dir my-bot "summarize the README"

Re-run the generator into an existing directory (the underlying metaharness call passes --force):

npx @metaharness/opencode@latest my-bot

FAQ

Q: What is the difference between this and npx metaharness? A: This is a pinned, one-flag wrapper. It calls metaharness@latest with --template minimal --host opencode --force so you don't have to remember the flags. Use raw metaharness if you want a different template or host.

Q: Does this install OpenCode itself? A: No. It produces an .opencode/ config tree that OpenCode (or any compatible host) reads. Install OpenCode separately per its own docs.

Q: Can I add MCP servers after scaffolding? A: Yes. Drop server declarations into .opencode/mcp/ and re-run harness validate to confirm they parse. The minimal template intentionally ships zero so the surface stays clean.

License

MIT. Built on metaharness (https://www.npmjs.com/package/metaharness).

Deep-dive

Full explainer gist: https://gist.github.com/ruvnet/e620f3ee6fd0a71bb7c76237e09cb7a4