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

@ananse/react

v0.1.0

Published

React OrgChart viewer and editor for Ananse — densities, search, reparent, inspector.

Readme

@ananse/react

npm downloads bundle size license

The design-forward React library for org charts, mind maps, and flow builders.

  • <OrgChart> — hierarchical org chart with search, focus, densities, and a built-in editor
  • <MindMap> — radial mind map
  • <FlowBuilder> — process DAG with legend + export
  • MIT · React 18.2+ or 19 · SSR-friendly

Install

pnpm add @ananse/react @ananse/core @ananse/tokens
# peers: react, react-dom (>=18.2)

Tokens auto-inject — no CSS import required.

Quickstart

import { OrgChart } from "@ananse/react";

const people = [
  { id: "ceo", name: "Ada Lovelace", title: "CEO", managerId: null },
  { id: "cto", name: "Grace Hopper", title: "CTO", managerId: "ceo" },
];

export default function App() {
  return <OrgChart defaultData={people} height="100vh" showSearch />;
}

Edit mode (no glue)

import { useState } from "react";
import { OrgChart } from "@ananse/react";

export function Editable({ initial }) {
  const [people, setPeople] = useState(initial);
  return (
    <OrgChart
      data={people}
      mode="edit"
      onChange={setPeople}
      height="100vh"
      showSearch
    />
  );
}

Undo/redo, drag-to-reparent, inspector, multi-select, vacant roles, and JSON export are built in. No editor={{ onReparent, onUndo, … }} wiring required.

| Pattern | API | |---------|-----| | Uncontrolled | defaultData + optional onChange | | Controlled | data + onChange | | Persist prototype | persistKey="org-v1" | | Advanced | useOrgChartEditor + editor prop |

Beyond people

OrgChart is a generic tree — accounts, products, geo, categories, anything hierarchical.

<OrgChart defaultData={accounts} domain="hierarchy" height="100vh" showSearch />

Mind map & flow

import { MindMap, FlowBuilder } from "@ananse/react";

<MindMap data={mindNodes} height="100vh" showExport />
<FlowBuilder nodes={steps} links={edges} height="100vh" showLegend showExport />

Customize

// Hide fields
<OrgChart data={people} fields={{ email: false, badges: false }} />

// Full card escape hatch
<OrgChart data={people} renderCard={(person) => <div>{person.name}</div>} />

Theme via CSS variables:

:root { --ananse-edge-highlight: #7c3aed; }

Extensibility

| Gap | API | |-----|-----| | i18n | labels / plugins[].labels | | Custom RF nodes/edges | nodeTypes, edgeTypes, getNodeType | | Free edges (matrix) | extraEdges + dottedLineManagerIds | | BYO layout | layout={(employees, opts) => LayoutResult} | | Replace inspector / vacant UI | renderInspector, renderAddVacant | | Light plugins | plugins={[{ id, labels, nodeTypes, edgeTypes }]} |

Docs & recipes

FAQ

Blank chart? Pass height="100vh" or ensure the parent has a real height. Dev builds warn when height ≈ 0.

SSR / Next? Use dynamic(() => import("@ananse/react").then(m => m.OrgChart), { ssr: false }).

Save to my API? onChange or onMutation — see the persist recipe.

License

MIT