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

@qubic-labs/sdk

v3.1.0

Published

High-level SDK for Qubic apps. This package composes `@qubic-labs/core` and will host:

Readme

@qubic-labs/sdk

High-level SDK for Qubic apps. This package composes @qubic-labs/core and will host:

  • RPC clients (Query/Live)
  • Transaction workflows (tick selection, per-source TxQueue)
  • Contract helpers and ergonomic domain APIs
  • QubicBob indexer client + log streaming helpers

Core primitives/codecs/transports live in @qubic-labs/core.

Install

bun add @qubic-labs/sdk

Local development (monorepo)

If you’re developing @qubic-labs/core and @qubic-labs/sdk together before the first npm release, you can temporarily use a local dependency:

# from jskit-sdk/
bun add @qubic-labs/core@file:../jskit-core

Status

RPC + tx workflows are available. Indexer + assets helpers are available, and contract interface codecs are provided via @qubic-labs/contracts (recommended direct import).

Public API

  • createSdk() is the main entrypoint.
  • Avoid deep imports (src/...) in apps; they’re not considered stable.

Quick start

import { createSdk } from "@qubic-labs/sdk";

const sdk = createSdk({
  baseUrl: "https://rpc.qubic.org",
  tick: { defaultOffset: 15 }, // currentTick + 15
  tx: { confirmTimeoutMs: 60_000, confirmPollIntervalMs: 1_000 },
  txQueue: { enabled: true, policy: "waitForConfirm" },
  bob: { baseUrl: "http://localhost:40420" },
  // rpc: { retry: { maxRetries: 2, baseDelayMs: 250 } },
  // assets: { requestAssets: yourRequestAssetsFn },
});
const tickInfo = await sdk.rpc.live.tickInfo();
const targetTick = await sdk.tick.getSuggestedTargetTick(); // currentTick + 15

// generic tx builder (inputType + inputBytes are contract entry payload fields)
// const tx = await sdk.transactions.buildSigned({
//   fromSeed,
//   toIdentity,
//   amount: 1n,
//   targetTick,
//   inputType: 0,
//   inputBytes: new Uint8Array(),
// });

// queued send (enforces “one concurrent tx per source identity”)
// const sent = await sdk.transactions.sendQueued({
//   fromSeed,
//   toIdentity,
//   amount: 1n,
//   targetTick,
// });

// `sendAndConfirm` uses the queue by default when available.
// transfer helper (wraps sdk.transactions with inputType=0)
// const res = await sdk.transfers.sendAndConfirm({
//   fromSeed,
//   toIdentity,
//   amount: 1n,
//   targetTick,
// });

// confirmation receipt (returns QueryTransaction from the archive)
// const receipt = await sdk.transfers.sendAndConfirmWithReceipt({
//   fromSeed,
//   toIdentity,
//   amount: 1n,
//   targetTick,
// });

// raw contract query (RPC live)
// const res = await sdk.contracts.queryRaw({
//   contractIndex: 1,
//   inputType: 1,
//   inputBytes: new Uint8Array(),
//   expectedOutputSize: 32,
// });

// QubicBob REST client
// const status = await sdk.bob.status();

// QubicBob log stream (WS)
// const stream = createLogStream({
//   baseUrl: "http://localhost:40420",
//   subscriptions: [{ scIndex: 0, logType: 0 }],
//   onLog: (msg) => console.log(msg),
// });

// Assets query (RequestAssets)
// const assets = await sdk.assets?.listIssued({ issuerIdentity: "..." });

// contract inputData encoding with @qubic-labs/contracts
// import { coreContractsRegistry, encodeContractEntryInputData } from "@qubic-labs/contracts";
// const encoded = encodeContractEntryInputData({
//   registry: coreContractsRegistry,
//   contractName: "QUTIL",
//   entryName: "GetFees",
//   kind: "function",
//   value: { assetName: "MYASSET" },
// });
// const query = await sdk.contracts.queryRaw({
//   contractIndex: 1,
//   inputType: encoded.inputType,
//   inputBytes: encoded.bytes,
// });

// Seed vault integration (Node)
// const vault = await openSeedVault({ path: "./vault.json", passphrase: "secret", create: true });
// const sdkWithVault = createSdk({ baseUrl: "https://rpc.qubic.org", vault });
// const fromSeed = await sdkWithVault.vault?.getSeed("main");

// Seed vault integration (Browser)
// const store = createLocalStorageVaultStore("qubic.vault");
// const vault = await openSeedVaultBrowser({ store, passphrase: "secret", create: true });
// await sdkWithVault.transfers.sendAndConfirm({ fromSeed, toIdentity, amount: 1n, targetTick });
// await sdkWithVault.transfers.sendAndConfirm({ fromVault: "main", toIdentity, amount: 1n, targetTick });
// await sdkWithVault.transfers.sendAndConfirmFromVault({ fromVault: "main", toIdentity, amount: 1n, targetTick });

Docs

  • Contracts guide: jskit-sdk/docs/contracts.md
  • Seed vault: jskit-sdk/docs/vault.md
  • Releasing: jskit-sdk/docs/releasing.md

Examples

See jskit-sdk/examples/README.md.