Skip to content

Playground

Try all eleven styles below. Change the seed and watch every style change together — same input, eleven different deterministic outputs.

Avatar Styles Preview

Enter a seed value to see how each style generates unique avatars

64px

Run the playgrounds locally

The repository ships six Vite playgrounds — one per framework wrapper, plus one for the core API. They import the workspace sources directly, so changes show up immediately.

  1. Clone the repository

    Terminal window
    git clone https://github.com/hugoogb/avatar-generator.git
  2. Install the playground dependencies

    The playgrounds are their own pnpm project, so install from that directory:

    Terminal window
    cd avatar-generator/playgrounds && pnpm install
  3. Start the one you want

    Terminal window
    pnpm playground:core
  4. Open the URL Vite prints in the terminal

To check that all six still build — which CI does on every pull request:

Terminal window
pnpm build:all

Styles you can try

StylePackageDescription
Initials@avatar-generator/style-initialsLetter initials on colored backgrounds
Geometric@avatar-generator/style-geometricGitHub-style symmetrical identicon grids
Pixels@avatar-generator/style-pixels8-bit retro pixel faces
Rings@avatar-generator/style-ringsConcentric rings, segmented and dashed variants
Faces@avatar-generator/style-facesMinimal flat geometric faces
Illustrated@avatar-generator/style-illustratedDetailed cartoon faces with accessories
Anime@avatar-generator/style-animeAnime/manga-inspired faces with expressive eyes
Abstract@avatar-generator/style-abstractMondrian/Kandinsky/Bauhaus-inspired compositions
Emoji@avatar-generator/style-emojiYellow emoji-style expressive faces
Animals@avatar-generator/style-animalsCute animal avatars (cat, dog, fox, panda, …)
Gradient@avatar-generator/style-gradientSmooth gradients with pattern overlays

Every style produces a deterministic avatar from the seed you give it: the same seed always returns the same SVG.