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

@dpuse/dpuse-tool-d3-visualiser

v0.0.46

Published

A TypeScript wrapper for D3, Billboard.js, Observable Plot, and Unovis that implements the Data Positioning chart-rendering interface, providing ERD (dagre), Sankey (d3-sankey), chord (Unovis), network (d3-force), tree (d3-hierarchy), and bar chart (billb

Readme

DPUse D3 Tool

Consider adding support for Plotly.js, Unovis, Vega and Vega-Lite.

License: MIT

A TypeScript wrapper for D3 that implements the Data Positioning chart-rendering interface, starting with a Sankey diagram renderer built on d3-sankey and d3-selection.

Installation

There's no need to install this tool manually. Once released, it's uploaded to the Data Positioning Engine cloud and becomes instantly available to all new instances of the browser app. A notification about the new version is also sent to all existing browser apps.

Usage

Basic usage example with no error handling.

import type { D3Tool as D3ToolType, SankeyDiagramData } from '@dpuse/dpuse-tool-d3-visualiser';

async function loadD3Tool(version: string): Promise<D3ToolType> {
    if (d3Tool) return d3Tool;

    const URL = `https://engine-eu.dpuse.app/tools/d3_v${version}/dpuse-tool-d3.es.js`;
    const D3Tool = (await import(/* @vite-ignore */ URL)).D3Tool as new () => D3ToolType;
    return new D3Tool();
}

const d3Tool = await loadD3Tool('n.n.nnn');

const data: SankeyDiagramData = {
    nodes: [
        { id: 'sourcing', name: 'Sourcing' },
        { id: 'contextualising', name: 'Contextualising' },
        { id: 'publishing', name: 'Publishing' }
    ],
    links: [
        { source: 'sourcing', target: 'contextualising', value: 8 },
        { source: 'contextualising', target: 'publishing', value: 5 }
    ]
};

const view = d3Tool.renderSankeyDiagram(data, renderTo);
// Call view.resize() after the container's size changes to redraw the layout.

License data is collected automatically on each release using license-checker. The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use 0BSD, Apache-2.0, BSD-2-Clause, BSD-3-Clause, EPL-2.0, ISC, MIT, or Unlicense — all permissive, commercially-friendly licenses. Users of the uploaded library are covered by these checks; developers cloning this repository should independently verify development dependencies.

|Dependency|Version|License(s)|Document| |:-|:-:|:-|:-| |@babel/code-frame|7.29.7|MIT|LICENSE| |@babel/generator|7.29.8|MIT|LICENSE| |@babel/helper-globals|7.29.7|MIT|LICENSE| |@babel/helper-module-imports|7.29.7|MIT|LICENSE| |@babel/helper-string-parser|7.29.7|MIT|LICENSE| |@babel/helper-validator-identifier|7.29.7|MIT|LICENSE| |@babel/parser|7.29.8|MIT|LICENSE| |@babel/runtime|7.29.7|MIT|LICENSE| |@babel/template|7.29.7|MIT|LICENSE| |@babel/traverse|7.29.8|MIT|LICENSE| |@babel/types|7.29.8|MIT|LICENSE| |@dagrejs/dagre|3.1.0|MIT|LICENSE| |@dagrejs/graphlib|4.0.3|MIT|LICENSE| |@dpuse/dpuse-shared|0.3.760|MIT|LICENSE| |@emotion/babel-plugin|11.13.5|MIT|LICENSE| |@emotion/cache|11.14.0|MIT|LICENSE| |@emotion/css|11.13.5|MIT|LICENSE| |@emotion/hash|0.9.2|MIT|LICENSE| |@emotion/memoize|0.9.0|MIT|LICENSE| |@emotion/serialize|1.3.3|MIT|LICENSE| |@emotion/sheet|1.4.0|MIT|LICENSE| |@emotion/unitless|0.10.0|MIT|LICENSE| |@emotion/utils|1.4.2|MIT|LICENSE| |@emotion/weak-memoize|0.4.0|MIT|LICENSE| |@jridgewell/gen-mapping|0.3.13|MIT|LICENSE| |@jridgewell/resolve-uri|3.1.2|MIT|LICENSE| |@jridgewell/sourcemap-codec|1.5.5|MIT|LICENSE| |@jridgewell/trace-mapping|0.3.31|MIT|LICENSE| |@juggle/resize-observer|3.4.0|Apache-2.0|LICENSE| |@mapbox/geojson-rewind|0.5.2|ISC|LICENSE| |@mapbox/jsonlint-lines-primitives|2.0.3|MIT|LICENSE| |@mapbox/mapbox-gl-supported|2.0.1|BSD-3-Clause|LICENSE| |@mapbox/point-geometry|0.1.0|ISC|LICENSE| |@mapbox/tiny-sdf|2.2.0|BSD-2-Clause|LICENSE| |@mapbox/unitbezier|0.0.1|BSD-2-Clause|LICENSE| |@mapbox/vector-tile|1.3.1|BSD-3-Clause|LICENSE| |@mapbox/whoots-js|3.1.0|ISC|LICENSE| |@observablehq/plot|0.6.17|ISC|LICENSE| |@tanstack/charts|0.6.5|MIT|LICENSE| |@types/d3-array|3.2.2|MIT|LICENSE| |@types/d3-axis|3.0.6|MIT|LICENSE| |@types/d3-brush|3.0.6|MIT|LICENSE| |@types/d3-chord|3.0.6|MIT|LICENSE| |@types/d3-collection|1.0.13|MIT|LICENSE| |@types/d3-color|3.1.3|MIT|LICENSE| |@types/d3-contour|3.0.6|MIT|LICENSE| |@types/d3-delaunay|6.0.4|MIT|LICENSE| |@types/d3-dispatch|3.0.7|MIT|LICENSE| |@types/d3-drag|3.0.7|MIT|LICENSE| |@types/d3-dsv|3.0.7|MIT|LICENSE| |@types/d3-ease|3.0.2|MIT|LICENSE| |@types/d3-fetch|3.0.7|MIT|LICENSE| |@types/d3-force|3.0.10|MIT|LICENSE| |@types/d3-format|3.0.4|MIT|LICENSE| |@types/d3-geo|3.1.1|MIT|LICENSE| |@types/d3-hierarchy|3.1.7|MIT|LICENSE| |@types/d3-interpolate|3.0.4|MIT|LICENSE| |@types/d3-path|1.0.11|MIT|LICENSE| |@types/d3-path|3.1.1|MIT|LICENSE| |@types/d3-polygon|3.0.2|MIT|LICENSE| |@types/d3-quadtree|3.0.6|MIT|LICENSE| |@types/d3-random|3.0.4|MIT|LICENSE| |@types/d3-sankey|0.12.5|MIT|LICENSE| |@types/d3-scale-chromatic|3.1.0|MIT|LICENSE| |@types/d3-scale|4.0.9|MIT|LICENSE| |@types/d3-selection|3.0.11|MIT|LICENSE| |@types/d3-shape|1.3.12|MIT|LICENSE| |@types/d3-shape|3.1.8|MIT|LICENSE| |@types/d3-time-format|4.0.3|MIT|LICENSE| |@types/d3-time|3.0.4|MIT|LICENSE| |@types/d3-timer|3.0.2|MIT|LICENSE| |@types/d3-transition|3.0.9|MIT|LICENSE| |@types/d3-zoom|3.0.8|MIT|LICENSE| |@types/d3|7.4.3|MIT|LICENSE| |@types/dagre|0.7.54|MIT|LICENSE| |@types/geojson|7946.0.16|MIT|LICENSE| |@types/leaflet|1.7.6|MIT|LICENSE| |@types/mapbox__point-geometry|0.1.4|MIT|LICENSE| |@types/mapbox__vector-tile|1.3.4|MIT|LICENSE| |@types/parse-json|4.0.2|MIT|LICENSE| |@types/pbf|3.0.5|MIT|LICENSE| |@types/supercluster|5.0.3|MIT|LICENSE| |@types/three|0.135.0|MIT|LICENSE| |@types/throttle-debounce|5.0.2|MIT|LICENSE| |@types/topojson-client|3.1.5|MIT|LICENSE| |@types/topojson-server|3.0.4|MIT|LICENSE| |@types/topojson-simplify|3.0.3|MIT|LICENSE| |@types/topojson-specification|1.0.5|MIT|LICENSE| |@types/topojson|3.2.6|MIT|LICENSE| |@unovis/dagre-layout|0.8.8-2|MIT|LICENSE| |@unovis/graphlibrary|2.2.0-2|MIT|LICENSE| |@unovis/ts|1.6.7|Apache-2.0|LICENSE| |babel-plugin-macros|3.1.0|MIT|LICENSE| |billboard.js|4.0.3|MIT|LICENSE| |binary-search-bounds|2.0.5|MIT|LICENSE| |callsites|3.1.0|MIT|LICENSE| |commander|2.20.3|MIT|LICENSE| |commander|7.2.0|MIT|LICENSE| |convert-source-map|1.9.0|MIT|LICENSE| |cosmiconfig|7.1.0|MIT|LICENSE| |csscolorparser|1.0.3|MIT|LICENSE| |csstype|3.2.3|MIT|LICENSE| |d3-array|3.2.4|ISC|LICENSE| |d3-axis|3.0.0|ISC|LICENSE| |d3-brush|3.0.0|ISC|LICENSE| |d3-chord|3.0.1|ISC|LICENSE| |d3-collection|1.0.7|BSD-3-Clause|LICENSE| |d3-color|3.1.0|ISC|LICENSE| |d3-contour|4.0.2|ISC|LICENSE| |d3-delaunay|6.0.4|ISC|LICENSE| |d3-dispatch|3.0.1|ISC|LICENSE| |d3-drag|3.0.0|ISC|LICENSE| |d3-dsv|3.0.1|ISC|LICENSE| |d3-ease|3.0.1|BSD-3-Clause|LICENSE| |d3-fetch|3.0.1|ISC|LICENSE| |d3-force|3.0.0|ISC|LICENSE| |d3-format|3.1.2|ISC|LICENSE| |d3-geo-projection|4.0.0|ISC|LICENSE| |d3-geo|3.1.1|ISC|LICENSE| |d3-hierarchy|3.1.2|ISC|LICENSE| |d3-interpolate-path|2.3.0|BSD-3-Clause|LICENSE| |d3-interpolate|3.0.1|ISC|LICENSE| |d3-path|3.1.0|ISC|LICENSE| |d3-polygon|3.0.1|ISC|LICENSE| |d3-quadtree|3.0.1|ISC|LICENSE| |d3-random|3.0.1|ISC|LICENSE| |d3-sankey|0.12.3|BSD-3-Clause|LICENSE| |d3-scale-chromatic|3.1.0|ISC|LICENSE| |d3-scale|4.0.2|ISC|LICENSE| |d3-selection|3.0.0|ISC|LICENSE| |d3-shape|3.2.0|ISC|LICENSE| |d3-time-format|4.1.0|ISC|LICENSE| |d3-time|3.1.0|ISC|LICENSE| |d3-timer|3.0.1|ISC|LICENSE| |d3-transition|3.0.1|ISC|LICENSE| |d3-zoom|3.0.0|ISC|LICENSE| |d3|7.9.0|ISC|LICENSE| |debug|4.4.3|MIT|LICENSE| |delaunator|5.1.0|ISC|LICENSE| |earcut|2.2.4|ISC|LICENSE| |elkjs|0.10.2|EPL-2.0|LICENSE| |error-ex|1.3.4|MIT|LICENSE| |es-errors|1.3.0|MIT|LICENSE| |escape-string-regexp|4.0.0|MIT|LICENSE| |find-root|1.1.0|MIT|LICENSE| |function-bind|1.1.2|MIT|LICENSE| |geojson-vt|3.2.1|ISC|LICENSE| |geojson|0.5.0|MIT|LICENSE| |get-stream|6.0.1|MIT|LICENSE| |gl-matrix|3.4.4|MIT|LICENSE| |global-prefix|3.0.0|MIT|LICENSE| |hasown|2.0.4|MIT|LICENSE| |iconv-lite|0.6.3|MIT|LICENSE| |ieee754|1.2.1|BSD-3-Clause|LICENSE| |import-fresh|3.3.1|MIT|LICENSE| |ini|1.3.8|ISC|LICENSE| |internmap|2.0.3|ISC|LICENSE| |interval-tree-1d|1.0.4|MIT|LICENSE| |is-arrayish|0.2.1|MIT|LICENSE| |is-core-module|2.16.2|MIT|LICENSE| |isexe|2.0.0|ISC|LICENSE| |isoformat|0.2.1|ISC|LICENSE| |js-tokens|4.0.0|MIT|LICENSE| |jsesc|3.1.0|MIT|LICENSE| |json-parse-even-better-errors|2.3.1|MIT|LICENSE| |kdbush|3.0.0|ISC|LICENSE| |kind-of|6.0.3|MIT|LICENSE| |leaflet|1.7.1|BSD-2-Clause|LICENSE| |lines-and-columns|1.2.4|MIT|LICENSE| |lodash-es|4.18.1|MIT|LICENSE| |maplibre-gl|2.4.0|BSD-3-Clause|LICENSE| |minimist|1.2.8|MIT|LICENSE| |ms|2.1.3|MIT|LICENSE| |murmurhash-js|1.0.0|MIT|LICENSE| |parent-module|1.0.1|MIT|LICENSE| |parse-json|5.2.0|MIT|LICENSE| |path-parse|1.0.7|MIT|LICENSE| |path-type|4.0.0|MIT|LICENSE| |pbf|3.3.0|BSD-3-Clause|LICENSE| |picocolors|1.1.1|ISC|LICENSE| |potpack|1.0.2|ISC|LICENSE| |protocol-buffers-schema|3.6.1|MIT|LICENSE| |quickselect|2.0.0|ISC|LICENSE| |resolve-from|4.0.0|MIT|LICENSE| |resolve-protobuf-schema|2.1.0|MIT|LICENSE| |resolve|1.22.12|MIT|LICENSE| |robust-predicates|3.0.3|Unlicense|LICENSE| |rw|1.3.3|BSD-3-Clause|LICENSE| |safer-buffer|2.1.2|MIT|LICENSE| |source-map|0.5.7|BSD-3-Clause|LICENSE| |striptags|3.2.0|MIT|LICENSE| |stylis|4.2.0|MIT|LICENSE| |supercluster|7.1.5|ISC|LICENSE| |supports-preserve-symlinks-flag|1.0.0|MIT|LICENSE| |three|0.135.0|MIT|LICENSE| |throttle-debounce|5.0.2|MIT|LICENSE| |tinyqueue|2.0.3|ISC|LICENSE| |topojson-client|3.1.0|ISC|LICENSE| |tslib|2.8.1|0BSD|LICENSE| |vt-pbf|3.1.3|MIT|LICENSE| |which|1.3.1|ISC|LICENSE| |yaml|1.10.3|ISC|LICENSE|

The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are simply mature and stable, requiring no active development.