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

@142vip/vitepress

v0.0.1-alpha.27

Published

基于vitepress框架搭建静态站点的常用工具包,提供ElementPlus相关组件和主题

Readme

@142vip/vitepress

基于 VitePress 的文档站封装:主题、Element Plus、Mermaid 架构图

快速开始

1. 配置

import { defineVipVitepressConfig, getVipThemeConfig } from '@142vip/vitepress'

// 原用法(不变)
export default defineVipVitepressConfig({
  title: 'My Docs',
  themeConfig: getVipThemeConfig({ nav: [] }),
})

// 启用 Mermaid(第二参数拓展)
export default defineVipVitepressConfig({
  title: 'My Docs',
  themeConfig: getVipThemeConfig({ nav: [] }),
}, {
  mermaid: true, // 或 { theme: 'forest' }
})

2. 主题

import defineVipExtendsTheme from '@142vip/vitepress/theme'

export default defineVipExtendsTheme()

3. 写图(需已启用 mermaid)

```mermaid
flowchart LR
  A --> B
```

```mermaid theme=forest
flowchart LR
  A --> B
```

主题规则:亮色使用所选官方主题;暗黑模式统一使用官方 dark,保证可读性。

展示模式VipMermaid 自动判断,无需额外配置):

| 模式 | 触发条件 | 行为 | |------|----------|------| | 静态 | 图可完整放入容器 | 居中展示,高度随内容自适应,无操作按钮 | | 交互 | 宽或高超出展示区域 | 固定视口、自动缩放居中,支持拖拽、滚轮 / 双指缩放、还原与全屏 |

交互能力仅在内容超出时出现;小图保持简洁,大图才提供缩放与全屏。所有图表均支持复制 Markdown 代码块(```mermaid fence,不含主题配置)到剪贴板。样式使用 VitePress CSS 变量,兼容明暗主题与移动端。

Demo

pnpm --filter @142vip/vitepress build
pnpm --filter vitepress-demo dev

证书

MIT

Copyright (c) 2019-present, @142vip 储凡