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

@gistvis/wsv

v0.0.1

Published

The wsv package is the Visualizer module of the GistVis project, enabling users and automation processes to create word-scale visualizations with JSON DSL-style inputs.

Readme

BSD-3-Clause License Language NPM Package

Introduction

@gistvis/wsv is a React visualization library that allows users to create word-scale visualizations in JSON specification. It uses data fact specification to provide a interface for users and machines to create word-scale visualizations for data-rich documents.

Installation and Usage

Installation can be done via npm, yarn or pnpm.

# npm
$ npm install @gistvis/wsv --save

# yarn
$ yarn add @gistvis/wsv

# pnpm
$ pnpm install @gistvis/wsv

Visualization rendering goes through the <GistvisVisualizer /> React component. The only prop is datafactSpec={}, which takes in a JSON specification under the type paragraphSpec[] (i.e., the data fact specification).

Below we provide an example of rendering a single paragraph displaying proportion data insight:

import { paragraphSpec, GistvisVisualizer } from "@gistvis/wsv";

export const DemoProportion = () => {
  const data: paragraphSpec[] = [
    {
      paragraphIdx: 0,
      paragraphContent: [
        {
          id: "p1s0",
          unitSegmentSpec: {
            insightType: "proportion",
            segmentIdx: 0,
            context:
              "Company A constitutes of 20% of EV market share, company B consitutes 12%, while the rest of the top 5 companies constitutes 30% of the market share.",
            inSituPosition: [],
          },
          dataSpec: [
            {
              space: "the category of market share in EV sales",
              breakdown: "company A",
              feature: "the proportion of EV market share",
              value: 0.2,
            },
            {
              space: "the category of market share in EV sales",
              breakdown: "company B",
              feature: "the proportion of EV market share",
              value: 0.12,
            },
            {
              space: "the category of market share in EV sales",
              breakdown: "the rest of the top 5 companies",
              feature: "the proportion of EV market share",
              value: 0.3,
            },
          ],
        },
      ],
    },
  ];

  return (
    <div>
      <GistvisVisualizer datafactSpec={data} />
    </div>
  );
};

Viola, you get a horizontal stacked bar chart that shows the proportion of market share of company A, company B, the rest of the top 5 companies, and others.

Note that this specification is originally designed for large language model output. Thus, it can be quite verbose. We are working on a more concise specification (language/tool) that can be used for authoring word-scale visualizations, so please expect some API changes in the future.