dicebear_styles 10.2.0
dicebear_styles: ^10.2.0 copied to clipboard
Definition files of the DiceBear avatar styles, embedded as Dart string constants.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
This repository ships the DiceBear avatar styles as pure JSON definition files (distributed via npm, Composer, PyPI, crates.io, Go modules, and pub.dev). Versions track the DiceBear release line.
Unreleased #
Added #
- Dart: The styles are now available as a
dicebear_stylespackage on pub.dev. Dart has no compile-time file embedding, soscripts/build.shgenerates one library per style with the raw JSON as a string constant (e.g.package:dicebear_styles/adventurer.dart); a compiled app only embeds the styles it imports. The umbrella librarydicebear_styles.dartre-exports every style and addsget(name)andall, so the Dart, Rust and Go shims share one API. Each generated file credits its style's artist and license. The generatedlib/is git-ignored (like the npmdist/) and built fresh by the test and publish workflows;tool/check_parity.dartproves in CI that every embedded constant is byte-identical to itssrc/*.jsonsource.
10.2.0 - 2026-06-08 #
Added #
- Go: The styles are now available as a Go module
(
github.com/dicebear/styles/v10). Each style is embedded and exposed as an exportedstringvariable and viaGet(name)/All(). Generated byscripts/build.shalongside the Rust shim.
Changed #
- Rust (breaking): Renamed
enabled()toall(), so the Rust and Go shims share one API (<Style>constant/variable +get(name)+all()/All()). We normally follow Semantic Versioning strictly, which would make this a major bump. We make a one-time exception here: the crate had only just been uploaded to crates.io and was never promoted or officially announced, so it had no real-world users to break. Renaming now (before adoption) buys a clean, cross-language API rather than carrying a misnamed function (or a deprecated alias) forever.
10.1.0 - 2026-06-03 #
Added #
- Rust distribution: A
dicebear-stylescrate is now published to crates.io, alongside the existing npm, Composer, and PyPI distributions. It embeds the same JSON style definitions viainclude_str!, gated behind one Cargo feature per style, and exposes each as a&'static strconstant plusget(name)/enabled()lookup helpers.
Changed #
- Schema: All style definitions now reference
@dicebear/schema@1.1.0(previously1.0.0).
Fixed #
- Lorelei: The
mouthis now visible throughbeardvariants. The masking group overlaying the mouth on beards was rendered at0opacity (fully hidden) and is now at0.4, matching the intended design. - Rings: Now uses the default
shape-renderinginstead ofcrispEdges, so the rings render with smooth anti-aliased edges. - Packaging: The published packages now reference
LICENSE.mdin thepackage.jsonfilesfield, so the license is included in the npm tarball.
10.1.0-rc.1 - 2026-05-31 #
Added #
- Python distribution: A
dicebear-stylespackage is now published to PyPI, alongside the existing npm and Composer distributions, exposing the same JSON style definitions to Python consumers.
10.0.0 - 2026-05-27 #
See the v10.0.0 release notes.
Added #
- 6 new avatar styles: Disco, Glyphs, Initial Face, Shape Grid, Stripes, and Triangles.
- Composer distribution: Style definitions are now published to Packagist so the PHP library can consume them.
Changed #
- Each avatar style is now stored as a JSON definition file (built to a minified
*.min.json) instead of TypeScript/JavaScript code, separating licensing and artwork concerns from implementation.