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

@haichainsi/sdk

v6.2.1

Published

HAICHAIN: Mass-Consumer & Frontier AI Autonomous Agent Client SDK

Readme

@haichainsi/sdk

HAICHAIN: Universal Autonomous Machine Financial Operating System Client SDK for TypeScript / Node.js.

npm version License Solana Devnet

Official TypeScript SDK for interacting with the HAICHAIN Protocol on Solana. Provides high-level abstractions for autonomous AI agents, programmatic micro-escrow streams, x402 payment headers, SLA bonded providers, and cross-chain intent settlement.


📦 Installation

npm install @haichainsi/sdk @solana/web3.js @coral-xyz/anchor

Or using yarn / pnpm:

pnpm add @haichainsi/sdk @solana/web3.js @coral-xyz/anchor

🚀 Quick Start

1. Initialize Client

import { Connection, PublicKey } from "@solana/web3.js";
import { HaiChainClient } from "@haichainsi/sdk";

const connection = new Connection("https://api.devnet.solana.com", "confirmed");
const programId = new PublicKey("DK4QA3WK49SWR86GsqDRQSVNhoVRe1MMQGYZ7hKJw4xk");

const client = new HaiChainClient(connection, programId);
console.log("HAICHAIN SDK initialized successfully!");

2. Create Fiat / Crypto Deposit Session

const session = await client.createUsdtDepositSession({
  userUid: "user_agent_001",
  amountUsdt: 5.0,
  preferredRail: "apple_pay"
});

console.log("Deposit Address (Solana SPL):", session.depositAddressSolanaSpl);
console.log("Checkout URL:", session.checkoutUrlFiat);

3. HTTP x402 Micropayment Header Generator

Easily integrate autonomous agent payments into API calls:

// Construct standard X-402 challenge headers
const paymentHeaders = {
  "X-402-PayTo": "provider_ata_address_here",
  "X-402-Amount": "1000", // 0.001 USDT (1 Action Credit)
  "X-402-Nonce": "random_crypto_nonce"
};

🏛️ Core Architectural Pillars

  1. SLA Staked Provider Bonds & Slashing Invariants: Cryptographic proof verification and penalty slashing for faulty data.
  2. Hybrid Web2 to DePIN Fallback Router: Seamless failover to decentralized compute/data when Web2 providers deplatform.
  3. Cross-Chain Intent-based Solver Mesh: Gasless, instant execution across Base/EVM and Solana with zero bridge delay.
  4. Dynamic Spot Tickets & Micro-Auctions: Real-time capacity pricing based on network saturation.
  5. Enterprise Rollup Invoicing: Big 4 audit-ready VAT/GST invoices backed by Merkle roots.

🔗 Resources


📄 License

Apache-2.0 © HAICHAIN Foundation