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-media-extended

v1.0.1

Published

Extended media field plugin for Strapi with enhanced features

Readme

Strapi Plugin Media Extended

A Strapi plugin that provides an extended media field with enhanced features for file selection and upload.

Features

  • 🎨 Custom media field type for Strapi plugins
  • 📁 Support for single and multiple file selection
  • 🎯 File type filtering (images, videos, audios, files)
  • 🖼️ Image preview with carousel navigation
  • 📂 Full media library dialog with folder navigation
  • ⬆️ Drag and drop file upload
  • 🔍 Search and filter capabilities
  • 📱 Responsive and user-friendly interface
  • 🌐 Internationalization support
  • ✨ 1:1 experience with native Strapi media field

Installation

npm install strapi-plugin-media-extended
# or
yarn add strapi-plugin-media-extended

Usage

1. Enable the plugin

In your Strapi project, the plugin should be automatically detected. If not, add it to your config/plugins.js:

module.exports = {
  'media-extended': {
    enabled: true,
  },
};

2. Use in your custom fields

In your plugin's custom field registration:

app.customFields.register({
  name: 'my-media-field',
  pluginId: 'my-plugin',
  type: 'media-extended',
  intlLabel: {
    id: 'my-plugin.field.label',
    defaultMessage: 'My Media Field',
  },
  intlDescription: {
    id: 'my-plugin.field.description',
    defaultMessage: 'Select media files',
  },
  components: {
    Input: async () => import('strapi-plugin-media-extended').then(mod => mod.MediaExtendedInput),
  },
});

3. Configure field options

The media-extended field supports the following options:

  • multiple (boolean): Allow selecting multiple files
  • allowedTypes (array): Restrict file types ['images', 'videos', 'audios', 'files']
  • required (boolean): Make the field required

Field Configuration

When using the media-extended field in your content types:

{
  "myMediaField": {
    "type": "media-extended",
    "multiple": true,
    "allowedTypes": ["images", "videos"],
    "required": false
  }
}

Development

Building the plugin

npm run build
# or for development with watch mode
npm run watch

Project Structure

strapi-plugin-media-extended/
├── admin/           # Admin panel code
│   └── src/
│       ├── components/     # React components
│       ├── translations/   # i18n files
│       └── index.ts       # Plugin registration
├── server/          # Server-side code
│   └── src/
│       ├── register.ts    # Custom field registration
│       └── index.ts
├── dist/            # Built files
└── package.json

API

MediaExtendedInput Props

| Prop | Type | Description | Default | |------|------|-------------|---------| | name | string | Field name | required | | label | string | Field label | - | | hint | string | Help text | - | | required | boolean | Is field required | false | | disabled | boolean | Is field disabled | false | | attribute | object | Field configuration | {} | | attribute.multiple | boolean | Allow multiple selection | false | | attribute.allowedTypes | array | Allowed file types | null |

Allowed File Types

  • images: JPEG, PNG, GIF, SVG, TIFF, ICO, DVU
  • videos: MPEG, MP4, Quicktime, WMV, AVI, FLV
  • audios: MP3, WAV, OGG
  • files: CSV, ZIP, PDF, Excel, JSON, etc.

Contributing

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

License

MIT License

Support

Changelog

1.0.0

  • Initial release
  • Basic media field functionality
  • Support for single/multiple selection
  • File type filtering