BLAKE3

Official Rust implementation of the BLAKE3 cryptographic hash function

Library
Cargo
v1.8.6
6,376stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
71/100Good
Development Activity60
Maintenance52
Community72
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
85/100Excellent
Architecture88
Code Quality85
Innovation90
Learning Curve75

BLAKE3 is the official Rust crate implementing the BLAKE3 cryptographic hash function — a single, variant-free algorithm that is significantly faster than MD5, SHA-1, SHA-2, SHA-3, and BLAKE2 while remaining cryptographically secure against length-extension attacks. Its internal Merkle tree structure makes it highly parallelizable across threads and SIMD lanes and enables verified streaming and incremental updates.

The crate ships hand-optimized SIMD implementations for SSE2, SSE4.1, AVX2, AVX-512, NEON, and WASM with automatic runtime CPU feature detection on x86, plus an optional rayon-powered multithreading mode. Beyond plain hashing, BLAKE3 doubles as a PRF, MAC, KDF, and XOF, giving it a broad range of cryptographic use cases from checksumming to key derivation.

What You Get

  • A Hasher struct implementing incremental, streaming hashing with update/finalize and impl Write/Read/Seek support behind the std feature
  • Automatic runtime CPU feature detection on x86 selecting between SSE2, SSE4.1, AVX2, and AVX-512 implementations
  • SIMD-optimized NEON and WASM SIMD code paths for ARM and WebAssembly targets
  • Keyed hashing and key derivation function (KDF) modes in addition to plain and extendable-output (XOF) hashing
  • Optional rayon-based multithreaded hashing via update_rayon/update_mmap_rayon for large inputs

Common Use Cases

  • Content-addressed storage and deduplication systems that need a fast, collision-resistant hash for large files
  • Checksumming and integrity verification tools where hashing throughput on multi-core hardware matters, as with the companion b3sum CLI
  • Key derivation for applications needing a fast KDF, using BLAKE3’s dedicated derive_key mode instead of a separate KDF library
  • Merkle-tree-based verified streaming, where a file can be hashed and verified incrementally without holding the full content in memory

Under The Hood

Architecture The blake3 crate’s core lives in src/lib.rs, src/platform.rs, and src/guts.rs, structured around a portable implementation (src/portable.rs) plus a set of hand-written SIMD backends (src/rust_sse2.rs, src/rust_sse41.rs, src/rust_avx2.rs, and FFI bridges to C/assembly for AVX-512 and NEON in src/ffi_avx512.rs/src/ffi_neon.rs) selected at runtime via the cpufeatures-based detection in platform.rs. The algorithm itself processes input as a Merkle tree of 1KiB chunks, which is what enables both SIMD/thread parallelism across chunks and incremental/streaming updates without buffering the whole input; src/join.rs implements the (optional, rayon-backed) parallel tree-reduction logic.

Tech Stack A Rust 2024-edition crate with a build script (build.rs) that compiles vendored C/assembly SIMD kernels for platforms where Rust intrinsics aren’t used, plus a small dependency surface (arrayref, arrayvec, constant_time_eq, cpufeatures, with optional rayon, serde, mmap, and zeroize features). The repository is a monorepo also containing the b3sum CLI crate, a C implementation under c/, and a separate minimal reference implementation used for spec verification.

Code Quality The crate includes an extensive src/test.rs plus a test_vectors/ directory of cross-language test vectors shared with the C implementation and other language ports, reflecting rigor appropriate for cryptographic code; CI (implied by the multi-platform SIMD backend structure) must exercise each SIMD path plus the portable fallback for correctness parity. As a security-sensitive primitive, the crate is conservative about unsafe usage, isolating it to well-reviewed SIMD/FFI boundary code rather than scattering it through the public API.

API Design The public API is intentionally small and safe-by-default: blake3::hash(&[u8]) for one-shot hashing, blake3::Hasher::new() for streaming, and dedicated constructors (new_keyed, new_derive_key) for the keyed/KDF modes — a design that keeps common cases to one line while still surfacing the more specialized cryptographic modes explicitly rather than through hidden flags. Feature flags (std, rayon, mmap, serde, neon) let consumers opt into only the capabilities (multithreading, serialization, no_std) they need.

Used by 12 apps in this directory

Rust
95%
MIT

claw-code

AI Agents · AI Code Assistants

195,087

A Rust-built CLI agent harness for Claude AI with persistent sessions, MCP tool integration, plugin hooks, and multi-provider support — designed to run autonomous coding workflows without human babysitting.

View details
71
Repo Health
71
Technical
77
Dependency
Built with
Rust95%
Updated 3 days ago
C++
69%
Apache 2.0

ClickHouse

Databases · Analytics · Data Engineering

49,325

Open-source column-oriented database that delivers real-time analytical queries on petabyte-scale data with millisecond latency.

View details
95
Repo Health
90
Technical
68
Dependency
Built with
C++69%
Python13%
Updated today
Python
80%
Apache 2.0

headroom

AI Development · Developer Tools

66,835

Compress everything your AI agent reads — tool outputs, logs, RAG chunks, and files — before it reaches the LLM, achieving 60–95% fewer tokens with the same answers.

View details
84
Repo Health
86
Technical
73
Dependency
Built with
Python80%
Rust14%
Updated today
TypeScript
67%
MIT

Hoppscotch

Developer Tools

80,055

A lightweight, offline-capable API development ecosystem for testing HTTP, GraphQL, WebSocket, MQTT, and SSE endpoints across web, desktop, and CLI.

View details
91
Repo Health
83
Technical
66
Dependency
Built with
TypeScript67%
Vue23%
Updated 3 days ago
TypeScript
61%
EPL-2.0

Huly Platform

Project Management · Team Chat · Collaboration

27,384

Open-source all-in-one workspace that replaces Linear, Jira, Slack, and Notion for product and engineering teams.

View details
90
Repo Health
86
Technical
64
Dependency
Built with
TypeScript61%
Svelte34%
Updated 1 weeks ago
Rust
47%
MIT

Kuku

Note Taking

204

A local-first, open-source Markdown knowledge workspace for macOS — plain files, personal wiki and Second Brain workflows, AI-assisted diffs, and encrypted sync, built as an Obsidian alternative.

View details
73
Repo Health
67
Technical
68
Dependency
Built with
Rust47%
TypeScript40%
Updated 1 months ago
TypeScript
69%
Apache 2.0

Laminar

AI Development · Monitoring

3,180

Open-source observability platform purpose-built for AI agents — trace, evaluate, debug, and monitor at scale with SQL access and real-time replay.

View details
85
Repo Health
76
Technical
70
Dependency
Built with
TypeScript69%
Rust29%
Updated yesterday
Rust
84%
Apache 2.0

liteparse

Developer Tools

12,123

A fast, lightweight, open-source document parser that extracts spatial text, bounding boxes, and Markdown from PDFs and Office files — entirely on your machine.

View details
83
Repo Health
80
Technical
74
Dependency
Built with
Rust84%
Updated today
JavaScript
57%
Other

Lokus

Note Taking · Knowledge Management

774

Local-first note-taking with graph view, canvas & AI plugins—your Markdown files, zero telemetry, blazing-fast Rust performance.

View details
78
Repo Health
75
Technical
65
Dependency
Built with
JavaScript57%
HTML24%
Updated 1 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search