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

@rasmx/blake3

v1.0.1

Published

The fastest BLAKE3 implementation for the Web. Rust/WASM powered, SIMD accelerated, Zero-Allocation architecture.

Downloads

184

Readme

@rasmx/blake3 ⚡️

The definitive BLAKE3 implementation for WebAssembly.
600+ MB/s of pure hashing power. Up to 40x faster than pure JS implementations.

npm version License: MIT

Rasmx is a high-performance cryptographic library written in Rust and compiled to WebAssembly with manual SIMD128 optimizations. It bypasses traditional JS-to-WASM overhead using a Zero-Copy architecture.

🚀 Performance

| Algorithm | Engine | 10MB Throughput | Speedup | | :--- | :--- | :--- | :--- | | BLAKE3 | @rasmx/blake3 | ~670 MB/s | 35x | | BLAKE3 | @noble/hashes | ~19 MB/s | 1x | | SHA256 | WebCrypto (Native) | ~250 MB/s | 0.4x |

Tested on modern x86_64/ARM64 hardware in Chromium-based browsers.

🛠 Features

  • SIMD Accelerated: Hand-crafted for WebAssembly SIMD instructions.
  • Zero-Copy Architecture: Access WASM memory directly to avoid expensive data cloning.
  • Zero-Allocation: No garbage collection overhead; contexts are managed in a static slab.
  • Synchronous Execution: Once initialized, all calls are 100% synchronous.
  • Streaming API: Efficiently process gigabytes of data in chunks.

📦 Installation

pnpm add @rasmx/blake3

📖 Quick Start

The "God Mode" (Zero-Copy)

For maximum performance, write your data directly into the WASM buffer.

import { init, getBuffer, hashInplace } from '@rasmx/blake3';

await init();

const dataSize = 1024 * 1024; // 1MB
const buffer = getBuffer(dataSize);

// Fill the buffer directly (e.g., from a File or Stream)
// No .set() or extra copies!
for (let i = 0; i < dataSize; i++) {
    buffer[i] = i & 0xff;
}

const result = hashInplace(dataSize);

Simple One-Shot

Standard usage with automatic data copying.

import { init, hash } from '@rasmx/blake3';

await init();
const digest = hash(myUint8Array);

Streaming API

Process data without loading it all into memory.

import { init, Hasher, getBuffer } from '@rasmx/blake3';

await init();
const hasher = new Hasher();

// Chunk 1
const buf1 = getBuffer(1024);
buf1.set(chunk1);
hasher.update(1024);

// Chunk 2
const buf2 = getBuffer(2048);
buf2.set(chunk2);
hasher.update(2048);

const finalHash = hasher.digest();

🏗 Architecture

Rasmx uses a "Static Slab Allocation" strategy. It reserves 16 independent hashing contexts in the WASM linear memory at compile-time. This ensures that even with complex streaming, no memory allocation or deallocation occurs during runtime, preventing memory fragmentation and GC pauses.

License

MIT © Rasmx Team