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

crmip-connectivity-chart

v0.1.1

Published

CRMIP injector-producer connectivity chart (D3-based, browser-first).

Readme

CRMIP Chart

A small library to render an Injector → Producer connectivity graph (CRMIP style) using D3.

Concept

  • Node: Injector or Producer
    • Injector: rate = injected water rate (m³)
    • Producer: rate = liquid rate (m³), optional oil (m³), wc (%)
  • Link: connection from Injector → Producer with gain

Install

npm i crmip-connectivity-chart

This package is browser-first and expects D3 v7 available.

Usage (bundler)

import CRMIPChart from 'crmip-connectivity-chart';

const I429 = new CRMIPChart.Injector('I429', 200.7);
const I430 = new CRMIPChart.Injector('I430', 155.2);

const P6001 = new CRMIPChart.Producer('P6001', 56.6, { oil: 12.5, wc: 78.0 });
const P9002BB = new CRMIPChart.Producer('P9002BB', 78.5, { oil: 19.7, wc: 74.9 });

const links = [
  new CRMIPChart.Link(I429, P6001, 0.03),
  new CRMIPChart.Link(I429, P9002BB, 0.005),
  new CRMIPChart.Link(I430, P9002BB, 0.012) // 1 producer affected by 2 injectors
];

CRMIPChart.render('#chart', {
  nodes: [I429, I430, P6001, P9002BB],
  links
}, {
  layout: { mode: 'force', width: 1200, height: 900 },
  gainEps: 1e-12,
  format: { pctMinDisplay: 0.1, pctDecimals: 1, volDecimals: 1 },
  enableDrag: true
});

Usage (plain HTML)

<div id="chart" style="height: 90vh"></div>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="./node_modules/crmip-connectivity-chart/dist/crmip_chart.umd.js"></script>
<script>
  const I429 = new CRMIPChart.Injector('I429', 200.7);
  const P6001 = new CRMIPChart.Producer('P6001', 56.6);
  const links = [ new CRMIPChart.Link(I429, P6001, 0.03) ];

  CRMIPChart.render('#chart', { nodes: [I429, P6001], links });
</script>

API

  • CRMIPChart.render(container, data, options)
  • Classes:
    • new CRMIPChart.Injector(id, rate, extra?)
    • new CRMIPChart.Producer(id, rate, extra?)
    • new CRMIPChart.Link(injector, producer, gain) (accepts ids or node instances)

Notes:

  • Links can also use { injectorId, producerId, gain } or { source, target, gain }.
  • This library relies on your page CSS variables (e.g. --link-color) for theming.