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

algoflow-sdk

v1.3.3

Published

<div align="center"> <img src="algorand-logo-white-CMYK.png" width="300" />

Readme

🚀 Algoflow SDK

Blockchain Algorand Built on Algorand Powered by Algorand

TypeScript Node.js

Official Documentation Links is Here


🌟 Overview

Algoflow SDK is an innovative development toolkit that simplifies data storage and access processes for developers using the Algorand blockchain infrastructure. By automating the complexity of traditional blockchain operations (wallet connections, gas fees, private key management) in the background, it enables data to be written to and read from the blockchain with just a few function calls.

💡 Perfect for developers who want to integrate blockchain functionality without the complexity!

📦 Installation

🛠️ Local Development

# Install via yarn
yarn add algoflow-sdk

📄 Package.json Reference

{
  "dependencies": {
    "algoflow-sdk": "2.0.0"
  }
}

✨ Features

  • = Account creation and management
  • =� Token transfers on Algorand TestNet
  • <� NFT creation with metadata support
  • =� Data storage and retrieval via smart contracts
  • =� Intereact with blochain instructure via algorand.

🚀 Quick Start

📚 Table of Contents

📦 Import Functions

import {
  createAccount,
  sendToken,
  createNft,
  writeVault,
  getVault,
  getNft,
  optIn
} from 'algoflow-sdk'

📖 API Reference


🔐 Account Management

🔑 createAccount()

Description: Creates a new Algorand account with secure mnemonic and address generation.

Signature:

function createAccount(): Promise<{
  mnemonic: string;
  address: string;
}>

Usage:

const newAccount = await createAccount()
console.log('New Account:', newAccount.address)
console.log('Mnemonic:', newAccount.mnemonic)

Returns:

  • mnemonic (string): 25-word mnemonic phrase
  • address (string): Algorand wallet address

💰 Token Operations

💸 sendToken(mnemonic, recipient, amount)

Transfers ALGO tokens between accounts on TestNet.

Parameters:

  • mnemonic (string): Sender's 25-word mnemonic phrase
  • recipient (string): Recipient's Algorand address
  • amount (number): Amount in microALGOs (1 ALGO = 1,000,000 microALGOs)
const result = await sendToken(
    "your 25-word mnemonic phrase here",
    "RECIPIENT_ADDRESS_HERE",
    100_000 // 0.1 ALGO
)

🎨 NFT Operations

🖼️ createNft(mnemonic, options)

Creates an NFT with metadata stored on Supabase.

Parameters:

  • mnemonic (string): Creator's 25-word mnemonic phrase
  • options (object): NFT configuration
const newNft = await createNft("your-mnemonic", {
    metadata: {
        "name": "Your NFT Name",
        "description": "NFT Description",
        "image": "https://your-image-url.com/image.png",
        "image_mimetype": "image/png",
        "unitname": "SYMBOL"
    },
    metadataURL: "https://your-metadata-url.json"
})

// Returns: { assetId: number, txIds: string[] }

🖼️ getNft(assetId: number)

Creates an NFT with metadata stored on Supabase.

Parameters:

  • assetId (number): Number of the asset
const res = await getNft(746497619)
return res.asset.params.url

📦 Data Storage (Smart Contract)

📝 writeVault(mnemonic, data)

Stores data in Algorand smart contract (AlgoflowVault).

Parameters:

  • mnemonic (string): Account's 25-word mnemonic phrase
  • data (string): Data to store in the vault
const result = await writeVault(
    "your-mnemonic",
    "Your data to store"
)

📥 getVault()

Retrieves stored data from the smart contract.

const storedData = await getVault()
// Returns: string

📥 optIn()

You need to authorize wallet before send an asset.

Parameters:

  • mnemonic (string): Account's 25-word mnemonic phrase
  • assetId (number): NFT or Token assetId
await optIn("25 KEY MNEMONIC", 746497619)
// Returns: string

Example Usage:

export async function GET(req: Request, context: any) {
    const res = await getVault()
    return Response.json({res: res});
}

⚙️ Network Configuration

| 🌐 Network | 🔗 Endpoint | 📊 Chain ID | |:---:|:---:|:---:| | Algorand TestNet | https://testnet-api.algonode.cloud | TestNet | | Smart Contract | AlgoflowVault | App ID: 746498651 |

🔧 Configuration Details

  • Environment: Algorand TestNet (Development & Testing)
  • Node Provider: AlgoNode (Free tier)
  • Smart Contract: AlgoflowVault for data storage
  • Gas Fees: Automatically handled by the SDK

🐛 Error Handling

⚠️ Best Practices

All SDK functions return promises and should be wrapped in try-catch blocks for proper error handling:

try {
    const account = await createAccount()
    console.log('✅ Account created:', account.address)
} catch (error) {
    console.error('❌ Error creating account:', error.message)
}

🔍 Common Error Types

| Error Type | Description | Solution | |:---:|:---:|:---:| | NetworkError | Connection issues with Algorand node | Check internet connection | | InsufficientFunds | Not enough ALGO for transaction | Add funds to account | | InvalidMnemonic | Malformed mnemonic phrase | Verify 25-word mnemonic | | TransactionFailed | Blockchain transaction error | Check transaction parameters |

🛠️ Development & Build

📦 Build Process

The SDK includes TypeScript definitions and is pre-compiled for immediate use. No additional build steps required!

# SDK Structure
lib/
├── dist/           # Compiled JavaScript + Type definitions
├── fn/            # Individual function modules
├── api/           # API integration utilities
└── package.json   # Package configuration

📚 Dependencies

🔧 Core Dependencies

| Package | Version | Purpose | |:---:|:---:|:---:| | algosdk | ^3.5.2 | Algorand JavaScript SDK | | algokit-utils | ^9.1.2 | Algorand development utilities | | supabase | ^2.58.0 | Metadata storage client |


🤝 Support & Community

📞 Getting Help

| Resource | Description | |:---:|:---:| | 📖 Documentation | Complete API reference and examples | | 🐛 Issues | Report bugs and request features | | 💬 Community | Join our developer community | | 📧 Contact | Direct support from development team |

🔗 Useful Links


⭐ Star this project if you find it useful!

Made with ❤️ by the Algoflow team

Footer