BLAKE3

Official Rust implementation of the BLAKE3 cryptographic hash function

Library
Cargo
v1.8.7
6,448 stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
75 /100 Good
Development Activity 68
Maintenance 60
Community 72
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
85 /100 Excellent
Architecture 88
Code Quality 85
Innovation 90
Learning Curve 75

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,291

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
51
Repo Health
71
Technical
77
Dependency
Built with
Rust 95%
Updated 1 months ago
C++
68%
Apache 2.0

ClickHouse

Analytics · Data Engineering · Databases

50,116

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
64
Dependency
Built with
C++ 68%
Python 14%
Updated 4 days ago
Python
82%
Apache 2.0

headroom

AI Development · Developer Tools

73,966

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
85
Repo Health
86
Technical
69
Dependency
Built with
Python 82%
Rust 12%
Updated 5 days ago
TypeScript
67%
MIT

Hoppscotch

Developer Tools

80,529

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
65
Dependency
Built with
TypeScript 67%
Vue 25%
Updated 6 days ago
TypeScript
61%
EPL-2.0

Huly Platform

Collaboration · Project Management · Team Chat

27,797

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
62
Dependency
Built with
TypeScript 61%
Svelte 34%
Updated 6 days ago
Rust
47%
MIT

Kuku

Note Taking

225

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
52
Repo Health
67
Technical
67
Dependency
Built with
Rust 47%
TypeScript 40%
Updated 3 weeks ago
TypeScript
64%
Apache 2.0

Laminar

AI Development · Monitoring

3,285

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
66
Dependency
Built with
TypeScript 64%
Rust 34%
Updated 5 days ago
Rust
84%
Apache 2.0

liteparse

Developer Tools

12,682

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
82
Repo Health
80
Technical
74
Dependency
Built with
Rust 84%
Updated 1 weeks ago
JavaScript
55%
Other

Lokus

Knowledge Management · Note Taking

802

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
JavaScript 55%
HTML 21%
Rust 12%
Updated 1 months 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