
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
boring-avatars
Advanced tools
Boring avatars is a tiny JavaScript React library that generates custom, SVG-based, round avatars from any username and color palette.
Boring avatars is a tiny JavaScript React library that generates custom, SVG-based avatars from any username and color palette.
npm install boring-avatars
import Avatar from 'boring-avatars';
<Avatar name="Maria Mitchell" />;
Prop | Type | Default |
---|---|---|
size | number or string | 40px |
square | boolean | false |
title | boolean | false |
name | string | Clara Barton |
variant | oneOf: marble , beam , pixel ,sunset , ring , bauhaus | marble |
colors | array | ['#92A1C6', '#146A7C', '#F0AB3D', '#C271B4', '#C20D90'] |
The name
prop is used to generate the avatar. It can be the username, email or any random string.
<Avatar name="Maria Mitchell"/>
The variant
prop is used to change the theme of the avatar. The available variants are: marble
, beam
, pixel
, sunset
, ring
and bauhaus
.
<Avatar name="Alice Paul" variant="beam"/>
The size
prop is used to change the size of the avatar.
<Avatar name="Ada Lovelace" size={88}/>
The colors
prop is used to change the color palette of the avatar.
<Avatar name="Grace Hopper" colors={["#fb6900", "#f63700", "#004853", "#007e80", "#00b9bd"]}/>
The square
prop is used to make the avatar square.
<Avatar name="Helen Keller" square/>
[!IMPORTANT]
Please note that the old service was paused in July 31st 2024. We recommend transitioning to our new API service to ensure uninterrupted access and support.
Get access to the Boring avatars API service here →.
FAQs
Boring avatars is a tiny JavaScript React library that generates custom, SVG-based, round avatars from any username and color palette.
The npm package boring-avatars receives a total of 73,110 weekly downloads. As such, boring-avatars popularity was classified as popular.
We found that boring-avatars demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.