klauspost

klauspost / stdgozstd

Public

Zstandard for Golang Stdlib (do not use) - https://github.com/golang/go/issues/62513

11
0
100% credibility
Found Feb 10, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Go
AI Summary

A simplified pure-Go Zstandard compression library proposed for the Go standard library.

How It Works

1
🔍 Discover file shrinking magic

You hear about a simple way to make big files tiny so they download faster and save space.

2
⚙️ Pick your speed

Choose quick shrinking for speed or super tiny for maximum savings.

3
🗜️ Drop in your files

Just add your photos, videos, or documents and watch them shrink before your eyes.

4
📤 Share the small versions

Send the tiny files easily via email or upload without waiting forever.

5
📥 Unpack anywhere

Anyone with the tool opens them back to perfect originals instantly.

🎉 Files fly fast

You save space, time, and bandwidth while keeping everything perfect.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 11 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is stdgozstd?

stdgozstd delivers a pure-Go Zstandard compressor and decompressor designed as a proposal for Go's stdlib compress/zstd package—check the discussion at https://github.com/golang/go/issues/62513. It lets you compress and decompress data via familiar io.Reader and io.Writer interfaces, plus one-shot AppendCompress/AppendDecompress methods, with support for dictionaries and levels 0-9 mapped to fast encoders. Go developers get drop-in Zstandard without external dependencies or CGO, ideal for stdlib integration.

Why is it gaining traction?

Unlike third-party zstd libs like klauspost/compress/zstd (its upstream), this strips assembly, threading, and unsafe code for simpler stdlib maintenance, trading 5-10% speed for auditability. It adds Writer.ReadFrom and Reader.WriteTo for efficient io.Copy pipelines, plus zero-value usability. Devs eyeing official Go zstd support dig the clean API matching flate/gzip, without the bloat of full-featured alternatives.

Who should use this?

Go backend engineers building networked services or archiving tools needing fast compression without deps. Teams prototyping stdlib contributions or migrating from snappy/flate to zstd. Avoid if you need max speed—stick to mature zstd github releases for production.

Verdict

Skip for now (explicit "do not use" warning, 10 stars, 1.0% credibility)—it's a pre-PR prototype with solid tests but no polished docs. Track the issue for stdlib merge; promising for pure-Go zstd in Golang 1.23+.

(187 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.