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 🙏

© 2024 – Pkg Stats / Ryan Hefner

unplugin-components-doc

v0.0.4

Published

A plugin for visualizing component library documentation

Downloads

541

Readme

unplugin-components-doc npm

Powered by unplugin.

preview image

组件库可视化文档插件,自动扫描并解析组件属性和注释信息生成文档。允许你在页面上动态修改组件属性,并实时预览渲染结果。借助 AI 生成组件说明,进一步解放双手。

A tool that scans your project's components, automatically parses their props and comments to generate documentation. It allows you to dynamically modify component properties on a web page and preview the rendered results in real-time. With AI-generated component descriptions, it takes automation to the next level and frees up your hands even further.

🌈 特性

  • 🍰 开箱即用,轻松集成到现有的开发环境,无需编写任何额外代码
  • 😃 自动扫描项目中的组件,无需手动配置
  • 🪐 允许你动态交互和修改组件属性,即时查看渲染结果
  • 🦾 代码注释即可解析为组件说明,无需编写 Markdown
  • ✨ AI 生成有意义的描述,确保文档始终信息详实
  • 🌈 支持 Vue、React 等主流前端框架,适用于各种项目

🌈 Features

  • 🍰 Out-of-the-box solution and easy to without any extra code
  • 😃 Automatically scans components in your project with zero manual configuration
  • 🪐 Enables dynamic interaction and modification of component props while instantly previewing the rendering results
  • 🦾 Converts code comments directly into component documentation, eliminating the need for writing Markdown files
  • ✨ AI-powered meaningful descriptions ensure your documentation stays detailed and up-to-date
  • 🌈 Supports major frontend frameworks like Vue and React, suitable for various projects

📦 Installation

npm i unplugin-components-doc -D
// vite.config.ts
import Docs from 'unplugin-components-doc/vite'

export default defineConfig({
  plugins: [
    Docs({ /* options */ }),
  ],
})

// rollup.config.js
import Docs from 'unplugin-components-doc/rollup'

export default {
  plugins: [
    Docs({ /* options */ }),
  ],
}

// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-components-doc/webpack')({ /* options */ })
  ]
}

// nuxt.config.js
export default defineNuxtConfig({
  modules: [
    ['unplugin-components-doc/nuxt', { /* options */ }],
  ],
})

This module works for both Nuxt 2 and Nuxt Vite

// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-components-doc/webpack')({ /* options */ }),
    ],
  },
}

// esbuild.config.js
import { build } from 'esbuild'
import Docs from 'unplugin-components-doc/esbuild'

build({
  plugins: [Docs()],
})