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

notespress

v0.1.1

Published

Generate a VitePress blog site directly from a Markdown notes directory.

Readme

notespress

notespress 是一个把 Markdown 笔记目录直接生成为 VitePress 博客站点的 CLI。

它默认把当前目录当作内容目录,自动生成导航、侧边栏和代码片段页面,不要求你手工维护 .vitepress 配置。

安装

npm install -D notespress

一次性运行也可以:

pnpm dlx notespress build

快速开始

在你的 Markdown 笔记目录里执行:

notespress dev
notespress build
notespress preview

如果你没有全局安装,可以改用:

npx notespress dev
npx notespress build
npx notespress preview

默认行为

  • 当前目录作为内容目录
  • 构建产物输出到 dist/
  • 临时工作区输出到 .blog-cli/
  • .js.ts.html 会自动生成 snippets/ 页面
  • 不会把 .vitepress 配置写回你的笔记目录

常用命令

notespress dev [content-dir]
notespress build [content-dir]
notespress preview [content-dir]
notespress prepare-content [content-dir]

示例:

notespress build .
notespress build ./notes --out-dir ./site-dist
notespress dev ./notes --port 3000
notespress preview ./notes --port 4173

适用目录

适合这类目录结构:

notes
├─ README.md
├─ frontend
│  ├─ react.md
│  └─ vue.md
└─ code
   └─ demo.ts

notespress 会根据目录结构生成导航,并把代码文件挂到 /snippets/... 路由下。

高级用法

如果你希望把当前目录初始化成一个长期维护的本地项目,再使用:

notespress init

它会尽量保守地初始化当前目录:

  • 创建或合并 package.json
  • 写入 devbuildpreview 脚本
  • 添加 .gitignore 中的 node_modulesdist.blog-cli
  • 如果根目录没有 README.mdindex.md,创建一个起始首页

如果要覆盖已有脚本或首页,可以加 --force

仓库说明

当前仓库除了发布 notespress 包,也保留了一个用于自用和演示的 blog-vitepress 站点壳。

仓库结构和本地开发说明放在: