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-lib/qubic-ts-library

v0.1.6

Published

Typescript Library to communicate with the Qubic Network. http://qubic.li

Readme

Qubic Typescript Library

A TS Library to communicate with the Qubic Network.

Overview

The Qubic Typescript Library is designed to facilitate communication with the Qubic Network. It provides various utilities and classes to interact with the network, manage cryptographic operations, and handle data structures specific to Qubic.

Qubic TS Library on NPM

Installation

Install via NPM.

yarn add @qubic-lib/qubic-ts-library

Usage

Importing the Library

To use the library, you need to import the necessary classes and functions. Below is an example of how to import and use the QubicHelper class.

// import helper
import { QubicHelper } from 'qubic-ts-library/dist/qubicHelper'

// create an id Package with private/public key and human readable address
const id = await helper.createIdPackage("alsdjflasjfdlasdjflkasdjflasdjlkdjsf");

Components

The library is composed of several key components, each serving a specific purpose:

  1. QubicConnector: Manages the connection to the Qubic Network.
  2. QubicDefinitions: Contains definitions and constants used throughout the library.
  3. QubicHelper: Provides helper functions for cryptographic operations and ID management.
  4. QubicPackageBuilder: Assists in building packages for communication with the network.
  5. DynamicPayload: Represents dynamic payloads used in transactions.
  6. Long: Handles long integer operations.
  7. PublicKey: Manages public key operations.
  8. QubicEntity: Represents entities within the Qubic Network.
  9. QubicTickData: Handles tick data structures.
  10. QubicTickInfo: Manages tick information.
  11. QubicTransaction: Represents transactions on the network.
  12. Signature: Manages digital signatures.
  13. QubicTransferAssetPayload: Handles asset transfer payloads.
  14. QubicTransferSendManyPayload: Manages payloads for sending multiple transfers.

Building the Library

To build the library into a single JavaScript file, use the following commands:

yarn install
yarn webpack

Node Sample Applications

requestBalance.js

Test how to receive Balance from Network

  1. Add the IDs to const ids = ["AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"]; in the file test/requestBalance.js.
  2. Run the following commands:
yarn install
tsc
node test/requestBalance.js

sample-exchange.js

A lightweight sample of an exchange integration with Qubic. It can manage multiple users and handle deposits/withdrawals to one hot wallet.

This implementation is meant for demo purposes only!

To run the sample exchange:

yarn install
tsc
node test/sample-exchange.js

The Exchange initializes itsself. Start it and it will create a file exchange.json. There you can find the Seeds used. If you do tests, save them anywhere.

Testing

Run tests with

yarn run test

Publish

publish with.

yarn build
yarn publish --access public

LICENSE

All Qubic Software is licensed unter the Anti Military License: https://github.com/qubic-network/license