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

@payload-bites/content-freeze

v1.2.0

Published

make sure your team are putting the tools down during critical moments

Readme

Content Freeze

Make sure your team puts the tools down during critical moments. This plugin disables create, update, and delete operations across specified collections and globals when a content freeze is active.

https://github.com/user-attachments/assets/0170fa47-4017-45bb-85bd-40c25040a8d8

Use cases

  • Deployment freezes: Prevent content changes during critical deployments.
  • Marketing campaigns: Lock content before major campaigns go live.
  • Audit periods: Freeze content during compliance audits.
  • Release management: Coordinate content changes with software releases.
  • Emergency situations: Quickly lock down your CMS when needed.

Quick start

  1. Install the plugin:
pnpm add @payload-bites/content-freeze
  1. Add the plugin to your payload.config.ts:
import { contentFreezePlugin } from "@payload-bites/content-freeze";

export default buildConfig({
  // ...
  plugins: [
    // ...
    contentFreezePlugin({
      // optional but recommended for custom access control
      overrideContentFreezeSettingsGlobal: (global) => ({
        ...global,
        access: {
          ...global.access,
          read: ({ req }) => req.user?.role === "admin",
          update: ({ req }) => req.user?.role === "admin",
        },
      }),
    }),
    // ...
  ],
  // ...
});

Usage

Activating a content freeze

  1. Navigate to the Content freeze settings global in your admin panel.
  2. Select the collections and/or globals you would like to be placed under content freeze.
  3. Optionally, add a custom message to display in the banner.
  4. Check the Enable content freeze checkbox.
  5. Save the global.

A banner will appear at the top of all admin screens, and create/update/delete operations will be blocked on the selected collections and globals.

Deactivating a content freeze

  1. Navigate to the Content freeze settings global.
  2. Uncheck the Enable content freeze checkbox.
  3. Save the global.

The banner will disappear and normal usage can resume.

Options

For all available options, refer to types.ts.

Defaults

For default values, refer to defaults.ts.

How it works

When the content freeze is active:

  • Collections: Create, update, and delete operations are blocked.
  • Globals: Update operations are blocked.
  • Settings global: Remains accessible to authorized users so they can deactivate the freeze.
  • Banner: Displays across all admin screens with your custom message.

The plugin wraps existing access controls, so your original access rules are still evaluated when the freeze is not active.

Roadmap

  • [x] Translations.
  • [ ] Scheduled publish of content freeze.