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

@witnet/sdk

v3.2.4

Published

Typescript library and CLI tooling for Web3 buidlers willing to interact with the Witnet blockchain.

Downloads

676

Readme

Witnet Javascript SDK and CLI tools

Typescript library and CLI tooling for Web3 buidlers willing to interact with the Witnet blockchain. The Witnet Javascript SDK empowers devops and Web3 developers to seamlessly interact with the Witnet blockchain.

✨ Overview

Users of the Witnet Javascript library or the embedded CLI tools, will be able to:

  • 👛 Create self-custody HD-wallets to hold and transact with $WIT coins.
  • 🌱 Stake and withdraw $WIT coins into and from Witnet validators.
  • 🧮 Build oracle queries adapted to all sorts of data sources and use cases.
  • 🩺 Simulate resolution of oracle queries, locally and at no cost.
  • 🧑‍⚖️ Notarize resolution of oracle queries on the Witnet blockchain.
  • ⛓️ Check dynamic information on the Witnet P2P network.
  • 🔎 Explore public data on the Witnet blockchain.
  • 🪪 Generate legit stake-authorization codes for external customers.

📦 Installation

CLI as a global binary

Install the witsdk binary:

$ npm install -g @witnet/sdk
$ witsdk --version

SDK as project dependency

  • Add the @witnet/sdk package to your project:
$ npm install --save-dev @witnet/sdk`
  • Import from Javascript:
const { requests, modals } = require("@witnet/sdk/assets")
const { utils, Witnet } = require("@witnet/sdk")
  • Import from Typescript:
import { requests, modals } from "@witnet/sdk/assets"
import { utils, Witnet } from "@witnet/sdk"

⚙️ Requirements

  • Node.js >= 20.
  • Witnet wallet with sufficient $WIT balance.

🔧 Configuration

Both the CLI and the library can be configured by using a .env file declaring this variable:

WITNET_SDK_WALLET_MASTER_KEY="xprv_string_here_as_exported_from_a_node_mww_or_sheikah"

You can optionally:

  • Settle your preferred WIT/RPC provider, like a Witnet node of your own, or third-party providers, by using the command-line option --provider (if using the CLI), or by setting the WITNET_SDK_PROVIDER_URL environment variable.

🧪 Supported Networks

| Witnet Network | Network id | WIT/RPC endpoints | | -: | :-: | :- | Mainnet | 0x9fed | https://rpc-01.witnet.io | Testnet | 0x749f | https://rpc-testnet.witnet.io

🛠️ Usage

Library modules

Please, find Javascript and Typescript code snippets in the Witnet Docs site.

CLI modules


npx witsdk network

Retrieve dynamic information from the Witnet's P2P network: Snapshot showing Witnet SDK's network commands


npx witsdk wallet

Self-custody local wallet for spending and staking at will your own $WIT coins: Snapshot showing Witnet SDK's wallet commands


npx witsdk inspect

Inspect public data from the Witnet blockchain: Snapshot showing Witnet SDK's inspection commands


npx witsdk radon

  • Manage pre-built Witnet-compliant data requests and templates (aka. Radon assets): Snapshot showing Witnet SDK's radon commands

  • If willing to customize Radon assets specific to your Web3 project, please initialize the witnet/ workspace folder:

    $ npx witsdk radon init

npx witsdk nodes

Interact with your own private Witnet nodes, if reachable: Snapshot showing Witnet SDK's nodes farming commands

🔐 Security

  • Do not share your private keys.
  • Use trusted RPC endpoints when using third-party providers.
  • Disable "sensitive methods" on your Witnet node if willing to publish any of its RPC ports.

Documentation

Learn more about Witnet, the $WIT coin and the Wit/Oracle framework for smart contracts at:

👉 https://docs.witnet.io 👉 https://witnet.io 👉 https://witnet.foundation/

🧾 License

MIT © 2025 — Maintained by the Witnet Project.