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

@boyingliu01/opencode-plugin

v0.18.5

Published

XP-Gate quality gates + AI workflow skills + Sprint Flow TUI sidebar for OpenCode

Readme

XP-Gate OpenCode Plugin

OpenCode plugin exposing xp-gate quality gates and AI workflow skills.

Tools

  • gate-checkxp-gate check <path>: Run user-invokable quality gates (Gate 4 Principles + Gate 6 Architecture) on a file or directory.

  • gate-principlesxp-gate principles <path>: Run Clean Code + SOLID principles checker (Gate 4 standalone).

  • gate-archxp-gate arch: Run architecture validation (Gate 6 standalone, layer boundary checks).

  • session-reload-model: Reload session model from config. After switching provider configs (opencode.json + oh-my-openagent.json via switch-coding-plan.sh), updates the session model in OpenCode DB to match the new config, so restarted sessions use the current provider/model.

    Usage:

    // Reload current session model from config
    session-reload-model()
    
    // Reload a specific session
    session-reload-model({ sessionId: "ses_xxx" })
  • session-rename: Rename an OpenCode session. When called without a newTitle, analyzes the session's recent user messages and auto-generates a descriptive title. Works by directly updating the OpenCode SQLite database (~/.local/share/opencode/opencode.db).

    Usage:

    // Rename current session with auto-generated title
    session-rename()
    
    // Rename a specific session with a custom title
    session-rename({ sessionId: "ses_xxx", newTitle: "Fix auth middleware bug" })

Earlier docs said "all 6 quality gates" — that was inaccurate. gate-check intentionally runs only the two user-invokable gates (Principles + Arch); the full 10-gate pre-commit suite (Gate 0-9) is enforced by xp-gate init's git hooks, not by this tool. Fixes #208.

Installation

In your opencode.json:

{
  "plugin": ["@boyingliu01/opencode-plugin"]
}

Or via local path (development):

{
  "plugin": ["./plugins/opencode"]
}

Requirements

  • OpenCode v0.11+
  • One of:
    • xp-gate CLI installed globally (npm install -g @boyingliu01/xp-gate) — preferred, or
    • the xp-gate repo checked out locally with src/principles/index.ts reachable — fallback (the tool will shell out via npx -y tsx)
  • architecture.yaml in repo root (for gate-arch only)

Graceful Degradation

Every tool runs a chained shell-out: it first tries xp-gate <subcommand> and, only if that's not on PATH, falls back to invoking the underlying checker source directly. If both paths fail, the tool returns install instructions instead of throwing.