Julian Lunger

Freelance software developer

Zürich, global

Deterministic visuals: glyphatar

2026-11-28

Recently, I’ve been playing with public / private keypairs for identity & signing in a networked / federated service. No username, just a public key as your proveable identity.

To more easily recognize different users, I added a word list and generated determinstic phrases (e.g. shovel_pear_lawn). This was a little boring and hard to differentiate at a glance, so then I added emoji too. You can also generate visuals, like SSH randomart, GitHub’s Identicons, or Robohashes:

SSH randomart for alice SSH randomart for bob SSH randomart for carol SSH randomart for dave SSH randomart for erin SSH randomart for frank
GitHub identicon for alice GitHub identicon for bob GitHub identicon for carol GitHub identicon for dave GitHub identicon for erin GitHub identicon for frank
Robohash for alice Robohash for bob Robohash for carol Robohash for dave Robohash for erin Robohash for frank

My favorite was Jdenticon - they feel very visually distinctive (at least for people who see colors; I’d love to consider how these could work better for the visually-impaired!).

Jdenticon for alice Jdenticon for bob Jdenticon for carol Jdenticon for dave Jdenticon for erin Jdenticon for frank

However, I don’t really like the 4-way rotation, and I preferred a Rust library for my projects. So, I vibe-coded my own, and decided to call it glyphatar:

Glyphatar for alice Glyphatar for bob Glyphatar for carol Glyphatar for dave Glyphatar for erin Glyphatar for frank

Some considerations:

Development

The first versions tended to be green:

Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change Glyphatar before the color change

So I changed the colors to be more evenly spread, perception-wise:

Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change Glyphatar after the color change

If you use it and like it (or don’t), let me know!

Usage

Rust

On crates.io as glyphatar:

cargo add glyphatar
// Any bytes: a public key, a user id, an email hash…
let svg: String = glyphatar::svg(b"some public key bytes", 64);

// With a <title> for screen readers and hover tooltips:
let svg = glyphatar::Glyphatar::new(b"alice").to_svg_with_title(64, "alice");

TypeScript / JavaScript

On npm as glyphatar - the Rust crate compiled to WASM and inlined into one ES module, with types included:

npm install glyphatar
import { svg } from "glyphatar";

// Any bytes: a string (UTF-8 encoded), Uint8Array, ArrayBuffer…
const markup: string = svg("some public key", 64);

// With a <title> for screen readers and hover tooltips:
const titled = svg("alice", 64, { title: "alice" });