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

@neurolift-technologies/otoi

v1.0.0

Published

Reference implementation of the .otoi (Orchestrated Terms of Interaction) honoring layer — the multi-agent orchestration standard built on the canonical @neurolift-technologies/toi file type.

Downloads

102

Readme

@neurolift-technologies/otoi

Reference implementation of the .otoi (Orchestrated Terms of Interaction) honoring layer — the multi-agent orchestration standard built on top of the canonical @neurolift-technologies/toi file type.

A .toi document states a person's interaction preferences. An .otoi charter declares how a mesh of agents honors a stack of those documents at runtime: which agents are bound, how the .toi stack resolves, and what happens on conflict or on an unsupported preference.

This package consumes @neurolift-technologies/toi rather than re-implementing it. The .toi shape, tiers, resolution semantics, canonicalization, and signatures all remain the property of the .toi standard; .otoi adds only the orchestration concerns the .toi spec deliberately leaves out.

Install

npm install @neurolift-technologies/otoi
# @neurolift-technologies/toi is a regular dependency and is installed automatically with it

Quick start

import { honor, propagate, type ToiDocument } from "@neurolift-technologies/otoi";

const charter = {
  $otoi: "1.0.0",
  agents: [{ id: "research-agent" }, { id: "summary-agent" }],
  enforcement: { mode: "enforced", on_conflict: "highest-tier-wins" },
  toi_sources: [
    { tier: "personal", uri: "users/josh.toi" },
    { tier: "project", inline: { $toi: "1.0.0", $tier: "project", identity: { author: "nlt-redteam" } } },
  ],
};

const policy = await honor(charter, {
  loadSource: (uri) => fs.readFile(uri, "utf8"),
  platformDefaults: { communication: { language: "en" } },
});

// The single effective .toi view every agent honors:
policy.effective;            // resolved ToiDocument
policy.tiers;                // ["personal", "project"]
policy.conflicts;            // same-tier disagreements, if any

// Per-agent propagation (strict mode refuses unknown agents):
const prefs = propagate(policy, "research-agent");

API

| Export | Purpose | | --- | --- | | parseCharter(input) | Parse + validate an .otoi charter (throws OtoiParseError / OtoiValidationError). | | honor(charter, options) | Resolve the charter's .toi sources into one EffectivePolicy. | | propagate(policy, agentId) | The effective .toi an agent must honor; refuses unknown agents under strict. | | detectConflicts(documents) | Report same-tier leaf disagreements (cross-tier differences are not conflicts). | | otoiCharterSchema | The Zod source of truth for the charter shape. | | re-exports | parseToi, resolveToi, verifyToi, TOI_TIERS, ToiDocument, … from @neurolift-technologies/toi. |

Enforcement model

| Field | Values | Default | Meaning | | --- | --- | --- | --- | | mode | advisory / enforced / strict | enforced | How strictly agents are held to preferences; strict also refuses unknown agents. | | on_conflict | highest-tier-wins / reject / escalate | highest-tier-wins | What to do with a same-tier disagreement. reject throws OtoiHonorError. | | on_unsupported | ignore / degrade / reject | degrade | What to do with a preference no agent can satisfy. | | audit | boolean | true | Whether honoring should be recorded for the audit trail. |

Relationship to the .toi standard

See SPEC.md for the normative .otoi specification and the @neurolift-technologies/toi SPEC for the underlying file format. Where the two disagree, the .toi spec governs the .toi layer and this spec governs orchestration.

License

MIT (see repository root). Note: the canonical @neurolift-technologies/toi standard is Apache-2.0; aligning the standard family on a single license is an open governance question.