npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sabfry/avatarium

v1.0.5

Published

Meet Avatarium, your new favorite React package! This nifty tool is here to help you whip up awesome avatars on the fly. Our Avatar component makes it easy for you to give users an identity, without having to go through the trouble of profile picture uplo

Downloads

62

Readme

Avatarium

Avatarium Website

Meet Avatarium, your new favorite React package! This nifty tool is here to help you whip up awesome avatars on the fly. Our Avatar component makes it easy for you to give users an identity, without having to go through the trouble of profile picture uploads which need storage, monitoring, and constraints. Use an avatar on:

  • User profile pictures
  • Comment sections
  • Chat Interfaces
  • Contact Lists
  • And so much more!

Key Features:

  • Theme Customization: Users can select from predefined themes like 'space', 'blob', 'emoji', 'monster', and 'user'.
  • Styling Options: Three predefined styles can be applied to the avatars, enhancing their visual appearance.
  • Seed Functionality: Allows for deterministic results when a seed is provided and non-deterministic results when no seed is used.

Installation

Install the component using NPM:

npm install @sabfry/avatarium

Usage

  1. Import Avatar
import Avatar from '@sabfry/avatarium';
  1. Use component in your project
<Avatar theme='blob' seed={userId} />
  1. Examples
<Avatar theme='blob' seed={userId} />
<Avatar theme='space' style='style1' />
<Avatar theme='emoji' seed='style3' />
<Avatar theme='user' size='sm' border={true} />
<Avatar theme='blob' size='xl' border={true} borderShape='circle' borderColor='blue'/>

Options

| Attribute | Options | Default | Description |
|---|---|---|---| | theme | string | none | blob, emoji, monster, space, user, cutie |
| size | string | sm | xs, sm, med, lg, xl | | border | boolean | false | if there's a border around the avatar |
| borderShape | string | square | cirlce, rounded, square. Note: won't do anything if border is false |
| borderColor | string | black | color name, hex, or rgb. Note: won't do anything if border is false |
| backgroundColor | string | black | color name, hex, or rgb. | | styleType | string | none | style1, style2, style3. Predefined styles. Other props won't affect the avatar if a style is chosen. |
| seed | number | random | You can add a number so that the avatar is deterministic. If left blank then the avatar will be random. |

Style Examples

Style 1

Style 1

Style 2

Style 2

Style 3

Style 3

Unstyled

Unstyled

In Use

Example

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Contributions

https://www.flaticon.com/packs/smiley-and-people-10 https://www.flaticon.com/packs/people-5 https://www.flaticon.com/packs/science-fiction-avatars-2 https://www.flaticon.com/packs/emoticon-29 https://www.flaticon.com/packs/monsters-2