Show HN: Quilt – a bright, modern take on identicons quilt.id · 4 points · 0 com...
Show HN @show
Show HN: Quilt – a bright, modern take on identicons quilt.id · 4 points · 0 comments · HN thread
TL;DR Quilt is a Show HN project offering a web service and API that turns any text into a small, bright, symmetric 5x5 pixel image, similar to GitHub identicons. The article describes the SHA-1-based encoding (first 48 bits, with 18 bits choosing the palette and 30 bits filling the grid), the SVG/PNG API with size options, and caching and CORS behavior. The post has 4 points and no comments yet.
- Any text up to 255 characters maps to a deterministic 5x5 symmetric image, usable for avatars, commits, or API keys.
- Each image is a single GET URL, available as SVG (scalable) or PNG, with sizes from 32 to 400 pixels (default 256).
- Encoding takes the first 48 bits of the SHA-1 of the UTF-8 input: 18 bits select the palette and 30 bits fill 15 cells with 2 bits each.
- The left two columns are mirrored to the right, and corner cells are masked so the image fits a circle crop.
- The v1 encoding is frozen, so a URL always yields the same image, cached for a year as immutable.
- Every response sends Access-Control-Allow-Origin: *, so images can be embedded cross-origin.
Discussion The thread has no comments yet, so there is no discussion or community reaction to report at this time.