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

@ziuchen/super-clipboard-userscripts

v0.2.0

Published

SuperClipboard script-market manifest, bundled .user.js sources, and a small JS library (URL helpers, manifest validator, mirror presets).

Readme

super-clipboard / userscripts

English | 简体中文

社区维护的用户脚本集合。

仓库结构

package.json                      # name=@ziuchen/super-clipboard-userscripts
scripts/<id>/<id>.user.js         # 脚本主体,需带 ==UserScript== 头
scripts/<id>/README.md            # 可选,使用说明 / 截图
scripts/_template/                # 复制本目录开始你的新脚本(_ 前缀目录会被跳过)
scripts/build-manifest.mjs        # 构建器;prepublishOnly 自动调用
.github/workflows/publish.yml     # 推送 v* tag → OIDC 发布到 npm

添加新脚本

  1. 复制 scripts/_template/scripts/<your-id>/,目录名即脚本 id(kebab-case)。
  2. _template.user.js 改名为 <your-id>.user.js,写好 ==UserScript== 头。
  3. manifest 完全从脚本头生成,不需要 meta.json
  4. 提交 PR;合并后由 maintainer 发布。

UserScript 头参考

标准指令(@name/@version/@description/@author/@homepage/@namespace/@updateURL/@require/@grant/@run-at)与 Tampermonkey 一致。额外识别两个自定义指令:

// @match-clip   text          // 可重复:text | image | file
// @match-clip   image
// @tag          ocr           // 可重复:自由文本 tag,在市场 UI 展示
// @tag          background
// @preinstall   true          // 可选,默认 false

脚本 API 速览

// 注册一个右键菜单命令
globalNativeApi.registerMenuCommand("命令名", async (ctx) => {
  if (!ctx.clip) return;
  const body = await globalNativeApi.getClipBody(ctx.clip);
  const text = body?.text ?? body?.preview ?? "";
  // ... 处理 text,可选:
  // utools.copyText(text)                                  // 写回剪贴板
  // globalNativeApi.notification({ title, body })          // 弹通知
  // document.body.innerHTML = "..."; await globalNativeApi.showPanel({ width, height, placement })
});

本地开发

npm install
npm test                    # node:test,跑 lib/ 的单测
npm run build               # 生成 manifest.json

发布(仅 maintainer)

npm version patch          # 或 minor/major
git push --follow-tags

publish.yml 会自动构建 manifest 并通过 OIDC trusted publisher 发到 npm。

协议

MIT