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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@qubics/kit

v0.1.0

Published

Typed clients for Qubic public endpoints (HTTP partner API, Query V2, JSON-RPC), with a pluggable transport that works in Node or browser.

Readme

qubickit

Typed clients for Qubic public endpoints (HTTP partner API, Query V2, JSON-RPC), with a pluggable transport that works in Node or browser.

Install

bun install qubickit
# or pnpm add / npm install

Usage

import {
	createHttpClient,
	createRpcClient,
	createQueryClient,
	fetchTransport,
	HttpTypes,
	QueryTypes,
} from "@qubics/kit";

const transport = fetchTransport();

// HTTP partner API
const http = createHttpClient({
  baseUrl: "https://api.qubic.org",
  transport,
});
const balance = await http.getBalance("IDENTITY");

// JSON-RPC
const rpc = createRpcClient({
	baseUrl: "https://rpc.qubic.org",
	transport,
});
const info = await rpc.call("getNodeInfo", []);

// Query V2
const query = createQueryClient({
	baseUrl: "https://query.qubic.org",
	transport,
});
const txs = await query.getTransactionsForIdentity({ identity: "IDENTITY" });

// Keys, identities, signing
import {
	deriveKeyPair,
	identityFromPublicKey,
	signTransaction,
	serializeTransaction,
	verifyTransactionSignature,
} from "qubic-ts";
} from "@qubics/kit";

const { privateKey, publicKey } = await deriveKeyPair(
	"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
);
const identity = await identityFromPublicKey(publicKey);
const { bytes } = await signTransaction(
	{
		sourcePublicKey: publicKey,
		destinationPublicKey: publicKey,
		amount: 1n,
		tick: 123,
		inputType: 0,
		payload: new Uint8Array(),
	},
	privateKey,
);
const parsed = deserializeTransaction(bytes);
const ok = await verifyTransactionSignature(parsed);

Scripts

  • bun run lint — Biome formatting/lint.
  • bun test — Bun test suite with mocked transports.
  • bun run build — Bundle ESM+CJS+.d.ts to dist/ (tsup).
  • bun run release — Lint, test, and build (used by release workflow on tags).

Notes

  • Transports are pluggable; inject your own for custom environments.
  • Public endpoints require no auth; API key/header injection is optional via QubicClientConfig if you need it.
  • Generated types are lightweight; regenerate with node scripts/gen-http-types.cjs and node scripts/gen-query-types.cjs when swagger specs change.

To install dependencies:

bun install

To run:

bun run index.ts