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

decap-cms-widget-bulk-github-images

v0.1.0

Published

Decap CMS custom widget for bulk upload and multi-select of GitHub-backed gallery images.

Readme

decap-cms-widget-bulk-github-images

Custom Decap CMS widget that supports bulk gallery workflows while keeping media in your GitHub repository.

What it does

  • Bulk upload multiple local images to your repo media_folder
  • Multi-select existing images from that same folder
  • Store gallery values as public paths (for example /uploads/example.jpg)
  • Works with GitHub backend and local Decap proxy (decap-server)

Install

npm install decap-cms-widget-bulk-github-images

Use in /admin/index.html

For production, prefer self-hosting pinned assets (recommended):

<script src="/admin/vendor/decap-cms-3.0.0.js"></script>
<script src="/admin/vendor/decap-cms-widget-bulk-github-images-0.1.0.js"></script>

If you use a CDN, pin exact versions and add SRI:

<script
  src="https://unpkg.com/[email protected]/dist/decap-cms.js"
  integrity="sha384-REPLACE_WITH_REAL_HASH"
  crossorigin="anonymous"
></script>
<script
  src="https://unpkg.com/[email protected]/dist/index.js"
  integrity="sha384-REPLACE_WITH_REAL_HASH"
  crossorigin="anonymous"
></script>

config.yml field config

- label: Gallery Images
  name: gallery
  widget: bulkGithubImages
  required: false
  repo: YOUR_OWNER/YOUR_REPO
  branch: main
  proxy_url: http://localhost:8081/api/v1
  allow_remote_proxy: false
  strict_proxy_security: true
  media_folder: src/uploads
  public_folder: /uploads
  max_file_size_mb: 10
  max_files_per_upload: 25
  max_total_upload_mb: 50
  allowed_extensions: [".jpg", ".jpeg", ".png", ".gif", ".webp", ".avif", ".bmp"]

Security notes:

  • proxy_url must be same-origin or localhost by default.
  • Non-local proxy_url requires https.
  • Set allow_remote_proxy: true only when you intentionally trust a remote proxy endpoint.
  • strict_proxy_security: true (default) only allows localhost proxy_url.
  • On non-local hosts, the widget always uses GitHub API mode and does not auto-fallback through proxy calls.
  • media_folder and returned media paths are validated to reject unsafe path segments like ...
  • Upload validation enforces allowed_extensions, max_file_size_mb, max_files_per_upload, and max_total_upload_mb.

Local development

This is a source-first repo:

  • Edit src/index.js
  • Run npm run build to generate dist/index.js
  • Run npm test to execute security regression tests

When using local_backend: true, run both:

npm run build
npm run dev
npm run dev:cms

The widget uses proxy_url for local media operations.

Publish

cd packages/decap-cms-widget-bulk-github-images
npm publish