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

visual-anything

v0.1.1

Published

Deterministic compiler that turns a table into one AntV G2 chart, a finding, and the reasons it refused another mark.

Readme

Visual Anything

把一张整理好的表编译成一张 AntV G2 图。选图由字段形状和一句意图决定,同一输入得到同一张图、同一句结论。

这个包不依赖 Next.js。网页工作台留在仓库根目录。

安装

npm install visual-anything
import { buildVisualization } from "visual-anything";

const result = buildVisualization({
  text: "品类,销售额\n咖啡,120\n茶饮,80\n",
  intentText: "看排名",
});

命令行:

npx visual-anything --input data.csv --out chart.html --title 区域月销售额 --intent 看趋势

安装和 npm test 都会编译到 dist。网页和测试导入的是这份编译结果,和发布到 npm 的文件相同。改完 src 之后重新执行 npm test 或 npm run dev。

公开样例

fixtures/cases.json 是选图合同。每一条写明输入、图形、结论和检查码。测试 src/public-contract.test.ts 逐条核对。改规则时先改这份样例。

不做什么

不分组、不筛选、不把明细求和。订单流水不会自动变成「各区域销售额」;要先汇总,并在标题里写明口径。唯一的计数是:没有数值列、且只有一个类别出现重复时,柱高是出现次数。