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-quality-scoring

v2.0.1

Published

Data quality scoring plugin: multi-dimensional scoring (completeness/accuracy/consistency/timeliness) with weighted total and improvement suggestions

Readme

@liuhange/dsh-data-quality-scoring

数据质量评分插件:对数据完整性、准确性、一致性、时效性多维度评分,生成质量报告和改进建议。

Tool 接口

score_data_quality

对数据文件进行多维度质量评分,生成 JSON + Markdown 双格式报告。

参数:

  • filePath (string, 必填): 待评分数据文件路径
  • outputPathDir (string, 可选): 报告输出目录,默认数据文件所在目录

输出:

  • quality_report.json: 质量评分 JSON 报告
  • quality_report.md: 质量评分 Markdown 报告(首行 【数据质量评分报告】

评分维度

| 维度 | 说明 | 计算方式 | |------|------|---------| | 完整性 | 缺失值比例 | (非缺失值总数 / 字段值总数) × 100 | | 准确性 | 格式合规率 + 值域合规率 | 加权平均 × 100 | | 一致性 | 跨字段约束满足率 | (满足约束记录数 / 受约束记录数) × 100 | | 时效性 | 数据新鲜度 | (1 - 过期比例) × 100 |

配置节点

business-rules.jsonqualityScoring 节点。缺失时使用默认配置(权重各 0.25,阈值 60)。

v1.0 兼容性

本插件为 v2.0 新增,不影响 v1.0 功能。配置缺失时降级到默认评分规则。