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

meaning-engine

v0.1.2

Published

A semantic graph engine that treats knowledge as a computable, projectable, navigable structure

Downloads

366

Readme

Meaning Engine

CI npm version license node

A semantic graph engine that treats knowledge as a computable, projectable, navigable structure.

Core formula: V = P(G, F, C, S, Pr) — ViewModel is a pure projection of the graph, given focus, context, schema, and parameters.

Quick Start

git clone https://github.com/utemix-org/meaning-engine.git
cd meaning-engine
npm install
npm test    # 662 tests, all green

Canonical Demo

Question: "How is the Projection spec connected to the knowledge evaluation code?"

node operators/runReasoningReport.js --baseline

Expected output (excerpt):

## documentation-world
Graph: 116 nodes, 292 edges

### ✓ Rival Explanations
- Route: PROJECTION_SPEC → evaluate.js
- Rival count: 13
- Clusters: 3
- Strength distribution: 1 invariant-passing, 2 concept-mediated, 10 code-dependency
> Strength: mixed (strongest + medium + weaker)

## authored-mini-world
Graph: 25 nodes, 27 edges

### ✓ Path Exists
- Route: Type Theory Overview → Coq Proof
- Result: PATH (3 hops)
> Strength: strong
> full epistemic chain: spec→concept→invariant→evidence

The report runs 4 scenarios on 2 worlds (extracted + authored): path discovery, directed boundaries, rival explanations, and gap detection with bridge candidates.

See also:

  • node operators/runDualWorldSmokeWorkflow.js — raw dual-world baseline
  • node operators/runReasoningReport.js --world authored-mini-world --scenario rival_explanations — filtered view

The Idea

Meaning Engine models knowledge as a typed semantic graph where:

  • Nodes represent entities (concepts, specifications, evidence, code artifacts)
  • Edges encode typed relationships (defines, constrains, implements, depends_on, ...)
  • Projection computes what is visible from any point in the graph
  • Navigation provides formal transitions (select, drillDown, drillUp, reset)
  • Operators derive structural insights: trace paths, detect gaps, compare rival explanations

The engine is world-agnostic: you bring your own graph, the engine provides the computational substrate.

Worlds

The repo ships with two reference worlds:

| World | Type | Nodes | Edges | Purpose | |-------|------|-------|-------|---------| | documentation-world | extracted | 116 | 292 | Engine docs as semantic graph | | authored-mini-world | authored | 25 | 27 | Type Theory domain (stress test) |

To create your own world, see MAKE_YOUR_FIRST_WORLD.md and WORLD_INPUT_FORMAT.md.

Architecture

See ARCHITECTURE.md for the full breakdown.

src/                     Engine core
├── core/
│   ├── GraphModel       World-agnostic graph (nodes + links)
│   ├── projection/      Focus → visible subgraph → roles → ViewModel
│   ├── navigation/      Formal state transitions with invariants
│   ├── knowledge/       Epistemic substrate (propose → verify → canonicalize)
│   └── types/           Protocol types (node, edge, statement)
├── engine/              WorldAdapter, Schema, SpecificationReader
└── highlight/           Highlight model

operators/               Graph analysis operators
├── trace.js             Shortest-path trace or gap detection
├── compare.js           Rival path comparison + clustering
├── supports.js          Operator applicability checks + bridge candidates
├── runReasoningReport.js   CLI markdown report generator
└── runDualWorldSmokeWorkflow.js   Dual-world calibration runner

worlds/                  Reference worlds
├── documentation-world/ Engine docs as a semantic graph (extracted)
└── authored-mini-world/ Type Theory domain (authored)

Key Invariants

| ID | Rule | |----|------| | KE1 | Only canonical statements produce graph nodes | | KE2 | Reject never mutates the graph | | KE3 | Every graph change traces to an epistemic event | | KE4 | Evaluate is idempotent | | KE5 | Graph rebuild preserves ViewModel stability | | NAV | Navigation transitions are reversible and type-safe | | PROJ | Projection is a pure function of (graph, focus, params) |

Tests

npm test              # 662 tests across 34 suites
npm run test:watch    # watch mode
npm run test:coverage # with coverage report

License

MIT