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-solutions/plugin-vercel

v0.1.0

Published

Vercel Integration for Payload CMS: trigger deploy hooks from the admin or automatically after content changes, see what is waiting to go live, follow every deployment, cancel and roll back.

Readme

@payload-solutions/plugin-vercel

Vercel Integration for Payload CMS. Your frontend is a separate Vercel project — Astro, a static Next export, a second Next app — and it has to be rebuilt when editors publish. This plugin gives editors a Deploy button on every admin page, shows what is waiting to go live, deploys automatically one minute after the last change, follows every deployment on Vercel, and can cancel or roll back from the same place. Nobody needs a Vercel login.

import { vercelPlugin } from '@payload-solutions/plugin-vercel'

vercelPlugin({
  targets: [{ slug: 'production', label: 'Website', hook: process.env.VERCEL_DEPLOY_HOOK_PRODUCTION, url: 'https://example.com' }],
  token: process.env.VERCEL_TOKEN, // optional: status, history, cancel, rollback
  collections: { pages: true, posts: true },
  globals: { header: true },
})

Docs: https://payload.solutions/docs/plugins/vercel-integration

Install

pnpm add @payload-solutions/plugin-vercel

Peer dependencies: payload ^3.88, @payloadcms/ui, @payloadcms/next, react, react-dom. No runtime dependencies.

What it does

  • Targets — one deploy hook per site or environment (production, staging, a docs site). The Vercel project id is read from the hook URL. A target whose env var is unset shows as not configured and never throws.
  • Pending changesafterChange/afterDelete hooks on the collections and globals you opt in record one row per document per target (a document saved twenty times is one row). Collections with drafts count publishes and unpublishes only. The admin header shows "3 changes · deploying in 0:42"; every tracked document carries a Not deployed yet / Live pill.
  • Automatic deploys — changes open a debounce window (60 s quiet period, 10 min max wait). The window is fired by any tick: the header widget's own status poll, a sendBeacon when the tab closes, the vercel:tick scheduled task, or POST /api/vercel/tick from a cron — so it works on Vercel Hobby (whose cron runs once a day) with zero extra infrastructure.
  • Ledger — every trigger is a row in vercel-deployments with who, why, what changed (capped summary), and, with a token, the Vercel deployment id, state, URL, duration and error. Bounded by retention (90 days / 200 rows per target).
  • Failure semantics — a failed or canceled build puts its changes back into pending; a rollback re-instates everything newer than the restored deployment. A build that Vercel canceled because a newer hook call arrived is marked superseded, not failed.
  • Status — with VERCEL_TOKEN: polling (/v7/deployments, /v13/deployments/{id}) plus an optional signed webhook receiver (POST /api/vercel/webhook, HMAC-SHA1 x-vercel-signature, Pro/Enterprise accounts).
  • Admin — header widget (admin.components.actions), Deployments view (/admin/deployments), document pill (beforeDocumentControls), and the deployments collection list. Built from @payloadcms/ui components.
  • Local APIpayload.vercel.deploy(), .status(), .pending(), .markChanged(), .pause(), .cancel(), .rollback(), .tick().

Development

pnpm dev:mock-vercel   # mock Vercel on :3399 (deploy hooks, deployments API, cancel, rollback)
pnpm dev               # admin on :3400, [email protected] / test — copy dev/.env.example to dev/.env first
pnpm test:unit         # pure logic
pnpm test:int          # real Payload + sqlite against the mock
pnpm test:e2e          # Playwright, starts both servers

Vercel is a trademark of Vercel, Inc. This plugin is not affiliated with or endorsed by Vercel.