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

@apnea/opencode-lattice

v1.1.0

Published

Lattice skill framework plugin for opencode — resolves framework:xxx references and registers slash commands

Downloads

72

Readme

opencode-lattice

Lattice skill framework plugin for opencode.

Provides two capabilities:

  1. Server plugin — resolves `framework:xxx` references in Lattice skill commands, inlining referenced skill content before the AI sees it. This is the mechanical equivalent of Claude Code's framework: resolution.

  2. TUI plugin — registers all installed Lattice skills as slash commands in the autocomplete dropdown. Type / in a session to see skills like /lattice-init, /code-forge, /review, etc.

Install

First, install the Lattice skills:

# Clone Lattice
git clone https://github.com/nichochar/lattice.git

# Install skills globally for opencode
./lattice/tools/install.sh ~/.config/opencode/skills/lattice

Then install this plugin:

opencode plugin opencode-lattice

Or install from a local checkout:

opencode plugin /path/to/lattice/tools/opencode-plugin

How it works

Framework resolution (server)

Lattice skills reference other skills using `framework:skill-name` syntax. When a skill command is executed, this plugin intercepts the command.execute.before hook and replaces each reference with the full content of the referenced skill — including its base directory, file listing, and markdown body. Transitive references (atoms referencing other atoms) are resolved with up to 3 passes.

Slash commands (TUI)

The TUI plugin discovers all installed skills at startup and registers each as a keymap command with a slashName. When selected from the autocomplete dropdown, it calls the opencode session command API to execute the skill.

Skill search paths

Both plugins search for skills in these directories (in order):

  • ~/.config/opencode/skills/lattice/ — opencode global
  • <project>/.opencode/skills/lattice/ — opencode project
  • ~/.agents/skills/ — opencode external compatibility
  • <project>/.agents/skills/ — opencode external compatibility
  • ~/.claude/skills/ — Claude Code compatibility
  • <project>/.claude/skills/ — Claude Code compatibility

First match wins; duplicate names are skipped.

Development

# Run tests (requires Lattice skills installed at /tmp/lattice-plugin-test/.agents/skills/)
cd /path/to/lattice/tools/opencode-plugin
node test.mjs

License

MIT