Package Name Generator
Suggest and validate package names for npm, PyPI, Composer, Go modules and RubyGems against each registry's naming rules.
Pick an ecosystem and describe your package to get names that follow its naming conventions - or check a name you already have.
Checks follow each registry's published naming rules. Registries are not queried, so a valid name may already be taken - search the registry before publishing. For deeper single-name checks see the Package Name Validator and Python Package Name Checker.
More Developer Documentation / Project Tools
View all 11Registries are not queried, so check that the name is free before you publish.
What Is the Package Name Generator?
It suggests package names for npm, PyPI, Composer (Packagist), Go modules and RubyGems, and checks each one - or a name you already have - against that ecosystem's naming rules. It also shows the install command, and for Python, Go and Ruby the import or require name that goes with it.
Why Naming Rules Differ
npm wants lowercase URL-safe names up to 214 characters with an optional @scope/; PyPI accepts mixed case but normalises My_Package and my-package to the same name; Composer requires vendor/package; Go uses a module path that starts with a domain; RubyGems uses underscores between words and dashes for extensions of another gem. A name that is perfect in one ecosystem can be awkward or invalid in another.
How to Use It
- Pick the ecosystem.
- Enter a few keywords and, where relevant, a scope, vendor or module path prefix.
- Optionally type an existing name to check it.
- Click Generate & validate.
Example
For PyPI with date format helpers, the suggestion date-format-helpers is valid and is imported as date_format_helpers. The name my_Package is flagged: allowed, but lowercase with hyphens is recommended.
Limitations
Registries are not queried, so a valid name may already be taken, and some registries also block names too similar to popular packages. For a single-name deep check use the Package Name Validator (npm and Composer) or the Python Package Name Checker. For the project itself, try the Project Name Generator.
Frequently Asked Questions
Explore More Tools
Keep going with related categories and our most used tools.