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

@midwayjs/skill-midway

v4.2.1

Published

Midway official skill package with knowledge bundle generator and query helpers

Readme

@midwayjs/skill-midway

Midway official skill package.

This package provides three things:

  • a bundle builder for Midway docs, API, packages, and changelog data
  • a packaged bundle plus lookup commands that query it in structured JSON
  • a bundled Midway prompt/skill artifact that can be installed into multiple AI products

Install

Add the package to your project:

pnpm add -D @midwayjs/skill-midway

Then run commands through pnpm exec:

pnpm exec midway-skill --help

Build The Bundle

Generate the local Midway knowledge bundle from the repository docs and current API data:

pnpm exec midway-skill build

By default this writes to:

site/.midway-skill

It also syncs the generated bundle into the package-local publish directory:

packages/skill-midway/bundle

That package-local bundle is what gets shipped with the published npm package.

You can override the paths if needed:

pnpm exec midway-skill build \
  --repo-root /path/to/midway \
  --site-root /path/to/midway/site \
  --output /path/to/output

Query The Bundle

All lookup commands return JSON on stdout so they can be consumed by agents or scripts.

When the package contains a bundled snapshot, lookup commands read that packaged bundle first. In the Midway source repository, you can still point them at site/.midway-skill explicitly with --bundle-root.

Resolve the requested Midway version first:

pnpm exec midway-skill resolve-version 3.20.12

Lookup docs:

pnpm exec midway-skill lookup-docs --query "mcp"
pnpm exec midway-skill lookup-docs --query "configuration" --locale en

Lookup API symbols:

pnpm exec midway-skill lookup-api --symbol "Configuration"
pnpm exec midway-skill lookup-api --symbol "MidwayMCPFramework" --package "@midwayjs/mcp"

Lookup package metadata:

pnpm exec midway-skill lookup-packages --query "mcp"

Lookup changelog entries:

pnpm exec midway-skill lookup-changelog --package "@midwayjs/mcp"
pnpm exec midway-skill lookup-changelog --from-version 4.0.0 --to-version 4.0.1

Install For AI Products

Install the bundled Midway artifact into the current project for a specific product:

pnpm exec midway-skill install --target codex
pnpm exec midway-skill install --target cursor
pnpm exec midway-skill install --target trae

You can also install all supported targets at once:

pnpm exec midway-skill install --target all

By default installation is project-scoped and writes under the current working directory. Examples:

<project-root>/.codex/skills/midway/SKILL.md
<project-root>/.cursor/commands/opsx-midway.md
<project-root>/.trae/skills/midway/SKILL.md

This keeps the installed skill version aligned with the project's @midwayjs/skill-midway version.

You can still override the destination directory when needed:

pnpm exec midway-skill install --target codex --dest /path/to/project

To overwrite an existing installed skill:

pnpm exec midway-skill update --target codex
pnpm exec midway-skill update --target all

Supported targets currently include:

amazon-q
antigravity
auggie
claude
cline
codebuddy
codex
continue
costrict
crush
cursor
factory
gemini
github-copilot
iflow
kilocode
kiro
opencode
pi
qoder
qwen
roocode
trae
windsurf

Version Behavior

  • current major: docs + api + changelog
  • historical majors: docs + changelog
  • historical API lookups are not guaranteed and will return empty results when API capability is unavailable

Use resolve-version before answering version-sensitive questions so the caller can see whether the result was exact or a major-version fallback.