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

aurio-sdk

v0.3.0

Published

Professional Solana SDK for Aurio token - core logic with optional React hooks

Readme

Aurio SDK

A professional, modular Solana SDK for interacting with the Aurio token. Clean separation between core blockchain logic and optional React hooks.

Features

  • Core SDK: Solana + SPL token logic with zero React dependencies
  • Optional React Hooks: Use with React/React Native/Expo or standalone
  • Type-Safe: Full TypeScript support with declaration files
  • Modular Exports: Import only what you need
  • Production Ready: Published as npm package

Installation

npm install aurio-sdk

Quick Start

Core SDK (No React Required)

import {
  getAurioBalance,
  getSolBalance,
  buildAurioTransferTx,
  payToTambu,
  getAurioConnection,
} from "aurio-sdk";

// Get balances
const solBalance = await getSolBalance("wallet-address");
const aurBalance = await getAurioBalance("wallet-address");

// Build transfer transaction
const tx = await buildAurioTransferTx({
  sender: "sender-address",
  recipient: "recipient-address",
  amount: "100",
});

const tambuTx = await payToTambu({
  sender: "sender-address",
  tambuMint: "NFT_MINT_ADDRESS",
  amount: 250,
});

With React Hooks (Optional)

import { useAurio } from "aurio-sdk/hooks";
import { buildAurioTransferTx } from "aurio-sdk";

function MyComponent({ walletAddress }) {
  const { solBalance, aurBalance, loading, refresh } = useAurio(walletAddress);

  return (
    <div>
      <p>SOL: {solBalance.toFixed(4)}</p>
      <p>AUR: {aurBalance.toFixed(6)}</p>
      <button onClick={refresh}>Refresh</button>
    </div>
  );
}

Environment Setup

Set the Aurio mint address:

export EXPO_PUBLIC_AURIO_MINT=<your-aurio-mint-address>

API Reference

Core Functions

getAurioBalance(wallet: string): Promise<number>

Get the AUR token balance for a wallet.

getSolBalance(wallet: string): Promise<number>

Get the SOL balance for a wallet.

buildAurioTransferTx(params: BuildAurioTransferTxParams): Promise<Transaction>

Build a transaction for transferring AUR tokens.

Parameters:

  • sender: string - Sender wallet address
  • recipient: string | PublicKey - Recipient wallet address or Tambu NFT mint address
  • amount: number | string - Amount in UI units

payToTambu(params: TambuTransferParams): Promise<Transaction>

Resolve a Tambu NFT mint to its payout wallet and build the SPL transfer transaction.

Parameters:

  • sender: string - Sender wallet address
  • tambuMint: string - Tambu NFT mint address
  • amount: number | string - Amount in UI units

getTambuFromNFT(mint: string): Promise<TambuInfo>

Read Metaplex metadata and JSON metadata for a Tambu NFT.

resolveTambuWallet(mint: string): Promise<PublicKey>

Resolve the payout wallet encoded in a Tambu NFT.

isValidTambuNFT(mint: string): Promise<boolean>

Validate that a mint has Tambu metadata and a valid payout wallet.

getAurioTokenAccount(wallet: string): PublicKey

Get the associated token account for a wallet.

getAurioConnection(): Connection

Get the Solana connection instance.

getAurioDecimals(connection: Connection): Promise<number>

Get AURIO token decimals.

React Hooks

useAurio(wallet: string | null | undefined): UseAurioResult

Returns:

{
  solBalance: number;
  aurBalance: number;
  loading: boolean;
  refresh: () => Promise<void>;
}

Examples

See the /examples/react-native directory for complete React Native/Expo examples.

Directory Structure

src/
  core/          ← Solana + SPL logic (no React)
    aurio.ts
    tambu.ts
    constants/
      web3.ts
    index.ts
  hooks/         ← Optional React hooks
    useAurio.ts
    index.ts
  index.ts       ← Main entrypoint

examples/
  react-native/  ← React Native/Expo examples
    *.tsx

Development

Build the SDK:

npm run build

Type-check:

npm run typecheck

Publishing

npm publish

License

MIT

Support

For issues, questions, or contributions, please visit the repository.

AI Reference

If you are using an AI assistant to work with this SDK, see AI_REFERENCE.md for a compact implementation-oriented overview.