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

@helixar_ai/hdp-autogen

v0.1.2

Published

HDP middleware for AutoGen — cryptographic audit trail for multi-agent delegation

Readme

@helixar_ai/hdp-autogen

HDP (Human Delegation Provenance) middleware for AutoGen (TypeScript) — attach a cryptographic audit trail to any multi-agent conversation.

npm install @helixar_ai/hdp-autogen

Quick start

import { HdpAgentWrapper, hdpMiddleware } from "@helixar_ai/hdp-autogen";
import { generateKeyPair } from "@helixar_ai/hdp";

const { privateKey, publicKey } = generateKeyPair();

// Class-based: wrap an AutoGen agent
const wrapper = new HdpAgentWrapper({
  signingKey: privateKey,
  sessionId: "research-2026-q1",
  principal: { id: "[email protected]", idType: "email" },
  scope: { intent: "Summarise papers", authorizedTools: ["web_search"] },
});

await wrapper.init();
wrapper.onSpeakerTurn("researcher", "Summarising recent LLM papers...");
wrapper.onSpeakerTurn("reviewer", "The summary looks good.");

const token = wrapper.exportToken();

Functional middleware

const mw = hdpMiddleware({
  signingKey: privateKey,
  sessionId: "s1",
  principal: { id: "alice", idType: "handle" },
  scope: { intent: "research" },
});

await mw.observe({ agent: "researcher", content: "Hello" });
// mw.required() returns the current token or null

Error handling

onSpeakerTurn() and observe() are non-blocking — signing failures are caught internally and logged, so agent execution is never interrupted.

For tool-call scope enforcement, use onToolCall():

// Non-blocking (default): returns { allowed: false, violation: "..." }
const result = wrapper.onToolCall("execute_code", { code: "rm -rf /" });
if (!result.allowed) {
  console.warn("Scope violation:", result.violation);
}

OpenAI-compatible tool schemas

import { getHdpTools, HDP_TOOLS } from "@helixar_ai/hdp-autogen";

// HDP_TOOLS is a static array of 3 tool schemas:
// hdp_issue_token, hdp_extend_chain, hdp_verify_token
// Compatible with AutoGen's OpenAI tool_calls format

Cross-language compatibility

Tokens are wire-compatible with the Python hdp-autogen package. A token created in TypeScript can be verified in Python and vice versa — both use RFC 8785 canonical JSON + Ed25519.


Releasing

Published to npm via GitHub Actions. Two ways to release:

Standalone (publishes only this package):

git tag node/hdp-autogen/v0.1.2 && git push origin node/hdp-autogen/v0.1.2

Pipeline: test-hdp-autogen-tsvet-hdp-autogen-ts (ReleaseGuard) → publish-hdp-autogen-ts-standalone

With all Node packages (publishes core + mcp + cli + autogen):

git tag v0.1.2 && git push origin v0.1.2

| Detail | Value | |---|---| | npm package | @helixar_ai/hdp-autogen | | Standalone tag | node/hdp-autogen/v* | | Bundle tag | v* (with all Node packages) | | Workflow | .github/workflows/release.yml | | Auth | NPM_TOKEN secret |


Spec

Human Delegation Provenance (HDP) is an IETF draft: draft-helixar-hdp-agentic-delegation

License

CC BY 4.0 — Helixar Limited