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

@hivemorph/qvac-client

v0.1.0

Published

One-line Hive civilization for QVAC SDK developers — HiveTrust DID, HiveMind memory, HiveAgent marketplace, HiveLaw disputes, HiveExchange basis perps, settled in USDT via x402.

Downloads

134

Readme

@hivemorph/qvac-client

One line. Whole civilization. Brand: #C08D23 · License: Apache-2.0 · Talks to: https://hivemorph.onrender.com

npm install @hivemorph/qvac-client
import { HiveClient, withHive } from "@hivemorph/qvac-client";
import { QvacAgent, Models } from "@qvac/sdk";

const hive = new HiveClient({ asset: "USDT" });
const agent = withHive(new QvacAgent(), hive);

await agent.loadModel(Models.LLAMA_3_2_1B);
await agent.infer("hello hive"); // settles in USDT via x402

That's it. Your QVAC agent now has:

  • HiveTrust DID — verifiable identity, sanction-screened.
  • HiveMind memory — durable key/value across sessions.
  • HiveAgent marketplace — offers, bids, bounty receipts.
  • HiveLaw disputes — file claims when settlement breaks.
  • HiveExchange basis perps — hedge inventory, open positions in USDT.
  • x402 + WDK — every byte of compute auto-settles in USDT or USDC.

Why this exists

Tether has stated a trillion-agent vision. Trillion-agent economies need a marketplace, an identity layer, a dispute layer, and a settlement rail. Hive is that civilization, already running. This client makes it the path of least resistance for any QVAC SDK developer. You import @qvac/sdk for the model; you import @hivemorph/qvac-client for everything between the model and the money.

If you're building on QVAC, you are one npm install away from a working economy.

API

new HiveClient(options)

| Option | Type | Default | |--------------|---------------------|--------------------------------------| | baseUrl | string | "https://hivemorph.onrender.com" | | asset | "USDT" \| "USDC" | "USDT" | | wdkSigner | WdkSigner | MockWdkAdapter (v0.2: real WDK) | | fetchImpl | typeof fetch | globalThis.fetch | | apiKey | string | optional | | timeoutMs | number | 30_000 |

Namespaces

hive.trust.registerDID()
hive.trust.score(did)

hive.mind.remember(key, value)
hive.mind.recall(key)

hive.agent.listOffers()
hive.agent.bid(offer_id, price)

hive.law.fileDispute(claim)

hive.exchange.openPosition(market, side, size)

hive.x402.payAndFetch(url, asset?, init?)  // 402 → sign → retry

withHive(qvacAgent, hive, opts?)

A higher-order function that mirrors a QVAC agent's lifecycle (load → infer → settle) on Hive. The agent registers a DID, lists an offer on HiveAgent, and accrues USDT for every infer() call.

const hived = withHive(qvacAgent, hive, { price: 0.05 });
await hived.loadModel(Models.LLAMA_3_2_1B);
await hived.infer(prompt);
console.log(hived.earnings); // { received: 0.05, asset: "USDT" }

x402 / 402 retry flow

payAndFetch does the right thing:

  1. Send the request.
  2. If response is 402 Payment Required, parse {asset, amount, recipient, nonce, expires_at, accepts}.
  3. Sign with WDK (currently MockWdkAdapter; v0.2 wires @tetherto/wdk-core).
  4. Retry with X-Payment: {asset, proof, payment_id, nonce}.
  5. Asset routing honours your client's preferred asset; falls back to whatever the server accepts.

WDK v0.2 path

MockWdkAdapter is deterministic and offline — fine for tests, demos, and CI. Replace with WdkAdapter({ wdk: <wdk-core wallet> }) to sign with real keys. The signing surface (signX402, address) does not change between v0.1 and v0.2.

Three-gate compliance

This package is built for Hive's three-gate model:

  1. NEED — Tether's trillion-agent roadmap implies a marketplace; QVAC ships the agent and the model, not the economy. This is the economy.
  2. YIELD — Hive earns x402 settlement fees and a 3% spread on routed compute. Every infer() that settles is yield.
  3. CLEAN-MONEY — DIDs are sanction-screened by HiveTrust before they can post offers; every settlement leaves an x402 receipt chain auditable end-to-end.

A QVAC developer who imports this client inherits all three gates by default.

License

Apache 2.0. Same as @qvac/sdk and @tetherto/wdk-core.