8 stable releases

1.3.4 Jun 1, 2024
1.3.2 Jun 1, 2023
1.3.1 May 30, 2023

#149 in Images

Download history 59/week @ 2024-07-27 35/week @ 2024-09-28 1/week @ 2024-10-05

556 downloads per month
Used in badgers-cli

MIT license

5MB
17K SLoC

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

Contains (WOFF font, 73KB) Raleway-Bold.woff, (WOFF font, 71KB) OpenSans-Bold.woff, (WOFF font, 70KB) OpenSans-ExtraBold.woff, (WOFF font, 70KB) OpenSans-SemiBold.woff, (WOFF font, 72KB) Raleway-Medium.woff, (WOFF font, 18KB) open-sans-latin-regular.woff and 1 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
~98K SLoC