7 stable releases

1.3.2 Jun 1, 2023
1.3.1 May 30, 2023

#301 in Images

MIT license

5.5MB
18K SLoC

JavaScript 11K SLoC // 0.1% comments TypeScript 4K SLoC // 0.1% comments Rust 3K SLoC // 0.0% comments Shell 10 SLoC // 0.4% comments

Contains (Zip file, 1MB) vendor/cssgg/icons/all.xd, (WOFF font, 71KB) OpenSans-Bold.woff, (WOFF font, 70KB) OpenSans-ExtraBold.woff, (WOFF font, 70KB) OpenSans-SemiBold.woff, (WOFF font, 73KB) Raleway-Bold.woff, (WOFF font, 72KB) Raleway-Medium.woff and 2 more.

Spacebadgers

Library for generating SVG badges. It powers badgers.space.

Examples

use spacebadgers::BadgeBuilder;

// Generate a badge with the default color palette
let badge_svg = BadgeBuilder::new()
    .label("release")
    .status("1.0")
    .build()
    .svg();

// Print the SVG code to stdout
println!("{}", badge_svg);

lib.rs:

SpaceBadgers is a library for generating SVG badges. It powers badgers.space.

Examples

use spacebadgers::BadgeBuilder;

// Generate a badge with the default color palette
let badge_svg = BadgeBuilder::new()
    .label("release")
    .status("1.0")
    .build()
    .svg();

// Print the SVG code to stdout
println!("{}", badge_svg);

A collection of color palettes.

Dependencies

~3.5–6MB
~100K SLoC