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

@tanglemedia/directus-extension-media-storage

v1.1.2

Published

Enables storing media files locally and on Cloudinary based on specific rules.

Readme

directus-extension-media-storage

This extension allows a Directus extension to use multiple storage adapters based on rules. This extension supports the use of local and cloudinary storage locations.

Installations

Add this extension inside the extensions folder of your Directus project.

.env variables

As of now, this extension supports local as the default storage and cloudinary as the secondary storage:

On your Directus .env file, add the following required variables

STORAGE_LOCATIONS="local,cloudinary"

This is a CSV of storage adapters that you want to use. For the complete list of adapters, refer here. For now, you can only use local (primary) and cloudinary (secondary). Always put local in the list first.

Local Storage Config

STORAGE_LOCAL_DRIVER="local"  
STORAGE_LOCAL_ROOT="./uploads"

Cloudinary Config

STORAGE_CLOUDINARY_DRIVER="cloudinary"

This is where your cloudinary files will be stored. Be sure to create a folder on your Cloudinary account first.

STORAGE_CLOUDINARY_ROOT="<cloudinary_folder>"

Enter your Clodudinary account details

STORAGE_CLOUDINARY_HEALTHCHECK_THRESHOLD=750
STORAGE_CLOUDINARY_CLOUD_NAME="<value>"
STORAGE_CLOUDINARY_API_KEY="<value>"
STORAGE_CLOUDINARY_API_SECRET="<value>"
STORAGE_CLOUDINARY_ACCESS_MODE="public"

CSV of files you want to upload to cloudinary

MEDIA_STORAGE_CLOUDINARY_MIME_TYPE_ALLOW_LIST="image/*"

Maximum file size for cloudinary in MB You should set this value at 100mb or less, if blank, the default value is 100mb

MEDIA_STORAGE_CLOUDINARY_MAXIMUM_FILE_SIZE=100

Blacklisted folder. Folders that you want to exclude from the cloudinary upload

MEDIA_STORAGE_CLOUDINARY_BLACKLIST_FOLDER="bda70046-71c2-4362-98d6-c38c55e50a4d,c3d00c3f-d2aa-42c6-8c70-00d60145cf4f,422f3293-2e02-45c7-a36c-3c95fd75b504"

Toggle this if we want to keep the file on both cloudinary and local. Defaults to false

MEDIA_STORAGE_CLOUDINARY_KEEP_LOCAL_COPY=false