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

@abeedoo/dendrite

v2.0.2

Published

Interactive mind map visualization — Canvas and SVG renderers

Readme

@abeedoo/dendrite

Interactive mind map visualization with Canvas and SVG renderers. Zero dependencies.

Live Demo · npm · GitHub

Originally built with Processing.js (2012), rewritten as a modern ES module with dual renderers.

Install

npm install @abeedoo/dendrite

Or use a script tag:

<script src="https://unpkg.com/@abeedoo/dendrite"></script>

Quick Start

Script tag (zero config)

<div class="dendrite-svg" data-dendrite='{
  "label": "my project",
  "right": ["frontend", "backend", "docs"],
  "left": ["tests", "deploy", "monitoring"]
}'></div>

<script src="https://unpkg.com/@abeedoo/dendrite"></script>

The standalone build auto-discovers elements with class="dendrite-svg" or data-dendrite and initializes them.

ES module

import { Dendrite } from '@abeedoo/dendrite';

const map = new Dendrite('#my-container', {
  renderer: 'svg',  // or 'canvas'
  data: {
    label: 'root',
    right: [
      { label: 'code', children: ['frontend', 'backend'] },
      'docs'
    ],
    left: ['tests', 'deploy']
  }
});

Svelte

<script>
  import { DendriteMap } from '@abeedoo/dendrite/svelte';

  let data = {
    label: 'project',
    right: ['ui', 'api'],
    left: ['tests', 'infra']
  };
</script>

<DendriteMap {data} renderer="svg" height={500} />

Data Formats

Nested with explicit sides

{
  label: 'root',
  right: [
    { label: 'parent', children: ['child1', 'child2'] },
    'leaf node'
  ],
  left: ['node a', 'node b']
}

Nested with auto-split

{
  label: 'root',
  children: ['a', 'b', 'c', 'd']  // first half right, second half left
}

Flat adjacency list

[
  { id: 'root', label: 'projects' },
  { id: 'web', parentId: 'root', label: 'web app' },
  { id: 'api', parentId: 'root', label: 'api' },
  { id: 'auth', parentId: 'api', label: 'auth service' }
]

String items in children arrays become leaf nodes.

API

new Dendrite(container, options?)

| Option | Type | Default | Description | |--------|------|---------|-------------| | renderer | 'svg' | 'canvas' | 'svg' | Rendering engine | | data | object | array | demo data | Tree data (any format above) | | height | number | 500 | Canvas/SVG height in pixels | | colors | object | theme defaults | Override colors (see below) |

Methods

map.getData()    // export tree as JSON (nested left/right format)
map.setData(d)   // reinitialize with new data
map.destroy()    // cleanup and remove elements

Colors

new Dendrite('#el', {
  colors: {
    primary: '#7c5cff',    // right-side nodes
    secondary: '#2de2e6',  // left-side nodes
    bg: '#060812',         // background (canvas only)
    text: '#e8eefc',       // labels
    muted: '#a9b6d8',      // secondary text
    stroke: 'rgba(255,255,255,0.1)' // borders
  }
});

Interaction

  • Drag nodes to reposition — children follow
  • Hover a node to reveal the + button
  • Click + and drag to create a child node (live bezier preview)
  • Double-click a node to rename it inline
  • Nodes flip direction (and color) when dragged across the center line

Renderers

SVG (default)

  • Real DOM elements — text is selectable, accessible
  • CSS hover transitions and :hover states for free
  • Native inline editing via <foreignObject>
  • No DPR scaling needed
  • Best for most use cases

Canvas

  • requestAnimationFrame render loop
  • Manual DPR scaling for crisp rendering
  • Better for very large trees (500+ nodes)
  • Overlay <input> for editing

Build

npm install
npm run build   # outputs dist/dendrite.esm.js + dist/dendrite.min.js

License

MIT — Clifford Meece