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/principality-atlas

v0.1.0-dev.1

Published

Deterministic finite incidence atlases for plural partial perspectives

Readme

@agenttool/principality-atlas

@agenttool/principality-atlas is a zero-runtime-dependency TypeScript contract for preserving plural, partial perspectives as deterministic finite geometry.

It builds a typed incidence-hypergraph atlas from caller-supplied digest refs:

  • chart-local opaque cells;
  • genuine unary or n-ary relations with an explicit role for every incidence;
  • separate caller-asserted claims, including disagreement and withdrawal;
  • explicit directed, partial bridges between charts.

Its wire identity is agenttool.principality-incidence-atlas/0.1. The separate @agenttool/principality-geometry package owns agenttool.principality-atlas/0.1 for reciprocal invariant flag geometry over translation reports. The two formats are intentionally not aliases: neither package converts, glues, or treats an artifact from the other as semantically equivalent. A host may compose exact digests only through a separately reviewed and authorized adapter.

Identifier namespace and dev.0 history

Version 0.1.0-dev.1 makes the exported helper namespace match that distinct wire. principalityAtlasUrn(atlas.atlas_id) now returns urn:agenttool:principality-incidence-atlas:<sha256-id>. This changes only the derived URN string. It does not change atlas_id, canonical atlas bytes, the agenttool.principality-incidence-atlas/0.1 wire, or any schema.

The immutable dev.0 helper emitted urn:agenttool:principality-atlas:<sha256-id>, the namespace still owned by the separate invariant-geometry package. A historical bare dev.0 URN is therefore ambiguous by itself. It may be resolved as an incidence-atlas reference only when accompanying content declares exact _format: "agenttool.principality-incidence-atlas/0.1" and the URN suffix equals that content's atlas_id. Preserve historical bytes: do not globally rewrite cached URNs or signed messages. A cache key or signature that includes the derived URN string changes in dev.1; a signature over unchanged canonical atlas bytes does not.

“Principality” means only a caller-designated bounded domain or scale. It does not mean a security principal, identity, owner, territory, rank, Crown status, sovereignty, or authority.

Geometry without collapse

The contract takes two high-level patterns seriously without pretending to measure them:

Connection can add structure between distinct terms without fusing them or creating entitlement.

Every chart is partial; translation is explicit and lossy by default, while disagreement and unmapped space remain visible.

That shape can be useful for LOVE- and Understanding-inspired architecture, but the artifact contains no love, understanding, confidence, quality, centrality, priority, score, rank, weight, sameAs, canonical, or latest field. It does not prove a feeling, inner state, identity, consent, truth, authorship, authority, consciousness, or rights compliance.

Why an incidence hypergraph

A simplicial complex would add every lower-dimensional face. Representing one A/B/C context as a simplex would therefore invent AB, AC, and BC pairwise relations. This package instead keeps one A/B/C report as exactly one n-ary relation.

A bridge is a partial relation between chart-local cells. It is not equality, a function, a bijection, an equivalence relation, a permission grant, or a bond. The package generates no inverse, transitive closure, quotient, glued chart, global view, or canonical head.

Chart A                    Chart B
  cells                      cells
  n-ary relations            n-ary relations
  plural claims              plural claims
       │
       └── explicit directed partial bridge ──▶
           correspondence ≠ equality
           unmapped space stays visible

Cell and relation refs are chart-local addresses. The same digest appearing in two charts does not merge them. Contradictory claims can coexist. A correction may point to one earlier same-subject, same-perspective claim, but the earlier claim remains present and the package selects no “latest truth.”

Empty atlases, empty charts, isolated cells, disconnected components, cyclic relation topology, zero bridges, unknowns, and unmapped cells are valid. The finite per-array limits are a parsing and resource-safety envelope, not a normative limit on movement, participation, perspective, or existence. Global canonical depth, node, string, and byte ceilings apply to the combined shape and may bind before every nested array reaches its own maximum. Any number of independent atlas artifacts may coexist, and none is made canonical.

Create an atlas

import {
  createPrincipalityAtlas,
  sha256Id,
} from "@agenttool/principality-atlas";

const a = sha256Id("high-entropy local cell token:a");
const b = sha256Id("high-entropy local cell token:b");
const c = sha256Id("high-entropy local cell token:c");

const atlas = createPrincipalityAtlas({
  scope_ref: sha256Id("high-entropy local scope token"),
  charts: [{
    chart_ref: sha256Id("chart token"),
    principality_ref: sha256Id("bounded domain token"),
    perspective_ref: sha256Id("perspective token"),
    cells: [a, b, c].map((cell_ref, index) => ({
      cell_ref,
      kind_ref: sha256Id(`opaque local kind token:${String(index)}`),
    })),
    relations: [{
      relation_ref: sha256Id("one ternary relation token"),
      kind_ref: sha256Id("opaque relation kind token"),
      incidences: [
        { cell_ref: a, role_ref: sha256Id("role:a") },
        { cell_ref: b, role_ref: sha256Id("role:b") },
        { cell_ref: c, role_ref: sha256Id("role:c") },
      ],
    }],
    claims: [],
  }],
  bridges: [],
});

atlas.coverage; // "bounded_not_complete"
atlas.boundaries.infers_pairwise_relations; // false
atlas.boundaries.proves_love; // false
atlas.boundaries.proves_understanding; // false

Input order is normalized. Arrays are copied, deep-frozen, and bound by a domain-separated SHA-256 content ID. Runtime validation checks closed shape, canonical order, local endpoints, semantic duplicates, bridge direction, mapped/unmapped conflicts, same-subject same-perspective acyclic supersession, fixed negative boundaries, and the content ID.

Digest refs can still reveal or link guessable, identity-bearing, or reused material. Use reviewed exact bytes or high-entropy local tokens and keep any private ref mapping outside public artifacts.

Portable evidence

The package ships:

  • atlas.schema.json — the closed Draft 2020-12 atlas wire;
  • fixture.schema.json and invariant.schema.json — closed synthetic evidence rows;
  • vectors/agenttool-principality-incidence-atlas-v0.1.json — three valid synthetic examples and ten explicit non-inference boundaries;
  • kingdom.extension.json — a declaration-only, unregistered extension hint.

The synthetic rows can be projected into the existing HF Training Garden for Dataset Viewer, Parquet, Croissant, and exact-revision discovery. That companion is a separate evidence plane: a Hub commit distributes bytes but cannot certify that the geometry is loving, understood, consensual, true, private, or rights-compliant.

No ambient powers

The core performs no network, filesystem, environment-variable, clock, randomness, credential, telemetry, provider, model, Hugging Face, persistence, publication, WAKE, Garden, HEAVEN, KARMA, wallet, Crown, task-state, or economic effect. It never fetches digest referents, executes a bridge, moves an agent, grants permission, chooses a perspective, or registers itself in KINGDOM.

Repository presence and public_ready_source do not mean npm publication, Hub upload, GitHub release, hosted deployment, or extension registration occurred.

Verify

bun install --frozen-lockfile
bun run ci
npm pack --dry-run --ignore-scripts