
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
loogie-blo is a small and fast library to generate Ethereum Loogies identicons. It is a fork of the original Blo library by bpierre.
| Library | Renders/sec1 | Size | Types | Environment2 | Rendering |
|---|---|---|---|---|---|
| blo | 💥 8,197 | SVG | |||
| ethereum-blockies-base64 | 807 | PNG | |||
| blockies-react-svg | 1,749 | SVG | |||
| @download/blockies | 334 | Canvas | |||
| blockies-ts | 342 | Canvas | |||
| react-blockies | 2,361 | Canvas |
npm i -S loogie-blo
pnpm add loogie-blo
yarn add loogie-blo
import { loogieBlo } from "loogie-blo";
img.src = loogieBlo("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045");
loogie-blo is fast enough to not require memoization or async rendering for common use cases.
function AddressIcon({ address }: { address: `0x${string}` }) {
return (
<img
alt={address}
src={loogieBlo(address)}
/>
);
}
loogieBlo(address: Address, size = 64): stringGet a data URI string representing the identicon as an SVG image.
The size paramater shouldn’t usually be needed, as the image will stay sharp no matter what the size of the img element is.
Example:
import { loogieBlo } from "loogie-blo";
img.src = loogieBlo(address); // size inside the SVG defaults to 400px
img2.src = loogieBlo(address, 24); // set it to 24px
loogieBloSvg(address: Address, size = 64): stringSame as above except it returns the SVG code instead of a data URI string.
The library ships with TypeScript types included.
// A color in the HSL color space.
// [0]: 0-360 (hue)
// [1]: 0-100 (saturation)
// [2]: 0-100 (lightness)
export type Hsl = Uint16Array;
// An Ethereum address.
export type Address = `0x${string}`;
Yes.
No it only works with Ethereum addresses, but you can resolve the ENS name to an address (e.g. with wagmi) and pass the result to blo.
blo only focuses on the Ethereum identicons algorithm but you can use it with any data, just prefix it with 0x to fulfill the expected Address type if you are using TypeScript.
blo is short for blockies, which is the name of the original library it is based on.
The number of renders per second. It was measured on Chrome 117 Linux with an AMD Ryzen 7 PRO 4750U. See ./benchmark for the methodology. ↩
The term “all” refers to libraries that are framework agnostic and that run in browsers, Bun and Node.js. ↩
FAQs
loogie-blo is a small and fast library to generate Ethereum Loogies identicons. It is a fork of the original Blo library by bpierre.
We found that loogie-blo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.