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

obsidian_site_sync

v1.0.0

Published

```bash npm install npm run build npm link ```

Downloads

14

Readme

Obsidian CLI 扫描工具

安装与使用

npm install
npm run build
npm link

运行命令:

scan-obsidian --directory /path/to/vault --index /path/to/index.md --sync /path/to/content

配置文件(推荐)

CLI 支持从本地配置文件读取默认参数:

  • 路径:~/.config/obs-scanner/config.yaml
  • 字段:directoryindexsync

示例:

directory: /path/to/vault
index: /path/to/index.md
sync: /path/to/content

命令行参数优先于配置文件。若配置文件不存在,CLI 会提示:

配置文件 /Users/yourname/.config/obs-scanner/config.yaml 不存在

路径支持使用 ~/ 作为用户目录的简写,CLI 会自动展开为绝对路径。

发布到 npm

项目提供了一个轻量发布脚本:

npm run release:npm

脚本会按顺序执行这些检查和动作:

  • 校验当前 npm registry 必须是官方源 https://registry.npmjs.org/
  • 校验当前分支必须是 main
  • 校验 git 工作区必须干净
  • 校验当前 npm login 状态有效
  • 执行 npm test
  • 执行 npm pack --dry-run
  • 最后执行 npm publish

如果需要临时改发布分支或目标源,可以通过环境变量覆盖:

EXPECTED_BRANCH=release EXPECTED_REGISTRY=https://registry.npmjs.org/ npm run release:npm

npm 包本身只发布运行所需内容和少量说明文件,当前白名单包括:

  • dist/
  • README.md
  • config.sample.yaml

其中 build 只生成可发布的运行时代码;测试使用单独的 build:test,避免把测试产物混入最终 npm 包。