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

docsify-infographic

v1.0.2

Published

A plugin to render AntV Infographic diagrams in docsify

Downloads

279

Readme

docsify-infographic

A docsify plugin to render AntV Infographic diagrams.

English | 中文

Demo Website

The leaderboard is rendered using Infographic

Example

Usage

Add Infographic and the plugin to your docsify project:

<script>
  window.$docsify = {
    infographicConfig: {
      width: '100%',
      height: '100%'
    }
  };
</script>

<!-- Load AntV Infographic -->
<script src="https://unpkg.com/@antv/infographic@latest/dist/infographic.min.js"></script>
<!-- Load Plugin -->
<script src="https://unpkg.com/docsify-infographic@latest/dist/docsify-infographic.js"></script>

Configuration Options

Configure rendering parameters via window.$docsify.infographicConfig:

| Option | Default | Description | |------|--------|------| | width | '100%' | Infographic width, supports percentage or pixels | | height | '100%' | Infographic height, supports percentage or pixels |

Examples

Use infographic as the code block language identifier in Markdown:

    ```infographic
    infographic list-row-simple-horizontal-arrow
      data
        lists
          - label Step 1
            desc Start
          - label Step 2
            desc Processing
          - label Step 3
            desc Complete
    ```

Custom Size

You can specify width and height for a single infographic. Supports pixels (px) and percentages (%):

    ```infographic 100px*100px
    infographic list-row-simple-horizontal-arrow
      data
        title: Small Chart
    ```

    ```infographic 50%*80%
    infographic chart-column-simple
      data
        title: Wide Chart
    ```

    ```infographic 400px*auto
    infographic chart-pie-donut-pill-badge
      data
        title: Fixed Width Chart
    ```
  • infographic 100px*100px - Fixed pixel size
  • infographic 50%*80% - Percentage size relative to the parent container
  • Uses the default value from global configuration if not specified

For more chart types and syntax, please refer to AntV Infographic Documentation.

Development

# Install dependencies
npm install

# Build plugin
npm run build

# Run example
npm run example

License

MIT

示例网站

排行榜就是使用 Infographic 渲染的

Example

使用方法

在 docsify 中添加 Infographic 和插件:

<script>
  window.$docsify = {
    infographicConfig: {
      width: '100%',
      height: '100%'
    }
  };
</script>

<!-- 加载 AntV Infographic -->
<script src="https://unpkg.com/@antv/infographic@latest/dist/infographic.min.js"></script>
<!-- 加载插件 -->
<script src="https://unpkg.com/docsify-infographic@latest/dist/docsify-infographic.js"></script>

配置选项

通过 window.$docsify.infographicConfig 配置渲染参数:

| 选项 | 默认值 | 说明 | |------|--------|------| | width | '100%' | 信息图宽度,支持百分比或像素 | | height | '100%' | 信息图高度,支持百分比或像素 |

示例

在 Markdown 中使用 infographic 作为代码块语言标识:

    ```infographic
    infographic list-row-simple-horizontal-arrow
      data
        lists
          - label 步骤 1
            desc 开始
          - label 步骤 2
            desc 进行中
          - label 步骤 3
            desc 完成
    ```

自定义尺寸

可以为单个信息图指定宽度和高度。支持像素(px)和百分比(%):

    ```infographic 100px*100px
    infographic list-row-simple-horizontal-arrow
      data
        title: 小尺寸图表
    ```

    ```infographic 50%*80%
    infographic chart-column-simple
      data
        title: 宽图表
    ```

    ```infographic 400px*auto
    infographic chart-pie-donut-pill-badge
      data
        title: 固定宽度图表
    ```
  • infographic 100px*100px - 固定像素尺寸
  • infographic 50%*80% - 相对父容器的百分比尺寸
  • 未指定时使用全局配置的默认值

更多图表类型和语法请参考 AntV Infographic 文档

开发

# 安装依赖
npm install

# 构建插件
npm run build

# 运行示例
npm run example

License

MIT