directus-extension-human-readable-id
v1.0.1
Published
Generate a human-readable ID for a Directus text field
Downloads
100
Maintainers
Readme
Directus Extension: Human Readable ID
A Directus v10+ Interface for generating a human-readable ID for a text or string field in a collection. The ID takes the form of {adjective}-{color}-{animal}
, such as spicy-blue-eagle
or mean-pink-starfish
.
The different components of the ID can be manually selected from all of the possible values or a custom value can be entered.
This extension is inspired by the IDs generated by coolaj86/human-readable-ids.
Use Case
The idea is that this provides a realtively large set of random combinations that can be used as easily-remembered codes or IDs.
Installation
View the Directus Docs for the most up to date information on installing extensions.
Usage
To use the interface, create a standard text or string field and select "Human Readable ID" as the interface for the field.
1. Create a new Standard Field in a Collection
2. Set the type as either String
or Text
3. Select Human Readable ID as the Interface