# stewartlord/identicon.js

GitHub-style identicons as PNGs or SVGs in JS

Repository: https://github.com/stewartlord/identicon.js
Canonical: https://ross.abutalabs.com/products/identiconjs
Language: JavaScript
License: BSD-2-Clause
License Family: permissive
Last push: 2022-03-24T17:39:49+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4716, "days_push": 1623, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1363, forks 129 (observed 2026-08-28T04:04:30.506811+00:00)

## What it is
A small JavaScript library that generates GitHub-style identicon images from hash strings, outputting PNG or SVG formats. It supports customization of size, margin, colors, saturation, and brightness.

## Use cases
- generate default avatars for users without profile pictures
- create deterministic identicon images from hash values
- render GitHub-style identicons as PNG or SVG in the browser
- generate identicons server-side in Node.js
- customize identicon colors, size, and margins

## When to choose
- you need GitHub-style identicons in a JavaScript app
- you want lightweight client-side or server-side avatar generation from hashes
- you need both PNG and SVG output formats

## When to avoid
- you need identicons in a non-JavaScript language
- you need photo-based or AI-generated avatars
- you need exact GitHub-identical identicons from usernames (GitHub uses internal database identifiers, not username hashes)

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing, graphics
- domain: web-development, frontend, graphics
- platform: browser
- tags: identicon, avatar-generation, png, svg, github-style, nodejs, javascript

## Member repositories
- stewartlord/identicon.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:30.506811+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:41:26.921690+00:00, confidence not recorded.
  - readme: https://github.com/stewartlord/identicon.js (fetched 2026-08-28T04:04:30.506811+00:00, sha b273412bc17b)
  - registry_npm: https://registry.npmjs.org/identicon.js (fetched 2026-08-29T11:59:15.000904+00:00, sha 018beb621bfc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
