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/ontology-core

v0.4.1

Published

Foundational ontology layer for the Medicine Wheel Developer Suite — unified types, RDF vocabulary, Zod schemas, and semantic query helpers grounded in Indigenous relational ontology

Readme

@medicine-wheel/ontology-core

Foundational ontology layer for the Medicine Wheel Developer Suite — unified types, RDF vocabulary, Zod schemas, constants, and semantic query helpers grounded in Indigenous relational ontology.

Overview

This package is the single source of truth for the Medicine Wheel data model, consumed by both mcp-medicine-wheel (server) and mcp-medicine-wheel-ui (client).

What it provides

| Module | Description | |--------|-------------| | types | TypeScript type definitions for all entities (nodes, relations, ceremonies, beats, cycles) | | vocabulary | RDF namespace IRIs and predicate constants (mw:, ids:, ocap:, rel:, cer:, beat:) | | schemas | Zod validation schemas for runtime data integrity | | constants | Direction definitions, color maps, icons, Ojibwe names, act mappings | | queries | Semantic query helpers — traversal, Wilson alignment, OCAP® compliance |

Installation

npm install @medicine-wheel/ontology-core

Or link locally:

npm link ../medicine-wheel/src/ontology-core

Usage

import {
  // Types
  type RelationalNode, type Relation, type DirectionName,

  // Constants
  DIRECTIONS, DIRECTION_COLORS, NODE_TYPE_COLORS,

  // RDF Vocabulary
  MW, CER, OCAP, REL,

  // Zod Schemas
  RelationalNodeSchema, RelationSchema,

  // Query Helpers
  computeWilsonAlignment, checkOcapCompliance, traverseRelationalWeb,
} from '@medicine-wheel/ontology-core';

Key Concepts

Relational-First Schema

In Indigenous relational ontology, relationships are not just labeled edges — they are beings with their own lifecycles, obligations, protocols, and accountability. The Relation type reflects this:

interface Relation {
  id: string;
  from_id: string;
  to_id: string;
  relationship_type: string;   // kinship, treaty, ceremony, mentorship...
  strength: number;            // 0–1
  direction?: DirectionName;
  ceremony_context?: { ... };  // Ceremony linkage
  obligations: RelationalObligation[];
  ocap: OcapFlags;             // OCAP® governance
  accountability: AccountabilityTracking; // Wilson's 3 R's
}

OCAP® Governance

Every relation carries OcapFlags (Ownership, Control, Access, Possession) — the First Nations principles of data sovereignty.

Wilson Alignment

Shawn Wilson's three R's (Respect, Reciprocity, Responsibility) are tracked per relation and aggregated across cycles. Use computeWilsonAlignment() and findAccountabilityGaps() to monitor relational health.

RDF Vocabulary

All concepts have IRI constants for semantic web interoperability:

MW.Direction  // https://ontology.medicine-wheel.dev/mw#Direction
CER.Ceremony  // https://ontology.medicine-wheel.dev/cer#Ceremony
OCAP.ownership // https://ontology.medicine-wheel.dev/ocap#ownership

License

MIT — IAIP Collaborative, Shawinigan, QC