A deterministic face for every Cardano key.

SVG identicons for addresses, stake keys, stake pools and DReps — structure and colour derived entirely from the entity's bytes. Same input, same icon.

Zero runtime depsNode + browserLight · dark · autoApache-2.0
npm i @stricahq/cardano-identicon
The range

One algorithm, billions of faces

identicon(id)
Hue, structure and glyph are all seeded by the entity's bytes — the same input always draws the same face.32-bit seed → SVG
The kinds

Four entities, four core glyphs

auto-detected from the bech32 prefix
Address
addr…Hexagon
Stake key
stake…Diamond
Stake pool
pool…Ring
DRep
drep…Triangle
The geometry

Any corner, square to circle

borderRadius: 0 → 50
SquareborderRadius: 0
RoundedborderRadius: 18
CircleborderRadius: 50
The palette

Light and dark, same identity

theme: "light" | "dark" | "auto"
Lighttheme:"light"
Darktheme:"dark"

Themes fix only saturation and lightness — hue stays seeded by the bytes, so an entity keeps its colours across light and dark. auto embeds both and follows the viewer's prefers-color-scheme.

The scale

Vector-crisp at any size

size: 128 … 28
128px
96px
72px
56px
40px
28px