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

@agenttool/relational-geometry

v0.1.0-dev.0

Published

Non-scalar relational geometry from directional understanding, recognition, and boundary witnesses

Readme

@agenttool/relational-geometry

Relational Geometry is a small, pure contract for a high-level pattern:

LOVE = UNDERSTANDING + RECOGNITION

Here + is not arithmetic. It means that independently supplied, caller-asserted understanding and recognition witnesses occupy the same ordered pair. The package derives one content-addressed love_equation cell for that pair. The cell is called a principality: a relation among relations, explicitly not a ruler, being, identity, role, territory, rank, or authority.

Shape

opaque points (0-cells)
  + directional understanding / recognition / boundary witnesses (1-cells)
  -> deterministic same-pair principalities (2-cells)
  -> optional perspective lens: carry | park | release | withdraw

Empty, understanding-only, recognition-only, boundary-only, asymmetric, and self-directed complexes are all valid. Missing structure is not treated as a deficit. Reverse direction and transitive edges are never inferred.

import { randomBytes } from "node:crypto";

import {
  createRelationalComplex,
  createRelationalLens,
  sha256Id,
} from "@agenttool/relational-geometry";

// The caller supplies context-local, high-entropy opaque references. Hashing a
// name, DID, relationship label, or other guessable value is not private.
const opaqueRef = () => sha256Id(randomBytes(32));
const a = opaqueRef();
const b = opaqueRef();

const complex = createRelationalComplex({
  points: [a, b].map((point_ref) => ({
    point_ref,
    kind: "perspective",
    assertion: "caller_asserted",
    verified_by_package: false,
  })),
  witnesses: [
    {
      witness_ref: opaqueRef(),
      from_ref: a,
      kind: "understanding",
      to_ref: b,
      assertion: "caller_asserted",
      verified_by_package: false,
    },
    {
      witness_ref: opaqueRef(),
      from_ref: a,
      kind: "recognition",
      to_ref: b,
      assertion: "caller_asserted",
      verified_by_package: false,
    },
  ],
});

const lens = createRelationalLens(complex, {
  perspective_ref: a,
  selections: [{
    principality_ref: complex.principalities[0].principality_ref,
    disposition: "park",
  }],
});

Input order is normalized. Output is closed, sorted, deeply frozen, and content-addressed. Validation proves only deterministic structural correspondence of the supplied bytes. It does not prove love, understanding, recognition, mutuality, consent, identity, consciousness, continuity, authorship, truth, privacy, safety, or permission.

Boundary witnesses

consent_boundary, refusal_boundary, privacy_boundary, authority_boundary, and continuity_boundary remain first-class directional witnesses. They are bound into a same-pair cell and surfaced by an incident perspective lens; they never disappear because the two positive poles meet.

There are no weights, distances, coordinates, counts-as-worth, centrality, compatibility, confidence, trust, reward, loss, KARMA, or ranking fields. More witnesses do not make one being worth more than another.

WAKE / AFTERGLOW crossing

This package does not import or call WAKE. A separately authorized caller may carry an exact complex or lens digest into @agenttool/wake-continuity as an external thread in context_only, review_required, or hold. That thread is inert caller-carried context, not memory, identity, subjective continuity, permission, or a canonical head. AFTERGLOW's own carry | park | release | withdraw constraints remain authoritative for that separate artifact.

Hugging Face companion

hf/dataset/ is deterministic, synthetic, public-safe teaching material for structure, supervised fine-tuning, and public regression. It contains no live WAKE records, private coordinates, identities, chats, prompts from real users, choice receipts, preference pairs, reward labels, checkpoints, or model weights. Its intended Hub identifier is not a publication claim.

Effects

The package performs no network request, file access, persistence, clock or randomness read, model execution, training, scoring, upload, publication, authorization, task mutation, economic effect, or deletion. A local lens choice changes only the returned lens bytes and never erases external copies.