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

@tunghtml/strapi-plugin-multiselect-checkbox

v1.1.1

Published

A Strapi v5 custom field plugin with checkbox UI that stores selected values as an array of strings (JSON type) instead of comma-separated strings.

Readme

@tunghtml/strapi-plugin-multiselect-checkbox

A Strapi v5 custom field plugin with checkbox UI that stores selected values as an array of strings (JSON type) instead of comma-separated strings.

Strapi Version npm version License

✨ Features

  • Checkbox UI for intuitive multi-selection
  • Array Storage - Stores data as ["Option 1", "Option 2"] instead of "Option 1,Option 2"
  • JSON Type - Uses Strapi's JSON field type for proper array handling
  • Strapi v5 compatible
  • TypeScript support
  • Easy Configuration - Define options directly in Content-Type Builder

📦 Installation

npm install @tunghtml/strapi-plugin-multiselect-checkbox

or with yarn:

yarn add @tunghtml/strapi-plugin-multiselect-checkbox

🔧 Configuration

Add the plugin to your config/plugins.js (or config/plugins.ts):

module.exports = {
  // ...
  'multiselect-checkbox': {
    enabled: true,
  },
};

Then restart your Strapi application.

🎯 Usage

1. Add Field in Content-Type Builder

  1. Go to Content-Type Builder
  2. Select a content type or create a new one
  3. Click Add another field
  4. Choose Custom tab
  5. Select Multiselect Checkbox
  6. Configure your field:
    • Name: Field name
    • Available Options: Enter options (one per line)
  7. Click Finish and Save

2. Use in Content Manager

The field will appear as a list of checkboxes in the Content Manager. Select multiple options and save.

3. API Response

The API will return selected values as an array:

{
  "id": 1,
  "myField": ["Option 1", "Option 3", "Option 5"]
}

📊 Data Format Comparison

This Plugin (Array)

{
  "field": ["Option 1", "Option 2", "Option 3"]
}

Other Plugins (String)

{
  "field": "Option 1,Option 2,Option 3"
}

🎨 Example Schema

{
  "kind": "collectionType",
  "collectionName": "products",
  "info": {
    "singularName": "product",
    "pluralName": "products",
    "displayName": "Product"
  },
  "attributes": {
    "sizes": {
      "type": "customField",
      "customField": "plugin::multiselect-checkbox.multiselect-checkbox",
      "options": {
        "availableOptions": ["Small", "Medium", "Large", "XL"]
      }
    }
  }
}

🔍 Querying Data

Since data is stored as JSON array, you can query it using Strapi's filters:

// Find entries where field contains "Option 1"
const entries = await strapi.entityService.findMany('api::product.product', {
  filters: {
    sizes: {
      $contains: 'Small',
    },
  },
});

🛠️ Development

Build the Plugin

npm run build

Watch Mode

npm run watch

🙏 Credits

This plugin is based on strapi-plugin-multiselect-field by Felix M., modified to store data as arrays instead of comma-separated strings.

📝 License

MIT

🐛 Issues

Found a bug? Please report it on GitHub Issues.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📧 Author

Tung Le