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

@hcf-ai/theme-hcf

v1.0.5

Published

基于 VitePress 主题二次增强的文档主题,适配AI知识库与项目文档

Readme

@hcf-ai/theme-hcf

现代、优雅、可定制的 VitePress 文档主题,适合技术文档与项目站点。

  • ✨ 现代设计 · 亮/暗色支持
  • 🌐 多语言 · 语言跳转页
  • 📑 多布局 · Home / Doc / Page / Sponsor / Changelog / Jump
  • 🔍 本地搜索 · MiniSearch 集成
  • 📊 Mermaid · 内置样式与快速集成

环境要求

  • Node.js ≥ 18
  • VitePress ^1.6.4

快速使用

1. 安装主题

pnpm add @hcf-ai/theme-hcf
# 或
npm i @hcf-ai/theme-hcf

2. 在项目根目录新建 .npmrc

用于解决 pnpm 新版本安装刚发布包与构建脚本拦截问题

minimumReleaseAge=0
ignoreBuilds=false

3. 最小化配置(推荐)

withHcfTheme 会自动注入 vite.ssr.noExternal、optimizeDeps.exclude,并启用 Mermaid 运行时渲染

// .vitepress/config.ts
import { withHcfTheme } from "@hcf-ai/theme-hcf/config";

export default withHcfTheme({
  title: "My Docs",
  description: "",
  themeConfig: {
    // 主题配置
  },
});
// .vitepress/theme/index.ts
import { theme } from "@hcf-ai/theme-hcf";
export default theme;
pnpm add vitepress -D
pnpm vitepress dev docs

配置项示例

export default withHcfTheme({
  title: "My Docs",
  description: "基于 @hcf-ai/theme-hcf 构建文档站点",
  lang: "zh-CN",
  themeConfig: {
    logo: "/logo.svg",
    nav: [
      { text: "首页", link: "/" },
      { text: "文档", link: "/guide/" },
    ],
    sidebar: {
      "/guide/": [{ text: "快速上手", link: "/guide/start" }],
    },
    search: {
      provider: "local",
    },
  },
});

内置能力

  • 自动 dark / light 主题切换
  • Mermaid 图表开箱即用
  • 多语言路由
  • 内置页面模板:Home、Changelog、Sponsor、Jump
  • 本地搜索 MiniSearch