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

interactive-process-graphs

v1.0.1

Published

[![CI/CD](https://github.com/joonaruutiainen/interactive-process-graphs/actions/workflows/cicd.yml/badge.svg?branch=main)](https://github.com/joonaruutiainen/interactive-process-graphs/actions/workflows/cicd.yml) [![Quality Gate Status](https://sonarcloud

Readme

Interactive process graphs with React

CI/CD Quality Gate Status License npm Repository

This project was done as part of the "Software Engineering Project" -course at Tampere University (autumn 2021). The goal of the project was to produce a React component package for drawing interactive process graphs for visualizing data structures that represent industrial production processes. The project topic was given by Elomatic Oy as part of development of a process traceability program for industrial uses.

Getting started

Run npm install interactive-process-graphs to install the package via NPM.

Then provide your nodes and edges for the ProcessGraph component:

import { ProcessGraph } from 'interactive-process-graphs';

const MyApp = () => {
  return <ProcessGraph
    nodes={[{ id: 0, type: 'pipe' }, { id: 1, type: 'tank' }]}
    edges={[{ from: 0, to: 1 }]}
    width={666}
    height={420}
  >;
};

See the examples directory for examples of theming, custom icons, custom tools for the toolbar, and more.

Development

  1. Clone this repository
  2. Run npm install --legacy-peer-deps to install dependencies
  3. Run npm start to start the test application in development mode

VSCode Plugins

Packaging

The distributable is created with Babel and Rollup and published to NPM. How to create a new release:

  1. Bump version number in package.json
  2. npm run build
  3. npm publish

Theming

A custom theme can be provided for the ProcessGraph component via the theme prop. Light theme is used as default but this package includes a dark theme as well. Changing theme at runtime is currently not supported. The theme prop should be of the following format:

{
  "borderRadius": 7,
  "fontFamily": "Helvetica",
  "palette": {
    "common": {
      "black": "#000000",
      "white": "#ffffff"
    },
    "primary": {
      "main": "#ffffff",
      "text": "#000000"
    },
    "secondary": {
      "main": "#dfe4e7",
      "text": "#ffffff"
    },
    "background": {
      "main": "#bfbfbf",
      "text": "#000000"
    }
  }
}

Where:

  • The primary color is for the background of the buttons and nodes,
  • the secondary color is for the edges,
  • and the background color is for the background of the canvas.

Icons

Icons for node types can be provided as a prop to ProcessGraph. ProcessGraph expects icons that are already imported, as a object of type IconMap([key: string]: string;). The key should correspond with types present in the application and value should be an url of an imported icon, e.g. pipe: "/static/media/pipe.842fbf6a.svg". If a matching icon is not found, no icon is used. Some default icons are provided with the package.

Default icons provided with the package:

axe, cooling_tank, cut, drill, filter, hammer, input, measurement, mix_tank, mortar, paint, pipe, pliers, pump, reactor, saw, screw_feeder, screw, tank, transport, wrench

Helper function iconImporter is provided for easily importing all the icons inside a given folder, using Webpack's require.context.