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

gh-api-push

v1.0.0

Published

Push files to a GitHub repo via the Git Data API — a lightweight fallback channel when github.com git push is unreachable (e.g. network blocks) but api.github.com still works.

Readme

轻记 TODO

本地优先的待办工具:数据先落本机,云端同步到你自己的飞书多维表格——不放任何人的服务器。

  • 站点 / 网页版:https://439436269-ctrl.github.io/qingji-todo-web/
  • 多端形态:网页版(PWA)· Android(APK)· iOS(Xcode 工程 + OTA 安装)
  • 技术方案见 技术方案-多端同步.md

api-push(本包 CLI)

api-push 是本仓库内含的原子 CLI:通过 GitHub Git Data API 把指定文件提交并推送到仓库——当 github.com 的 git push 直连被墙/握手失败、而 api.github.com 仍可达时,作为替代推送通道。

# 安装
npm install -g api-push

# 用法(在目标 git 仓库目录内执行)
export GH_TOKEN=ghp_xxx          # 需要 repo 权限的 token
api-push "提交说明" path/to/file1.md path/to/file2.js

# 可选环境变量
# GH_REPO   目标仓库(默认 439436269-ctrl/qingji-todo)
# GH_ROOT   文件路径解析根目录(默认取当前目录,须是 git 仓库)
  • 零依赖,Node ≥ 18(内置 fetch)
  • 二进制/图片等按文件类型自动选择 base64 或 UTF-8 blob
  • 单次提交可携带多个文件;HEAD 从 main 分支读取

仓库内直接使用(无需安装):

GH_TOKEN=ghp_xxx node tools/api-push.cjs "提交说明" index.html