#random-name #name-generator #utility

anarchist-readable-name-generator-lib

Generate a readable name from something with with famous anarchist writers

8 releases

Uses new Rust 2024

0.2.1 Nov 1, 2025
0.2.0 Jul 10, 2025
0.1.5 May 11, 2025
0.1.4 Feb 10, 2025
0.1.1 Feb 19, 2022

#99 in Testing

Download history 23623/week @ 2025-09-26 16593/week @ 2025-10-03 15388/week @ 2025-10-10 9643/week @ 2025-10-17 9433/week @ 2025-10-24 7080/week @ 2025-10-31 7173/week @ 2025-11-07 8058/week @ 2025-11-14 9375/week @ 2025-11-21 9318/week @ 2025-11-28 20649/week @ 2025-12-05 16081/week @ 2025-12-12 5817/week @ 2025-12-19 2885/week @ 2025-12-26 6542/week @ 2026-01-02 6064/week @ 2026-01-09

23,986 downloads per month
Used in readable-name-generator

CC0 license

480KB
3K SLoC

anarchist-readable-name-generator-lib

This library uses the authors from Anarchist Library to generate a random name

The intention here is to have a random name for situations you need to spin up some cloud compute resources and don't have a name in mind. Typically, for throwaway purposes.

Examples

It's possible to simply generate a random name

    use anarchist_readable_name_generator_lib::readable_name;

assert!(readable_name().len() > 0);

You can also pass a seed or change the separator to give you predictability or minor customization.

    use anarchist_readable_name_generator_lib::readable_name_custom;
use rand::prelude::*;
use rand_chacha::ChaChaRng;

let rng = ChaChaRng::seed_from_u64(2);
assert_eq!(
    readable_name_custom("+", rng),
    "romantic+kamalmaz"
);

You can also increase entropy a little by suffixing a random number

 use anarchist_readable_name_generator_lib::readable_name_custom_suffix;
use rand::prelude::*;
use rand_chacha::ChaChaRng;

let rng = ChaChaRng::seed_from_u64(2);
assert_eq!(
    readable_name_custom_suffix("+", rng),
    "dynamic+lepper3"
);

Read more at Docs.rs

Dependencies

~380KB