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

@ichigo_san/graphing

v1.0.20

Published

A lightweight UML-style diagram editor built with React Flow and Tailwind CSS

Readme

Graphing

Graphing is a lightweight UML-style diagram editor built with React Flow and Tailwind CSS. It can be used as a standalone app or as a library inside another React/Next.js project.

Features

  • Render and edit diagrams from JSON
  • Validate against a built‑in schema
  • Auto layout helpers
  • Copy/paste and delete
  • Export to JSON or draw.io XML
  • Optional dark mode support with darker canvas and bright icons

Development

npm install
npm start

Run the test suite:

npm test

Building the library

The source files are compiled with Babel into the dist directory. Build them with:

npm run build:lib

# Optional: rebuild the stylesheet
npm run build:css

This command is also run automatically when publishing thanks to the prepare script in package.json.

Using in another project

After running the build you can install the package locally or from npm. In a project that already has React and Tailwind configured run:

npm install path/to/graphing
# or once published
npm install graphing

Import the editor component. The bundled stylesheet is now loaded automatically. All styles are prefixed with the .graphing class so they don't clash with your application's CSS. The ArchitectureDiagramEditor element already includes this class on its root container. The optional mode prop controls the initial UI theme ("light" or "dark"). You can also enable a built-in theme switcher in the View menu by passing showThemeToggle. For development builds you can expose a menu option to toggle a miniature preview by passing showMiniToggle and handling the onToggleMini callback. Dark mode now dims the canvas and brightens icons for better contrast.

import { ArchitectureDiagramEditor } from 'graphing';

const example = {
  containers: [
    {
      id: 'container-1',
      label: 'Frontend',
      position: { x: 100, y: 100 },
      size: { width: 300, height: 200 },
      icon: '🖥️'
    }
  ],
  nodes: [
    {
      id: 'component-1',
      label: 'React UI',
      position: { x: 120, y: 150 },
      parentContainer: 'container-1'
    }
  ],
  connections: []
};

function Example() {
  return (
    <div style={{ width: 600, height: 400 }}>
      <ArchitectureDiagramEditor
        diagram={example}
        mode="dark"
        showThemeToggle
        showMiniToggle
      />
    </div>
  );
}

Publishing to npm

  1. Ensure you are logged in with npm login.
  2. Update the version with npm version <patch|minor|major>.
  3. Run npm publish.

After publishing the package can be installed anywhere with:

npm install graphing

License

MIT