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-bulk-publish

v1.3.1

Published

Strapi 5 plugin to bulk publish content across all locales with a single webhook trigger

Readme

Strapi Bulk Publish

npm version license

Strapi 5 plugin to bulk publish content across all locales with a single webhook trigger for frontend rebuild.

Features

  • Dedicated admin page listing all draft documents with per-locale status
  • Batch selection and one-click publish across all locales
  • Configurable content type and display field
  • Auto-detection of default locale from Strapi i18n settings
  • Flexible webhook with preset formats: Generic JSON and GitLab Pipeline Trigger
  • Token-based authentication for webhooks
  • Configurable key-value variables sent with webhook requests
  • SSRF protection for webhook URLs
  • Confirmation dialog before bulk actions
  • Custom admin permissions
  • Full i18n support for admin UI

Compatibility

| Strapi | Plugin | |--------|--------| | 5.x | 1.x |

Installation

npm install strapi-bulk-publish

Configuration

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

export default ({ env }) => ({
  'bulk-publish': {
    enabled: true,
    config: {
      contentType: 'api::blog-post.blog-post', // required — your content type UID
      titleField: 'title',                      // optional, default: 'title'
    },
  },
});

Options

| Option | Type | Required | Default | Description | |--------|------|----------|---------|-------------| | contentType | string | yes | — | Strapi content type UID (e.g. api::article.article) | | titleField | string | no | 'title' | Field name used as the display title in the admin list |

Webhook

Configure the webhook in Settings > Bulk Publish > Webhook. Two formats are supported:

Generic JSON

Sends a POST request with Content-Type: application/json:

{
  "event": "bulk-publish",
  "posts": ["documentId1", "documentId2"],
  "publishedAt": "2026-05-08T12:00:00.000Z"
}

If a token is configured, it is sent as an Authorization: Bearer <token> header. Any custom variables are merged into the JSON body as top-level keys.

GitLab Pipeline Trigger

Sends a POST request with Content-Type: multipart/form-data, matching the GitLab pipeline trigger API:

token=<trigger-token>
ref=<branch>
variables[BULK_PUBLISH_EVENT]=bulk-publish
variables[BULK_PUBLISH_POSTS]=docId1,docId2
variables[BULK_PUBLISH_DATE]=2026-05-08T12:00:00.000Z
variables[YOUR_CUSTOM_VAR]=value

Webhook Settings

| Field | Description | |-------|-------------| | Preset | Generic JSON or GitLab Pipeline Trigger | | URL | Webhook endpoint URL | | Token | Auth token (Bearer header for generic, trigger token for GitLab) | | Branch Ref | Git branch for GitLab pipeline trigger (GitLab only) | | Variables | Key-value pairs sent as extra fields with every request |

The webhook request has a 10-second timeout. Private/internal URLs (localhost, private IP ranges) are blocked for SSRF protection.

Permissions

Configure in Settings > Roles:

| Action | Purpose | |--------|---------| | plugin::bulk-publish.publish | Access bulk publish page and publish documents | | plugin::bulk-publish.settings | View and edit webhook settings |

Prerequisites

  • Strapi 5 with the i18n plugin enabled
  • At least one content type with Draft & Publish and Internationalization enabled

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/my-feature)
  3. Commit your changes (git commit -am 'Add my feature')
  4. Push to the branch (git push origin feature/my-feature)
  5. Open a Pull Request

License

MIT