1.0.0 • Published 2 months ago

directus-extension-human-readable-id v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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.

Screenshot of the new item creation page showing the human-readable-id field

The different components of the ID can be manually selected from all of the possible values or a custom value can be entered.

Screenshot of the edit dialog showing how the different components of the id can be manually selected

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

Screen Shot 2022-07-19 at 5 52 23 PM

2. Set the type as either String or Text

Screen Shot 2022-07-19 at 5 53 27 PM

3. Select Human Readable ID as the Interface

Screen Shot 2022-07-19 at 5 54 18 PM