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

@aithos/protocol-core

v0.5.1

Published

Aithos protocol — reference implementation of the core primitives (DIDs, ethos, mandates, bundles) used by the CLI and by any host that speaks the protocol.

Readme

@aithos/protocol-core

Reference implementation of the Aithos protocol primitives — DIDs, identities, ethos documents, mandates, signed bundles, and canonical hashing.

This is the library the aithos CLI and any other Aithos-speaking host (MCP server, platform Lambdas, third-party implementations) are built on. It is the single source of truth for the wire format: any subtle difference in hashing, canonicalization, or signature verification would break interoperability between hosts, so every host is expected to depend on exactly this package.

Install

npm install @aithos/protocol-core

Usage

import {
  createIdentity,
  rootDid,
  ensureEthosLayout,
  addSection,
  createMandate,
  verifyMandate,
  verifyBundleAtPath,
} from "@aithos/protocol-core";

See the protocol specification for semantics and the on-disk layout.

Scope

@aithos/protocol-core is pure TypeScript. It does not read $AITHOS_HOME-independent config, it does not perform network I/O, and it does not ship any CLI. Everything that touches a filesystem path takes that path as an argument. Hosts that want a default keystore layout (the ~/.aithos/ convention) are expected to compose it on top of this package — aithos does, and so does @aithos/mcp.

Status

Draft, package v0.2.1, targeting Aithos protocol v0.2.x (manifests stamp aithos: "0.2.0", mandates stamp aithos-mandate: "0.2.1"). The wire format may change on any minor-version bump until 1.0.0. v0.2.0 was a breaking release over v0.1.x: section mutation history lives in the signed gamma log only (see spec §10). v0.2.1 closes the loop on delegate writes against a tracked identity: mandates carry the grantee's Ed25519 pubkey, zone/manifest/gamma signatures carry an optional authorized_by, and the keystore-aware delegate resolver lets stateless verifiers accept delegate-signed bundles.

License

Apache License 2.0. See LICENSE and the repository overview.

The protocol specification (spec/, SPEC.md, WHITEPAPER.md) is under CC BY 4.0.