MCPcopy Index your code
hub / github.com/bbrks/go-blurhash

github.com/bbrks/go-blurhash @v1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.0 ↗ · + Follow
58 symbols 170 edges 15 files 15 documented · 26% 2 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

go-blurhash Go Reference GitHub tag license Go Report Card codecov

A pure Go implementation of Blurhash. The API is stable, however the hashing function in either direction may not be.

Blurhash Demo

Blurhash is an algorithm written by Dag Ågren for Wolt (woltapp/blurhash) that encodes an image into a short (~20-30 byte) ASCII string. When you decode the string back into an image, you get a gradient of colors that represent the original image. This can be useful for scenarios where you want an image placeholder before loading, or even to censor the contents of an image a la Mastodon.

Notable features

  • Pure Go with no dependencies
  • High performance (as of v1.2)
  • Reusable Encoder/Decoder APIs for zero-allocation batch processing

Contributing

Issues, feature requests or improvements welcome!

Licence

This project is licensed under the MIT License.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 49
Method 6
Struct 2
Interface 1

Languages

Go100%

Modules by API surface

decode_test.go14 symbols
decode.go10 symbols
encode.go8 symbols
encode_test.go7 symbols
base83/base83_test.go6 symbols
util.go5 symbols
fuzz_test.go3 symbols
base83/base83.go2 symbols
util_test.go1 symbols
srgb_lut_generator.go1 symbols
base83/fuzz_test.go1 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add go-blurhash \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page