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

medicine-wheel-graph-viz

v0.1.3

Published

Medicine Wheel graph visualization — circular layout with four-direction node positioning, ceremony-aware edges, and OCAP® indicators

Downloads

425

Readme

medicine-wheel-graph-viz

Medicine Wheel graph visualization — circular layout with four-direction node positioning, ceremony-aware edges, and OCAP® indicators.

Features

  • Circular medicine wheel layout — nodes positioned by direction (East/South/West/North)
  • Direction quadrant backgrounds with Ojibwe names
  • Ceremony-aware edges — gold dashed lines for honored relations
  • OCAP® indicators — red/green dots showing compliance status
  • Wilson alignment halos — color-coded rings showing relational accountability
  • Hover highlighting — dims unconnected nodes, highlights neighbors
  • Pure SVG React — no D3 runtime dependency, SSR-compatible
  • Dark mode by default

Installation

npm install medicine-wheel-graph-viz medicine-wheel-ontology-core

Usage

import { MedicineWheelGraph, buildGraphData } from 'medicine-wheel-graph-viz';

// From ontology-core data
const graphData = buildGraphData(relationalNodes, relationalEdges);

<MedicineWheelGraph
  data={graphData}
  width={600}
  height={600}
  showDirectionLabels
  showQuadrants
  showNodeLabels
  darkMode
  onNodeClick={(node) => console.log('Clicked:', node.label)}
/>

Manual data

const data = {
  nodes: [
    { id: 'n1', label: 'Ceremony', type: 'spirit', direction: 'east' },
    { id: 'n2', label: 'Elder', type: 'human', direction: 'north' },
  ],
  links: [
    { source: 'n1', target: 'n2', label: 'guides', ceremonyHonored: true },
  ],
};

<MedicineWheelGraph data={data} />

API

<MedicineWheelGraph> Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | data | MWGraphData | required | Nodes and links | | width | number | 600 | SVG width | | height | number | 600 | SVG height | | layout | Partial<WheelLayoutConfig> | auto | Layout configuration | | showDirectionLabels | boolean | true | Show direction labels | | showQuadrants | boolean | true | Show quadrant backgrounds | | showNodeLabels | boolean | true | Show node labels | | showLinkLabels | boolean | false | Show link labels | | showOcapIndicators | boolean | false | Show OCAP® compliance dots | | showWilsonHalos | boolean | false | Show Wilson alignment halos | | darkMode | boolean | true | Dark background | | onNodeClick | (node) => void | - | Node click handler | | onNodeHover | (node\|null) => void | - | Node hover handler | | onLinkClick | (link) => void | - | Link click handler |

Layout Engine (headless)

import { applyWheelLayout, getQuadrantGeometries } from 'medicine-wheel-graph-viz';

const positioned = applyWheelLayout(data, { radius: 300, centerX: 400, centerY: 400 });

Data Converters

import { buildGraphData, nodesToGraphNodes, edgesToGraphLinks } from 'medicine-wheel-graph-viz';

License

MIT — IAIP Collaborative, Shawinigan, QC