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

@swarmnetwork/vault-sdk

v1.0.4

Published

TypeScript SDK for interacting with Swarm Vault on Sui

Readme

@swarmnetwork/vault-sdk

TypeScript SDK for interacting with Swarm Vault on the Sui blockchain. Create encrypted, user-owned vaults and manage secrets with fine-grained access control.

Installation

pnpm add @swarmnetwork/vault-sdk

The Sui SDK is a peer dependency:

pnpm add @mysten/sui

Package Exports

| Export Path | Description | | ------------------------------------------- | ------------------------------------------------------- | | @swarmnetwork/vault-sdk | Main entry — re-exports all modules | | @swarmnetwork/vault-sdk/crypto | ECDH encryption, key derivation, secret encrypt/decrypt | | @swarmnetwork/vault-sdk/sui/vault | Vault transaction builders and query helpers | | @swarmnetwork/vault-sdk/sui/user-registry | User registration and public key lookup | | @swarmnetwork/vault-sdk/indexer | HTTP client for the Vault Indexer API |

Environment Variables

| Variable | Description | | -------------------------- | ------------------------------------------------------------- | | SUI_NETWORK | Target network: devnet, testnet, mainnet, or localnet | | SWARM_VAULT_PACKAGE_ID | Deployed Vault Move package ID | | GLOBAL_CONFIG_ID | Global config object ID | | USER_REGISTRY_PACKAGE_ID | Deployed User Registry package ID | | USER_REGISTRY_OBJECT_ID | User Registry shared object ID | | PRIVATE_KEY | Sui private key (CLI only) | | VAULT_INDEXER_URL | Optional override for the indexer base URL |

See .env.example for a starter template.

Library Overview

Vault (lib/sui/vault)

Transaction builders for creating vaults, adding/removing members, and managing secrets. Includes query helpers to fetch vault details, list vaults by owner, and read global config.

User Registry (lib/sui/user-registry)

Register users, look up public keys, and fetch profiles. Required for encrypting secrets to specific vault members.

Crypto (lib/crypto)

ECDH (P-256) + AES-GCM encryption layer. Derives encryption keypairs from Sui signers and provides encryptSecret / decryptSecret utilities.

Indexer (lib/indexer)

VaultIndexerClient for querying indexed on-chain events — vault creation, secret changes, member updates, invites, and activity logs.

CLI

Two CLI entry points are included for local development and administration:

# Vault operations
pnpm cli:vault <command> [options]

# User registry operations
pnpm cli:user-registry <command> [options]

Vault CLI Commands

| Category | Commands | | -------- | ---------------------------------------------------------------------------------------------------------------------- | | Vaults | create-vault, buy-package, fetch-vault, list-vaults, check-vault-validity | | Secrets | add-secret, update-secret, remove-secret, list-secrets, get-secrets, load-secret | | Members | add-member, remove-member, is-authorized, is-admin | | Admin | update-fees, add-package, remove-package, grant-credits, set-treasury, withdraw, add-tier, remove-tier | | Indexer | indexer-vaults-by-owner, indexer-secrets-by-vault, indexer-members-by-vault, indexer-vault-activity, and more |

User Registry CLI Commands

register, has-registered, get-public-key, get-profile, fetch-registry, fetch-profiles

Scripts

| Script | Description | | ------------------------ | ----------------------------- | | pnpm build | Compile TypeScript to dist/ | | pnpm lint | Run ESLint | | pnpm format | Run Prettier | | pnpm cli:vault | Run the Vault CLI | | pnpm cli:user-registry | Run the User Registry CLI |

License

MIT