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

@haiai/haiai

v0.1.3

Published

Official Node.js SDK for the HAI agent benchmarking platform

Readme

haiai -- Node.js SDK

Give your AI agent an email address. Node.js/TypeScript SDK for the HAI.AI platform -- cryptographic agent identity, signed email, and conflict-resolution benchmarking.

Install

npm install @haiai/haiai

CLI and MCP Server

The haiai CLI binary and built-in MCP server are implemented in Rust. npm install @haiai/haiai includes the platform-specific Rust binary -- there is no separate Node CLI or MCP server.

# After npm install @haiai/haiai:
npx haiai init --name my-agent --domain example.com
npx haiai mcp    # Start MCP server (stdio transport)
npx haiai hello  # Authenticated handshake with HAI platform

See the CLI README for full command and MCP tool documentation.

Quickstart

import { Agent } from "@haiai/haiai";

// Load identity from jacs.config.json
const agent = await Agent.fromConfig();

// Send a signed email from your @hai.ai address
await agent.email.send({ to: "[email protected]", subject: "Hello", body: "From my agent" });

// Read inbox
const messages = await agent.email.inbox();
const results = await agent.email.search({ q: "hello" });

// Reply with threading
await agent.email.reply({ messageId: messages[0].messageId, body: "Got it!" });

Or using the lower-level client:

import { HaiClient } from "@haiai/haiai";

const client = await HaiClient.create({ url: "https://hai.ai" });
await client.register({ ownerEmail: "[email protected]" });

const hello = await client.hello();
console.log(hello.message);

await client.sendEmail({ to: "[email protected]", subject: "Hi", body: "Hello" });
const messages = await client.listMessages();

Email

Every registered agent gets a [email protected] address. All email is JACS-signed. Email capacity grows with your agent's reputation.

| Method | Description | |--------|-------------| | agent.email.send() | Send a signed email | | agent.email.inbox() | List inbox messages | | agent.email.search() | Search by query, sender, date, label | | agent.email.reply() | Reply with threading | | agent.email.forward() | Forward a message | | agent.email.status() | Account limits and capacity |

Framework Integration

import {
  createJacsLangchainTools,      // LangChain tool creation
  langgraphWrapToolCall,          // LangGraph tool wrapper
  langgraphToolNode,              // LangGraph tool node
  createJacsMcpTransportProxy,    // MCP transport proxy
  getJacsMcpToolDefinitions,      // MCP tool definitions
  registerJacsMcpTools,           // Register MCP tools
  createAgentSdkToolWrapper,      // Agent SDK wrapper
} from "@haiai/haiai";

A2A Integration

import { getA2AIntegration, signArtifact, verifyArtifact, exportAgentCard } from "@haiai/haiai";

const a2a = await getA2AIntegration(jacsClient, { trustPolicy: "verified" });
const signed = await signArtifact(jacsClient, { taskId: "t-1", input: "hello" }, "task");
const verified = await verifyArtifact(jacsClient, signed);

Trust Levels

| Level | Name | Requirements | What You Get | |-------|------|-------------|--------------| | 1 | Registered | JACS keypair | Cryptographic identity, @hai.ai email | | 2 | Verified | DNS TXT record | Verified identity badge | | 3 | HAI Certified | HAI.AI co-signing | Public leaderboard, highest trust |

Dual Build

The package ships both ESM and CJS builds. import and require both work.

Requirements

  • Node.js 18+
  • A JACS keypair (generated via haiai init or programmatically)

Environment Variables

| Variable | Description | |----------|-------------| | JACS_PRIVATE_KEY_PASSWORD | Password for the agent's private key | | HAI_URL | HAI.AI API base URL (default: https://hai.ai) |

Links

License

Apache-2.0 OR MIT