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

@vastdisk/sdk-ts

v0.2.0

Published

VASTDISK client-side crypto SDK - AES-256-GCM encryption, BLAKE3 hashing, Ed25519 proof verification. Browser-native Web Crypto + @noble/hashes.

Readme

@vastdisk/sdk-ts

Client-side crypto SDK for VASTDISK. Licensed under AGPLv3 for full transparency and auditability.

What It Does

  • AES-256-GCM chunked encryption/decryption (1 MB chunks, random IV per chunk)
  • BLAKE3 ciphertext hashing (matches server-side hash for proof verification)
  • SHA-256 ciphertext hashing (legacy, for fingerprint comparison)
  • Ed25519 deletion-proof signature verification
  • Gzip compression via CompressionStream (optional, browser-native)

Encryption uses the browser-native Web Crypto API. BLAKE3 uses @noble/hashes (pure JS, tree-shakeable, zero native deps).

Install

npm install @vastdisk/sdk-ts

Usage

import {
  encryptFile,
  decryptFile,
  hashCiphertextBlake3,
  hashCiphertext,
  verifyDeletionProof,
  shouldCompressByDefault,
} from "@vastdisk/sdk-ts";

// Encrypt
const { ciphertext, key } = await encryptFile(file, true); // true = compress

// Decrypt
const plaintext = await decryptFile(ciphertext, key);

// BLAKE3 hash (matches server - use this for deletion proof verification)
const hash = await hashCiphertextBlake3(ciphertext);

// SHA-256 hash (legacy fingerprint)
const shaHash = await hashCiphertext(ciphertext);

// Verify deletion proof
const valid = await verifyDeletionProof(payload, signatureB64, publicKeyB64);

// Auto-detect compression
if (shouldCompressByDefault(file)) { /* enable compression */ }

Wire Format

Each encrypted chunk: [4-byte BE length][12-byte IV][AES-256-GCM ciphertext]

Multiple chunks are concatenated into a single Blob.

License

AGPLv3 - see LICENSE. Crypto code is open for audit.