Skip to content

soranoo/strapi-ulid

Repository files navigation

Strapi Plugin - ULID

Tests MIT License

This plugin adds support for ULID field type to Strapi as a Custom field. The field will be automatically generated when creating a new entry.

This plugin is inspired and based on strapi-auto-uuid by Cringe Studio. All credits go to them.

🚀 Getting Started

  1. Install the plugin by running:

    npm install strapi-ulid
  2. Rebuild admin panel:

    npm run build

📝 Usage

Add the custom field from the admin panel: screenshot

or

Add the following to your content-type schema:

{
  // ....
  attributes: {
    // ....
    ulid: {
      type: "customField",
      customField: "plugin::field-ulid.ulid",
    },
    // ....
  },
  // ....
}

📝 License

This project is licensed under the MIT License - see the LICENSE file for details