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

@agenticprimitives/ontology

v1.0.0-alpha.9

Published

Monorepo-wide formal vocabulary (RDFS/OWL T-box + SHACL/SKOS C-box + A-box fixtures) for agentic primitives. Off-chain source of truth the on-chain ontology (ADR-0009) instantiates. Ships TTL/JSON-LD artifacts + typed IRI constants.

Readme

@agenticprimitives/ontology

A trust substrate is only as coherent as its vocabulary. When thirty packages, forty-two contracts, and a knowledge graph all talk about agents, credentials, custody, and delegation, "what exactly is a CredentialFacet" cannot have thirty answers. This package is the monorepo-wide formal vocabulary — the off-chain source of truth that the on-chain ontology (ADR-0009) instantiates and that identity-directory (spec 223) conforms to.

It is deliberately declarative: it names and constrains, it never authorizes. The vocabulary root depends on nothing — not even @agenticprimitives/types — so every other package can reference the same IRIs without inverting the dependency graph.

Part of agenticprimitives — the trust substrate for the agent economy: one canonical Smart Agent identity with custody, delegation, naming, credentials, and audit evidence designed as one system.

See spec 225 for the full contract and ADR-0018 for the decision.

Layout (T-box / C-box / A-box)

context.jsonld   @context — namespace prefix → IRI bindings
tbox/            RDFS/OWL schema (classes + properties), per domain
cbox/            SHACL shapes + SKOS controlled vocabularies (codelists)
abox/            example / fixture instances (tests + golden vectors only)
mappings/        external-standard crosswalks (HCS / ERC-8004, spec 226)
src/index.ts     typed IRI constants + artifact paths

T-box = terminology, C-box = constraints + controlled vocabularies, A-box = instances.

Usage

import { NS, CLASS, SHAPE, ARTIFACTS, artifactPath } from '@agenticprimitives/ontology';

CLASS.CanonicalAgentId; // "https://agenticprimitives.dev/ns/core#CanonicalAgentId"
artifactPath(ARTIFACTS.tbox[0]); // absolute path to tbox/core.ttl — load into a SPARQL store

Two entry points, split on purpose:

  • Main entry (browser-safe) — pure IRI constants: NS, CLASS, PREDICATE, SHAPE, ONTOLOGY_VERSION. No Node builtins; this is what identity-directory (and through it, browser apps) imports.
  • /artifacts subpath (Node-only)ARTIFACTS + artifactPath(rel) to resolve the shipped TTL/JSON-LD files for a SPARQL loader or SHACL engine. Server-side only.

How it's different

Generic SKOS/SHACL toolchains manage vocabularies as documents — governed in an editor, detached from the systems that depend on them, drifting the moment runtime code changes. Here the vocabulary is load-bearing and lockstep-checked in three directions:

  1. On chain — a shape or predicate here must match its on-chain counterpart in OntologyTermRegistry / ShapeRegistry (spec 225 §8); drift is logged as a finding, not tolerated as skew.
  2. In TypeScript — the IRIs mirror the branded types in types (CanonicalAgentId, Assurance, …). One brand; this package names the IRI, never redefines the type.
  3. Across standardsmappings/*.ttl carries explicit crosswalks to external agent-identity standards (HCS, ERC-8004) instead of informal "roughly corresponds to" prose.

And it ships light: no heavy RDF/SHACL libraries in the published surface — consumers wire their own engines against the artifacts.

Scope

Bounded to the agent-trust core — identity, credential, custody, delegation, audit, naming, org — plus the substrate-spine T-box class definitions (spec 225 §11.5). Runtime SHACL shapes for spine capabilities live in their owning packages; vertical vocabulary is out of scope entirely (ADR-0021).

What this is NOT

  • Not the TS types — @agenticprimitives/types owns CanonicalAgentId, Assurance, etc.; this package names the IRIs. One brand.
  • Not the runtime CAIP-10 builder — that is @agenticprimitives/agent-profile.
  • Not an authority — it names and validates; it never grants custody or mints identity.

Status

Phase 1 implemented — the T/C/A-box artifacts, mappings, and the declarative TS surface ship today. SHACL-engine validation over instances and the live A-box knowledge graph (a SPARQL store — Ontotext GraphDB reference, projected by identity-directory) are Phase 2, wired by consumers per spec 225 §11 — and even then the ontology stays a validator, never an authority.

Testnet/pilot-ready. Production launch is gated on the public checklist in the root README — including third-party contract audit and governance key rotation. Track every security finding live in docs/audits/findings.yaml.

Authoritative spec: specs/225-ontology.md. Bounded surface: CLAUDE.md + capability.manifest.json.

Build

pnpm --filter @agenticprimitives/ontology typecheck
pnpm --filter @agenticprimitives/ontology test
pnpm --filter @agenticprimitives/ontology build