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

@waldrop/sdk

v0.1.1

Published

Read-only TypeScript SDK for Waldrop - list and fetch your Walrus-stored blobs registered through the Waldrop on-chain registry.

Downloads

40

Readme

@waldrop/sdk

TypeScript SDK for Waldrop - upload, fetch, encrypt, and cost-estimate Walrus blobs on Sui.

npm version License: MIT

A thin wrapper around the Walrus HTTP API and the Waldrop Sui contract. No dapp backend required.

Install

bun add @waldrop/sdk @mysten/sui
# Optional - only for encrypt / decrypt
bun add @mysten/seal

Quickstart

import { WaldropClient } from "@waldrop/sdk";

const waldrop = new WaldropClient({ network: "testnet" });

// List a user's blobs
const blobs = await waldrop.blob.list({ owner: "0x..." });

// Fetch one
const { bytes, contentType } = await waldrop.blob.fetch({
  blobId: blobs[0].blobId,
});

What's in the box

// Upload
await waldrop.blob.upload({ data, fileName, contentType, epochs, signer });
await waldrop.blob.uploadBundle({ files: [...], signer });
await waldrop.blob.registerOnly({ blobId, ... }); // resume a failed upload

// Read
await waldrop.blob.list({ owner });             // → BlobRef[]
await waldrop.blob.fetch({ blobId });           // → { bytes, contentType }
await waldrop.blob.getStore({ owner });         // → summary stats

// Crypto (requires @mysten/seal)
await waldrop.crypto.encrypt({ data, blobStoreId });
await waldrop.crypto.decrypt({ bytes, blobStoreId, signer });

// Cost
await waldrop.cost.estimate({ bytesPerBlob, epochs });

// Sharing
await waldrop.blob.listViewers({ blobStoreId });
await waldrop.blob.canView({ blobStoreId, viewer });

// Subscription
await waldrop.subscription.get({ owner });
await waldrop.subscription.isActive({ owner });

Upload example

The signer must be @mysten/sui's Signer (or Ed25519Keypair). In a dapp, use dapp-kit's signAndExecuteTransaction; in a script, use an Ed25519Keypair.

import { WaldropClient } from "@waldrop/sdk";
import { Ed25519Keypair } from "@mysten/sui/keypairs/ed25519";

const keypair = Ed25519Keypair.fromSecretKey(process.env.SUI_PRIVATE_KEY!);
const waldrop = new WaldropClient({ network: "testnet" });

const result = await waldrop.blob.upload({
  data: new TextEncoder().encode("hello waldrop"),
  fileName: "hello.txt",
  contentType: "text/plain",
  epochs: 5,
  signer: keypair,
});

console.log(result.blobId);

See examples/ for more.

Errors

The SDK throws typed errors you can narrow on:

import {
  WaldropError,
  BlobNotFoundError,
  DecryptionError,
  SealNotInstalledError,
  AggregatorError,
  InsufficientGasError,
} from "@waldrop/sdk";

try {
  await waldrop.blob.fetch({ blobId });
} catch (err) {
  if (err instanceof BlobNotFoundError) {
    // ...
  }
}

Wallet signatures

Only one wallet prompt per upload — the on-chain register_blob call. SHA-256 hashing, SEAL encryption, and the Walrus publisher PUT all run without any signature.

Decryption requires one signature too (for the SEAL session key).

Networks

Testnet defaults are baked in. Override for mainnet or custom infra:

new WaldropClient({
  network: "mainnet",
  suiGrpcUrl: "https://...",
  walrusAggregatorUrl: "https://...",
  walrusPublisherUrl: "https://...",
});

Versioning

Semver. Anything not exported from src/index.ts is internal and may change between minor releases.

License

MIT © 2026 Waldrop