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

@moluoxixi/vitepress-theme-element-plus

v0.2.2

Published

Reusable Element Plus-style custom VitePress documentation theme

Readme

@moluoxixi/vitepress-theme-element-plus

可复用的 Element Plus 风格 VitePress 文档主题。包内包含响应式布局、导航、侧栏、暗色模式、Demo、Playground、ApiDocs、组件目录、仓库元数据和文档准备 CLI;组件库项目只维护自己的品牌、内容与 package profile。

安装

pnpm add @moluoxixi/vitepress-theme-element-plus element-plus vitepress vue

需要完整的项目准备、组件页面生成和 Playground manifest 时,还应按项目功能安装相应 Markdown、Vue SFC 与 AI 文档依赖。

基础主题

在 .vitepress/config.ts 中声明站点:

import { defineElementPlusDocs } from '@moluoxixi/vitepress-theme-element-plus'

export default defineElementPlusDocs({
  site: {
    title: 'Acme Components',
    defaultLocale: 'zh-CN',
    locales: {
      'zh-CN': {
        label: '简体中文',
        lang: 'zh-CN',
        pathPrefix: '',
      },
    },
  },
})

在 .vitepress/theme/index.ts 中启用主题:

export { elementPlusDocsTheme as default } from '@moluoxixi/vitepress-theme-element-plus'

需要注册站点插件时使用 createElementPlusDocsTheme({ enhanceApp })。

完整文档工程

  • defineElementPlusDocsProject:声明仓库、语言、组件 package profile 与组件目录。
  • defineComponentPackage:声明组件包源码、API、样式和 Playground 入口。
  • createElementPlusDocsContent:安装 Demo、Playground、ApiDocs 与目录运行时。
  • @moluoxixi/vitepress-theme-element-plus/markdown:安装 Markdown Demo 与源码解析插件。
  • element-plus-docs prepare|dev|build|preview:准备生成内容并执行 VitePress 生命周期。

完整配置说明见仓库中的 docs/vitepress/zh/guide/documentation-theme.md。

公开子路径

  • .:浏览器主题、内容组件、项目配置和通用类型。
  • ./markdown:Markdown 插件与 Demo 解析。
  • ./node:Node 生命周期与生成服务。
  • ./repository、./repository/node:仓库元数据公共合同与 Node collector。
  • ./repl、./repl.css:可复用 Vue REPL 运行时与样式。

开发验证

pnpm --filter @moluoxixi/vitepress-theme-element-plus test
pnpm --filter @moluoxixi/vitepress-theme-element-plus typecheck
pnpm --filter @moluoxixi/vitepress-theme-element-plus build
pnpm --filter @moluoxixi/vitepress-theme-element-plus test:e2e:functional

来源与许可证

主题包含基于 Element Plus 文档站和 Element Plus Playground 固定提交改造的源码。详情见 UPSTREAM.md 与 THIRD_PARTY_NOTICES.md。项目许可证为 MIT。