npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

strapi-plugin-combobox

v1.0.1

Published

Type or select from a list of options

Readme

🌟 Strapi Plugin - Combobox

A custom field plugin for Strapi that provides a combobox component allowing users to type or select from a list of predefined options.

🎬 Preview

Documentation Image

🚀 Features

  • 🔍 Type to search through options
  • ✨ Autocomplete functionality
  • 🆕 Optional ability to create new options on the fly
  • 🧩 Seamless integration with Strapi's design system
  • ✅ Custom validation support
  • 🌐 Internationalization ready

📦 Installation

# Using npm
npm install strapi-plugin-combobox

# Using yarn
yarn add strapi-plugin-combobox

⚙️ Configuration

🔧 Basic Settings

| Option | Type | Default | Description | | ------------------------- | ------- | ------- | -------------------------------------------------- | | defaultOptions | string | - | List of options (format: "Label:Value" or "Value") | | enableCreateableOptions | boolean | false | Allow users to create new options |

📝 Example options format:

Option A Label:option-a-value
Option B Label:option-b-value
Option C Label:option-c-value
Simple Option
Another Simple Option

🛠️ Advanced Settings

| Option | Type | Default | Description | | ------------------ | ------ | ------- | ----------------------------------------- | | customValidation | string | - | Custom regex pattern for value validation |

🧪 Example validation patterns:

  • 🔢 Numbers only: /^\d*\.?\d+$/
  • 📧 Email format: /^[^\s@]+@[^\s@]+\.[^\s@]+$/
  • 🔡 Alphanumeric: /^[a-zA-Z0-9]+$/

📚 Usage

  1. 🧱 After installation, the plugin will be available as a custom field type in your Content-Types Builder.
  2. ➕ Add a new field and select "Combobox" as the field type.
  3. ⚙️ Configure the field options:
    • 📋 Add your default options (required)
    • 🆓 Enable createable options if you want users to add custom values
    • 🧩 Add custom validation regex if needed

🧾 Option Format

Options can be specified in two formats:

  1. 📝 Label:Value format – Display a user-friendly label while storing a different value

    Display Name:internal-value
    Product A:product-a
  2. 🔁 Simple format – Use the same value for both display and storage

    Apple
    Banana
    Orange

✅ Validation

The plugin includes built-in validation to ensure:

  • 📌 At least one option is provided
  • 🧷 Each option follows the correct format
  • 🧪 Custom regex validation can be applied to the selected/created values

🤝 Contributing

We welcome contributions! You can help by:

  1. 🐛 Creating issues for bugs or feature requests
  2. 📥 Submitting pull requests for improvements
  3. 💬 Providing feedback and suggestions

📄 License

MIT License – © Jorge Pizzati