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

@intervalplace/aon-sdk

v0.1.0

Published

Minimal generic client SDK for the Authorization Object Network

Readme

@intervalplace/aon-sdk

The minimal, generic client layer for the Authorization Object Network.

This package knows nothing about specific namespaces, local truths, or execution logic. It provides the substrate that namespace packages are built on top of.

Node      — propagates objects, knows nothing about meaning
SDK       — client, executor, generic helpers, knows nothing about local truths
Namespace — local truth, execution logic, EIP-712 types, contract interactions

Install

npm install @intervalplace/aon-sdk

To work with a specific namespace, install its package alongside:

npm install @intervalplace/aon-sdk @intervalplace/aon-namespace-evm-spot
npm install @intervalplace/aon-sdk @intervalplace/aon-namespace-csd-usdc

Quickstart

Connect to a node:

import { AonNodeClient } from "@intervalplace/aon-sdk";

const client = new AonNodeClient("http://localhost:8787");
const objects = await client.listObjects({ namespace: "aon:evm-spot" });

Run a permissionless executor:

import { runExecutor, registerNamespace } from "@intervalplace/aon-sdk";
import { evmSpotNamespace } from "@intervalplace/aon-namespace-evm-spot";

registerNamespace(evmSpotNamespace);

await runExecutor({
  nodeUrl: "http://localhost:8787",
  namespace: "aon:evm-spot",
  mode: "simulate",
  pollIntervalMs: 5000,
  onExecuted: (graph, result) => console.log("executed", result),
});

What's in this package

src/
  object.ts            — AonObject type, canonicalization, hashing
  client.ts            — HTTP client for AON nodes
  namespace-driver.ts  — NamespaceDriver interface and registry
  executor.ts          — Generic permissionless executor loop
  executable.ts        — Generic graph evaluation
  helpers.ts           — Generic query helpers over object arrays
  index.ts             — Public surface

API

AonNodeClient

const client = new AonNodeClient("http://localhost:8787");

await client.getObject("0xabc...");
await client.putObject(obj);
await client.listObjects({ namespace: "aon:evm-spot" });
await client.walkGraph("0xabc...");
await client.getGraph("0xabc...");

Namespace registry

import { registerNamespace, getNamespace, listNamespaces } from "@intervalplace/aon-sdk";

registerNamespace(myNamespace);
const driver = getNamespace("aon:my-namespace");
const all = listNamespaces();

Executor

import { runExecutor } from "@intervalplace/aon-sdk";

await runExecutor({
  nodeUrl: "http://localhost:8787",
  namespace: "aon:evm-spot",
  mode: "contract",         // "contract" | "simulate" | "off"
  pollIntervalMs: 5000,
  backoff: { initialMs: 1000, factor: 2, maxMs: 60000 },
  onExecuted: (graph, result) => {},
  onError: (err, context) => {},
});

Generic query helpers

All helpers take an AonObject[] array — no network calls, pure functions.

import {
  isRevoked, revocationsForTarget,
  hasReceiptReferencing, hasReserveForAuthorization,
  findExecutable, findNextExecutable,
  openReserves, expiredReserves,
  receipts, receiptsByReserve, receiptsByProof, receiptsByTxid,
  canonicalReceiptByReserve, canonicalReceiptByTxid,
  graphNamespace, graphPrimaryAuthorization, enrichGraph,
} from "@intervalplace/aon-sdk";

NamespaceDriver interface

type NamespaceDriver = {
  namespace: string;
  evaluate: (objects: AonObject[], opts?: any) => any[];
  reward?: (graph: any) => any;
  verify?: (graph: any) => { ok: boolean; reason?: string };
  execute?: (graph: any, args?: { mode?: "off" | "simulate" | "contract" }) => Promise<any>;
  normalizeAuthorization?: (auth: any) => any;
  types?: () => any;
  orderTypes?: () => any;
  revocationTypes?: () => any;
  validateObject?: (obj: AonObject, graph?: any) => void | Promise<void>;
};

Building a namespace

See NAMESPACES.md for the full guide. The short version:

  1. Create a new repo
  2. Implement NamespaceDriver
  3. Register with registerNamespace()
  4. Done — the executor and all helpers work automatically

Node

The AON node lives at intervalplace/aon.

Specification

SPEC.md