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

supra-ts-sdk

v1.1.0

Published

A TypeScript SDK for interacting with the Supra blockchain and Move smart contracts. Provides type-safe utilities for transactions, contract calls, and on-chain data.

Readme

Supra TypeScript SDK

npm version npm downloads License: MIT TypeScript

Type-safe client library for the Supra blockchain (MoveVM)

supra-ts-sdk is a lightweight, modern TypeScript SDK for building applications on the Supra Layer-1 blockchain (MoveVM-based).

It provides strongly-typed helpers for:

  • Connecting to Supra nodes (Mainnet / Testnet)
  • Reading account balances & resources
  • Submitting transactions
  • Calling view / entry functions on Move modules
  • Working with Move structs and ABIs

✨ Features

  • Full TypeScript support with excellent type inference
  • Native Move function calling (entry & view)
  • Clean builder-style transaction creation
  • Automatic BCS serialization / deserialization
  • Built-in support for Supra Mainnet & Testnet
  • Minimal dependencies

📦 Installation

# Recommended (fastest + best disk usage)
pnpm add supra-ts-sdk

# or with npm
npm install supra-ts-sdk

# or with Yarn
yarn add supra-ts-sdk

Requirements

  • Node.js ≥ 18
  • TypeScript ≥ 4.9 (5.x strongly recommended)

🚀 Quick Start

import { SupraClient, Network } from 'supra-ts-sdk';

(async () => {
  const supra = new SupraClient({ network: Network.TESTNET });
  console.log("Connected to Supra Testnet (Chain ID 6)");
})();

Querying Accounts

1. Check if an Account Exists

import { SupraClient, Network } from 'supra-ts-sdk';

(async () => {
  const supra = new SupraClient({ network: Network.TESTNET });

  const accountAddress = "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1c55";

  const exists = await supra.account.isAccountExists({ accountAddress });

  console.log(`Account ${accountAddress.slice(0, 8)}... exists:`, exists);

})();

Note: Accounts on Supra only exist after receiving a transaction or resource. This is a fast, gas-free check.

2. Get Full Account Information

import { SupraClient, Network } from 'supra-ts-sdk';

(async () => {
  const supra = new SupraClient({ network: Network.TESTNET });

  const rootAddress = "0x0000000000000000000000000000000000000000000000000000000000000001";

  const accountData = await supra.account.getAccountInfo({ accountAddress: rootAddress });

  console.log("Framework (0x1) account info:", accountData);
  // Expected fields: sequence_number, authentication_key, etc.
})();

📚 More Examples

🤝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create your feature branch (git checkout -b feat/your-feature)
  3. Commit your changes (git commit -m 'Add your feature')
  4. Push to the branch (git push origin feat/your-feature)
  5. Open a Pull Request

Please:

  • Follow existing code style & add tests where possible
  • Update README/examples if behavior changes
  • Report bugs via Issues with reproduction steps

📄 License

MIT License

See the LICENSE file for full details.

Built with ❤️ for the Supra ecosystem. Happy coding! 🚀