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

usync-cli

v1.1.2

Published

Sync ClaudeCode/OpenCode/Codex/Gemini CLI settings and skills to GitHub Gist

Readme

usync(中文)

同步 ClaudeCode / OpenCode / Codex / Gemini CLI 的配置与 skills 到 GitHub Gist。

功能

  • 同步多工具配置到同一个 Gist。
  • 增量上传:只上传变化文件,不全量覆盖。
  • 支持下载恢复到真实路径,或下载到指定测试目录。
  • CLI 显示进度、上传列表、下载列表、跳过列表。
  • 内置 init:验证 PAT 并校验/创建 Gist。
  • 默认过滤明显敏感文件(.env*.pem.key.p12)和系统噪音(.DS_Store)。
  • 支持可选自动同步:upload --watch 轮询本地变化并增量上传。

自动发现路径

  • ClaudeCode~/.claude/settings.json~/.claude/settings.local.json~/.claude/skills,以及项目内 .claude/*
  • OpenCode~/.config/opencode/opencode.json(.jsonc)~/.config/opencode/skills,以及项目内 opencode.json(.jsonc).opencode/skills
  • Codex~/.codex/config.json~/.codex/settings.json~/.codex/skills,以及项目内 .codex/*
  • Gemini CLI~/.gemini/settings.json~/.gemini/extensions~/.gemini/skills,以及项目内 .gemini/*

安装与构建

npm install
npm run build

Token / Gist 准备

  • 创建 PAT:https://github.com/settings/tokens/new
  • 最低权限:gist
  • 创建/查看 Gist:https://gist.github.com/

命令示例

# 1) 扫描本地可同步文件
npx usync-cli scan

# 1.1) 验证 token 与 gist 访问
npx usync-cli init --token <GITHUB_PAT> --gist-id <GIST_ID>

# 2) 上传到已有 gist
npx usync-cli upload --token <GITHUB_PAT> --gist-id <GIST_ID>

# 3) 创建新 gist 后上传
npx usync-cli upload --token <GITHUB_PAT> --description cloudSettings --public

# 4) 下载并恢复到默认路径
npx usync-cli download --token <GITHUB_PAT> --gist-id <GIST_ID>

# 5) 下载到测试目录
npx usync-cli download --token <GITHUB_PAT> --gist-id <GIST_ID> --output-root /path/to/settingsTest

# 6) 本地有变化时自动上传
npx usync-cli upload --token <GITHUB_PAT> --gist-id <GIST_ID> --watch --interval 15

scan 不需要 PAT 和 Gist ID。 upload/download/init 需要 PAT,且 upload/download 还需要目标 Gist ID。

说明:若目标 gist 还没有 usync 的 manifest,download 会回退到原始 gist 文件下载到 <output-root>/raw-gist/。可加 --strict-manifest 禁止回退。

当使用 --output-root 时,会写成可见目录映射(不再使用点前缀隐藏目录),例如:

  • .../home/claude/...
  • .../home/opencode/...
  • .../home/gemini/...
  • .../home/codex/...