MCPcopy Index your code
hub / github.com/dmester/jdenticon

github.com/dmester/jdenticon @3.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 3.3.0 ↗ · + Follow
157 symbols 365 edges 64 files 50 documented · 32% 4 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Jdenticon

JavaScript library for generating highly recognizable identicons using HTML5 canvas or SVG.

Sample identicons

Tests Downloads jsDelivr npm bundle size License MIT

Live demo

https://jdenticon.com

Getting started

Using Jdenticon is simple. Follow the steps below to integrate Jdenticon into your website.

1. Add identicon placeholders

Jdenticon is able to render both raster and vector identicons. Raster icons are rendered slightly faster than vector icons, but vector icons scale better on high resolution screens. Add a canvas to render a raster icon, or an inline svg element to render a vector icon.


<svg width="80" height="80" data-jdenticon-value="icon value"></svg>




<canvas width="80" height="80" data-jdenticon-value="icon value"></canvas>

2. Add reference to Jdenticon

Include the Jdenticon library somewhere on your page. You can either host it yourself or use it right off jsDelivr.


<script src="https://cdn.jsdelivr.net/npm/jdenticon@3.3.0/dist/jdenticon.min.js"
        integrity="sha384-LfouGM03m83ArVtne1JPk926e3SGD0Tz8XHtW2OKGsgeBU/UfR0Fa8eX+UlwSSAZ"
        crossorigin="anonymous">
</script>




<script src="https://github.com/dmester/jdenticon/raw/3.3.0/-path-to-/jdenticon.min.js"></script>

That's it!

Other resources

API documentation

For more usage examples and API documentation, please see:

https://jdenticon.com

Other platforms

There are ports or bindings for Jdenticon available for the following platforms:

License

Jdenticon is available under the MIT license.

Extension points exported contracts — how you extend this code

JdenticonCompatibleCanvas (Interface)
* This is a subset of `HTMLCanvasElement` to allow using incomplete canvas implementations, * like `canvas-rendere
types/umd.d.ts
JdenticonConfig (Interface)
(no doc)
types/module.d.ts
Element (Interface)
(no doc)
types/env.d.ts
JdenticonCompatibleCanvasRenderingContext2D (Interface)
* This is a subset of `CanvasRenderingContext2D` to allow using incomplete canvas implementations, * like `canvas-
types/umd.d.ts
JdenticonCompatibleCanvas (Interface)
(no doc)
types/module.d.ts
Buffer (Interface)
(no doc)
types/env.d.ts
JdenticonConfig (Interface)
(no doc)
types/umd.d.ts
JdenticonCompatibleCanvasRenderingContext2D (Interface)
(no doc)
types/module.d.ts

Core symbols most depended-on inside this repo

update
called by 30
src/node-esm.js
toSvg
called by 23
src/apis/toSvg.js
toPng
called by 23
src/apis/toPng.js
sha1
called by 22
src/common/sha1.js
getContext
called by 9
types/umd.d.ts
addRectangle
called by 9
src/renderer/graphics.js
drawIcon
called by 9
src/apis/drawIcon.js
parseHex
called by 9
src/common/parseHex.js

Shape

Method 65
Function 62
Class 18
Interface 12

Languages

TypeScript100%

Modules by API surface

types/umd.d.ts26 symbols
types/module.d.ts16 symbols
src/renderer/svg/svgRenderer.js9 symbols
src/renderer/canvas/canvasRenderer.js9 symbols
src/renderer/graphics.js8 symbols
src/renderer/color.js7 symbols
src/renderer/svg/svgWriter.js6 symbols
src/renderer/svg/svgPath.js6 symbols
src/renderer/svg/svgElement.js6 symbols
src/common/configuration.js6 symbols
src/apis/update.js6 symbols
test/e2e/browser/test.js5 symbols

For agents

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

⬇ download graph artifact