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

alphiconnect

v1.1.1

Published

AlphiConnect - Developer Infrastructure Toolkit for Alephium

Downloads

10

Readme


AlphiConnect

AlphiConnect is a developer infrastructure and indexing toolkit for the Alephium blockchain. It provides standardized SDKs, APIs, adapters, and off-chain indexing utilities that simplify dApp development and advanced blockchain research across:

  • Wallets
  • Addresses
  • Shards
  • Mempool
  • Tokens
  • DeFi protocols

By abstracting low-level blockchain operations, AlphiConnect accelerates developer workflows and improves composability inside the Alephium ecosystem.


Key Features

Wallet Management

  • Create new wallets programmatically
  • Retrieve wallet addresses
  • Manage multiple wallets safely

Address Indexing

  • Query all addresses on your node
  • Get wallet-specific addresses

Mempool API (New)

  • Access Alephium mempool transactions
  • Normalized response structure
  • Shard-aware mempool listing
  • Base for building bots, explorers, and real-time dashboards

Developer SDK

  • Type-safe, modular, and shard-safe
  • Works seamlessly with Alephium nodes and backend services

Indexing & Analytics

  • Foundation for event indexers, NFT indexers, shard monitors, dashboards, and DeFi analytics layers

Installation

npm install alphiconnect
# or
yarn add alphiconnect

Quick Start

1. Initialize the SDK

import { AlphiConnect } from "alphiconnect";

const alphi = new AlphiConnect({
  baseUrl: "https://ben-sturdier-maddie.ngrok-free.dev"
});

Wallet API

Create a Wallet

const wallet = await alphi.wallets.create({
  password: "my-secret-password",
  walletName: "wallet-super-name",
});

console.log("New Wallet:", wallet);

Retrieve Wallet Addresses

const addresses = await alphi.wallets.getAddresses("wallet-super-name");
console.log("Wallet Addresses:", addresses);

Address API

List All Addresses

const allAddresses = await alphi.addresses.list();
console.log("All Addresses:", allAddresses);

Mempool API (New)

Query all pending mempool transactions, normalized and shard-aware.

1. Using AlphiConnect

const pendingTx = await alphi.mempool.list();
console.log(pendingTx);

2. Using the low-level AlphiClient (direct node access)

import { AlphiClient } from "alphiconnect";

const client = new AlphiClient("http://127.0.0.1:22973");

const mempool = await client.mempool();
console.log(mempool);

Returned Structure

Each transaction contains:

  • txId
  • fromGroup / toGroup
  • Gas info
  • Inputs (UTXOs)
  • Outputs (ALPH & Tokens)
  • Signatures
  • Timestamp (seenAt)

This is ideal for bots, explorers, and mempool indexers.


Full Example Script

import { AlphiConnect } from "alphiconnect";

async function main() {
  const alphi = new AlphiConnect({
    baseUrl: "http://localhost:22973",
  });

  const mempool = await alphi.mempool.list();
  console.log("Pending Tx:", mempool.length);

  const allAddresses = await alphi.addresses.list();
  console.log("Addresses:", allAddresses);
}

main();

Available Types (TypeScript)

  • CreateWalletInput
  • WalletAddress
  • WalletAddressesResponse
  • AddressInfo
  • AddressListResponse
  • MempoolTransaction
  • MempoolGroup
  • UnsignedTx
  • MempoolInput
  • MempoolOutput

CLI Usage (Optional)

npm run build

# Using ts-node
ts-node scripts/example.ts

# Or compiled JS
node dist/scripts/example.js

Contributing

AlphiConnect will be fully open-source under the MIT License after the first development phase.

Contributions will be welcome for:

  • Indexers (tokens, NFTs, DeFi)
  • Wallet modules
  • Documentation
  • Analytics dashboards
  • Event streaming modules

License

MIT License Free to use, modify, and distribute.