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

@liuhange/dsh-data-visualization

v2.0.1

Published

Data visualization plugin: generate self-contained HTML reports with interactive charts (bar/comparison/pie/radar/flowchart)

Readme

@liuhange/dsh-data-visualization

可视化报表插件:生成自包含 HTML 报表,含脱敏统计、清洗对比、资产分布、质量评分、血缘追踪五种交互式图表。

Tool 接口

generate_visualization

读取各插件 JSON 报告,生成自包含 HTML 可视化报表。

参数:

  • reportPaths (string, 必填): JSON 格式的报告路径对象 {masking, cleaning, inventory, quality, lineage}
  • outputPath (string, 必填): HTML 报表输出路径

输出:

  • visualization_report.html: 自包含 HTML 报表(断网可独立打开)

图表类型

| 图表 | 说明 | 数据来源 | |------|------|---------| | 柱状图 | 脱敏各字段统计 | 脱敏报告 JSON | | 对比图 | 清洗前后数据量对比 | 清洗报告 JSON | | 饼图 | 数据资产分类分布 | 盘点报告 JSON | | 雷达图 | 质量评分多维度展示 | 质量评分 JSON | | 流程图 | 血缘追踪可视化 | 血缘 JSON |

配置节点

business-rules.jsonvisualization 节点。缺失时使用默认模板(2列网格、默认配色、交互全启用)。

特性

  • 自包含 HTML:所有 CSS/JS 内联,无外部依赖,断网可打开
  • 交互式:支持展开/折叠详情、切换图表类型
  • 容错:部分 JSON 缺失时对应图表显示占位符,其他图表正常
  • 配置化:图表配置/布局/配色从配置文件读取