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

opencode-nju-cli

v1.4.6

Published

OpenCode plugin and skill docs for Nanjing University workflows powered by nju-cli.

Readme

NJU CLI OpenCode Plugin

This package provides an OpenCode plugin for nju-cli, with bundled OpenCode-compatible skill docs for Nanjing University workflows.

Install

Add the npm plugin to opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-nju-cli"]
}

OpenCode installs npm plugins automatically at startup with Bun.

That is the full install path. Users do not need to copy skill files manually.

Tools

The plugin exposes two tools:

  • nju_cli: runs nju-cli, downloading the release binary on first use when needed.
  • nju_cli_docs: reads the bundled skill guidance before choosing a subcommand.

Example prompt:

用 nju_cli_docs 看一下 ehall 怎么查培养方案,然后用 nju_cli 查询。

Optional Native OpenCode Skill

The npm package already contains skills/nju-cli/SKILL.md, and the plugin exposes it through nju_cli_docs.

OpenCode's native skill tool only discovers skills from configured skill directories:

  • .opencode/skills/<name>/SKILL.md
  • ~/.config/opencode/skills/<name>/SKILL.md
  • .claude/skills/<name>/SKILL.md
  • ~/.claude/skills/<name>/SKILL.md
  • .agents/skills/<name>/SKILL.md
  • ~/.agents/skills/<name>/SKILL.md

Only copy skills/nju-cli if you specifically want nju-cli to appear in that native skill tool list:

mkdir -p ~/.config/opencode/skills
cp -R skills/nju-cli ~/.config/opencode/skills/

For project-local use, copy skills/nju-cli to .opencode/skills/nju-cli.

CLI Binary

The package includes wrappers under scripts/. It does not store release binaries in Git or npm. On first use, the wrapper downloads the matching nju-cli release artifact from GitHub Releases, caches the extracted binary under the user cache directory, and verifies it against scripts/nju-cli.sha256.

Use the NJU GitHub release mirror when GitHub is slow or unavailable:

nju-cli --download-mirror=nju --help

Supported release targets:

  • Linux x86_64
  • Linux aarch64
  • macOS Apple Silicon
  • Windows x86_64

The nju-cli binary is built and released from https://github.com/nju-cli/nju-cli.

Development

Dry-run the npm package contents:

npm pack --dry-run