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

@lapxo/topos

v0.2.4

Published

Wire, forms, authority and views for interpreting information.

Readme

@lapxo/topos

Wire, forms and interpretation contracts for information that can be named, checked and carried between consumers.

Topos 0.2.4 uses Obligations 0.4.7 for the consumed constraint algebra. It describes declarations, contexts and evidence; Bound applies the admitted policy, while a host supplies bytes, trust and effects. A digest identifies content. It does not establish truth, authority, independence or availability.

Install

npm install @lapxo/[email protected]

The package provides JavaScript, TypeScript declarations, public contracts and executable vectors. It requires Node 22.12 or later for the declared Node environment; pure modules have no implicit network or filesystem access.

Read a declaration

import { parse, canonical } from '@lapxo/topos/wire';

const line = 'bound-lock/1 form=interval measure=count role=writes scope=stock value=2..4';
const parsed = parse(line);
if (parsed.kind === 'fact') console.log(canonical(parsed.value.fields));
// bound-lock/1 form=interval measure=count role=writes scope=stock value=2..4

Parsing checks the wire representation. A selected form interprets the value; parsing alone does not authenticate or admit a claim. Semantic standing separates the identity of information from the artifacts a host may execute.

Reference and inspect

import { encodeLocatedReference, inspectLocatedReference } from '@lapxo/topos/contract';

const reference = {
  class: 'standing', algorithm: 'sha256',
  digest: 'a'.repeat(64), blob: `sha256:${'b'.repeat(64)}`,
  location: 'https://example.org/place.json', 'location-class': 'holder'
};
console.log(encodeLocatedReference(reference).startsWith('#topos-reference:1?')); // true
console.log(inspectLocatedReference(reference, undefined, {
  maxBytes: 4096,
  digestBytes: () => { throw new Error('No bytes were supplied'); }
}).kind); // needs

These digests are illustrative. With content present, the receiver supplies a real SHA-256 function and verifies both blob and standing identities. A holder address can locate bytes; a viewer address names a presentation. Neither authenticates the content. The historical #bound:1 profile is unchanged.

The separate inline projection profile carries a bounded preview and declared relations. The receiver chooses the UTF-8 limit; overflow refuses without truncation. A preview never substitutes for the complete object. Page code can read URL fragments: do not put secrets inline.

Contracts through /contract

| Surface | What it provides | | --- | --- | | Reading witness | Model, input, selection, implementation, context, result and declared key or CI provenance. Verification and policy acceptance remain separate. | | Physical lines | Counts supplied files under declared selectors, including blanks and comments; overlaps and unmatched selectors remain visible. This differs from walk-header readings. | | Projection chains | Finite deterministic chains under one declared prior, using Obligations. Arbitrary unrelated projections are refused. | | Authority card | Context-bound allow/ask/deny supplied by the consumer's effective judgment, with explicit time, stale and missing-request results. | | Origin and refusal | Attribution, externally verified coverage and written refusals by request digest; attribution is not authorization. | | Action and link | Native action-receipt and reference bindings, without executing or duplicating the action. | | Group and decision | Group, membership, prior-group proposal and k-of-n forms. Effective threshold admission belongs to the native consumer; signatures do not imply independent causes. | | Portable birth | Public unsigned declarations, explicit collision needs, no signer, root installation or automatic admission. | | Source exhaustion | Attributed exhaustion events, clock/unit context and known or unknown recovery; no budget judge or retry scheduler. | | Profile composition | Parents by digest, selected field semantics and category pins. Widening retains authorization needs; witness parsing does not grant authority. | | Refusal catalog | Machine-readable producer/code metadata, implementation identity, meaning, next and executed vectors for the declared new-form surface. External producer demands remain named and open. |

The existing source cards, module inventory, M0 measures, registry and CI declarations remain available. A module inventory does not prove symbol reachability; M0 does not certify statistical premises or replace the separate chain contract.

Explicit boundaries

Topos supplies forms and pure interpretation. It does not run a second permission fold, commit storage transactions, choose trust keys from a carrier, authenticate CI by its URL, or treat an unavailable object as an integrity failure. Effective k-of-n admission, production evidence authentication and host effects must be paid by the consuming operation.

The catalog's five external door-code demands and two world-contract demands remain open until their producers supply comparable contracts and vectors. Unapproved stochastic models and independent physical-machine portability are outside these form contracts.

Verification and further reading

For the source checkout, use npm ci --ignore-scripts, npm run build and npm test. Bound can check a place once its declared providers and evidence are available; valid receipts are reused rather than reinterpreted as fresh executions. The exact installed release and public provider delivery are checked separately from individual form vectors.

Start with the overview, wire, contracts, algebra alignment and wire compatibility. Public profile encodings remain versioned; there is no implicit migration from one profile to another.