Description
Namor.js is a name generator for Node.js that creates random, URL-friendly names, such as the unique subdomains many hosting platforms assign. Each name is built from words in a dictionary, with an optional trailing salt of random characters to reduce collisions. You can set the number of words, from 1 to 4, the separator, the salt length and the salt type. It also supports subdomain validation against reserved names, custom dictionaries and reserved-word lists, and alternate dictionaries. The README lists the number of possible combinations for its default and rugged dictionaries, which helps you choose a salt length. It warns that generated names are not guaranteed to be unique, so you should check your database before you assume a value is free. A version for Elixir is also available.…
Highlights
- URL-friendly random names from word dictionaries
- Optional random salt to reduce collisions
- Subdomain validation against reserved names
- Custom and alternate dictionaries
- Elixir version available
Ratings & Reviews
No ratings yet
Be the first to rate Namor.js.
People also visit
Tld.js
JavaScript API to work easily with complex domain names, subdomains and…
Namor.js FAQ
What is Namor.js for?
Generating random, URL-friendly names, for example unique subdomains or identifiers in your app.
How do I make the names more unique?
Increase the salt length. The README lists total combinations for each dictionary, but names are not guaranteed to be unique, so check your database before using one.
Can I use my own word lists?
Yes. It supports custom dictionaries, reserved word lists and alternate dictionaries.
Is there a version for other languages?
Yes. The README says it is also available for Elixir.
What are the best Namor.js alternatives?
Popular alternatives to Namor.js include Tld.js, isroot.in and runs-on.dev. See all Namor.js alternatives









