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

quanta-sdk

v0.1.0

Published

JS/TS SDK for the Quanta Protocol Ecosystem

Readme

Quanta SDK

The official JavaScript/TypeScript developer toolkit for the Quanta Protocol ecosystem.

This SDK provides a robust abstraction layer over the Quanta Node REST API and the Post-Quantum (Falcon-512) WASM cryptography engine, enabling developers to build exchanges, wallets, and network analytics tools.

Installation

npm install quanta-sdk

Features

  • Post-Quantum Cryptography: Fully integrates with quanta-wasm for Falcon-512 key generation and signature validation.
  • Node HTTP Client: Provides a structured interface to interact with Quanta Nodes.
  • Transaction Builder: Simplifies UTXO and state transitions for crafting unsigned payloads.
  • CLI Utility: Includes a built-in CLI for wallet management and checking node health.

Quickstart Guide

1. Connecting to the Node

import { QuantaClient } from 'quanta-sdk';

const client = new QuantaClient('https://rpc.quantachain.org');

async function checkStatus() {
    const status = await client.getStatus();
    console.log(`Node Height: ${status.chain_height}`);
}

2. Generating a Wallet

import { QuantaWallet, initQuanta } from 'quanta-sdk';

async function generate() {
    // Note: Always initialize the WASM module before using cryptographic functions.
    await initQuanta();

    const newWalletInfo = QuantaWallet.create();
    console.log('Address:', newWalletInfo.address);
    console.log('Secret Recovery Phrase:', newWalletInfo.mnemonic);
}

3. Signing and Sending a Transaction

Amounts in the Quanta Network are calculated in microunits (1 QUA = 1,000,000 microunits).

import { QuantaClient, QuantaWallet, TransactionBuilder, initQuanta } from 'quanta-sdk';

async function sendFunds() {
    await initQuanta();

    const client = new QuantaClient('https://rpc.quantachain.org');
    const wallet = QuantaWallet.fromMnemonic("your twenty four word bip39 pass phrase goes here for testing...");
    
    // Fetch current nonce for the sender
    const addressInfo = await client.getAddressInfo(wallet.address);
    const nonce = addressInfo.nonce;

    const amountToSend = 5_000_000; // 5 QUA
    
    // Build unsigned transaction
    const unsignedTx = TransactionBuilder.createUnsigned(
        wallet.address,
        "0xRecipientAddressHere",
        amountToSend,
        nonce
    );

    // Sign transaction with Falcon-512
    const signedTx = TransactionBuilder.sign(unsignedTx, wallet);

    // Broadcast to the network
    const response = await client.submitTransaction(signedTx);
    console.log("Transaction Hash:", response.tx_hash);
}

Command Line Interface (CLI)

The SDK ships with a built-in command-line utility for ecosystem management.

npx quanta-cli wallet generate
npx quanta-cli node status https://rpc.quantachain.org

License

ISC License.