Socket
Book a DemoInstallSign in
Socket

@huggingface/blake3-wasm

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huggingface/blake3-wasm

JS and WASM implementations of https://github.com/BLAKE3-team/BLAKE3

0.0.2
latest
npmnpm
Version published
Weekly downloads
15
1400%
Maintainers
4
Weekly downloads
 
Created
Source

JS and WASM implementations of https://github.com/BLAKE3-team/BLAKE3

Using AssemblyScript to generate a lean WASM.

Usage

import { blake3, blake3Hex, createHasher, update, finalize } from '@huggingface/gearhash-wasm';

// Create a Uint8Array of data to search through
const data = new Uint8Array(1_000_000); // Example: 1MB of data
// ... fill data with your content ...

const hashUint8 = blake3(data);
const hashHex = blake3Hex(data);

// Or streaming fashion
const hasher = createHasher();

for (const chunk of dataSource) {
  hasher.update(chunk);
}

const hash = hasher.finalize();

Keywords

blake3

FAQs

Package last updated on 08 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.