A starter repository combining a Next.js site and a Payload CMS backend in one monorepo, styled with Tailwind CSS. It includes a payload-mux plugin that uploads videos to Mux, syncs metadata back and handles deletion through webhooks. A payload-vercel plugin helps revalidate the front end and view deployments. The author describes it as early stage and aimed at Payload 2.x style separate deployments.
Opinionated starter kit for custom websites built on Next.js and Payload CMS
Installation
npm i next-payload35
Stars
3
Forks
2
Open Issues
2 years ago
Last Updated
0
Weekly Downloads
v
npm Version
Dependencies
350 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 35 |
| Dec 4, 2026 | 35 |
| Dec 3, 2026 | 35 |
| Dec 2, 2026 | 35 |
| Dec 1, 2026 | 35 |
| Nov 30, 2026 | 35 |
| Nov 29, 2026 | 35 |
| Nov 28, 2026 | 35 |
| Nov 27, 2026 | 35 |
| Nov 26, 2026 | 35 |
| Nov 25, 2026 | 35 |
| Nov 24, 2026 | 35 |
| Nov 23, 2026 | 35 |
| Nov 22, 2026 | 35 |
| Nov 21, 2026 | 35 |
| Nov 20, 2026 | 35 |
| Nov 19, 2026 | 35 |
| Nov 18, 2026 | 35 |
| Nov 17, 2026 | 35 |
| Nov 16, 2026 | 35 |
| Nov 15, 2026 | 35 |
| Nov 14, 2026 | 35 |
| Nov 13, 2026 | 35 |
| Nov 12, 2026 | 35 |
| Nov 11, 2026 | 35 |
| Nov 10, 2026 | 35 |
| Nov 9, 2026 | 35 |
| Nov 8, 2026 | 35 |
| Nov 7, 2026 | 35 |
| Nov 6, 2026 | 35 |
| Nov 5, 2026 | 35 |
| Nov 4, 2026 | 35 |
| Nov 3, 2026 | 35 |
| Nov 2, 2026 | 35 |
| Nov 1, 2026 | 35 |
| Oct 31, 2026 | 35 |
| Oct 30, 2026 | 35 |
| Oct 29, 2026 | 35 |
| Oct 28, 2026 | 35 |
| Oct 27, 2026 | 35 |
| Oct 26, 2026 | 35 |
| Oct 25, 2026 | 35 |
| Oct 24, 2026 | 35 |
| Oct 23, 2026 | 35 |
| Oct 22, 2026 | 35 |
| Oct 21, 2026 | 35 |
| Oct 20, 2026 | 35 |
| Oct 19, 2026 | 35 |
| Oct 18, 2026 | 35 |
| Oct 17, 2026 | 35 |
| Oct 16, 2026 | 35 |
| Oct 15, 2026 | 35 |
| Oct 14, 2026 | 35 |
| Oct 13, 2026 | 35 |
| Oct 12, 2026 | 35 |
| Oct 11, 2026 | 35 |
| Oct 10, 2026 | 35 |
| Oct 9, 2026 | 35 |
| Oct 8, 2026 | 35 |
| Oct 7, 2026 | 35 |
| Oct 6, 2026 | 35 |
| Oct 5, 2026 | 35 |
| Oct 4, 2026 | 35 |
| Oct 3, 2026 | 35 |
| Oct 2, 2026 | 35 |
| Oct 1, 2026 | 35 |
| Sep 30, 2026 | 35 |
| Sep 29, 2026 | 35 |
| Sep 28, 2026 | 35 |
| Sep 27, 2026 | 35 |
| Sep 26, 2026 | 35 |
| Sep 25, 2026 | 35 |
| Sep 24, 2026 | 35 |
| Sep 23, 2026 | 35 |
| Sep 22, 2026 | 35 |
| Sep 21, 2026 | 35 |
| Sep 20, 2026 | 35 |
| Sep 19, 2026 | 35 |
| Sep 18, 2026 | 35 |
| Sep 17, 2026 | 35 |
| Sep 16, 2026 | 35 |
| Sep 15, 2026 | 35 |
| Sep 14, 2026 | 35 |
| Sep 13, 2026 | 35 |
| Sep 12, 2026 | 35 |
| Sep 11, 2026 | 35 |
| Sep 10, 2026 | 35 |
| Sep 9, 2026 | 35 |
| Sep 8, 2026 | 35 |
| Sep 7, 2026 | 35 |
| Sep 6, 2026 | 35 |
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/700588599-root)<a href="https://payloaddirectory.dev/plugins/700588599-root"><img src="https://payloaddirectory.dev/badge/700588599-root.svg" alt="Payload Directory"></a>README
Edit 6/5/24 — Payload 3.0 is almost out of beta and will be a huge improvement over the "deploying" part of this repo, as it all works inside the Next.js app deployed on Vercel. I will try to update this when I can, in the meantime check out Payload 3.0. However the payload-mux and payload-vercel plugins in the CMS directory of this repo are relevant for either version of Payload.
This is an opinionated starter repository for building marketing sites on Next.js and Payload CMS. This is the same stack I use for client sites at Old Friends when Webflow or Framer won't do the trick. While the setup is based on my own dev preferences, I'm hopeful this is useful for anyone looking to build highly-custom sites that clients can update themselves.
Please note this is still in early stages. I can't guarantee the correctness of anything in this repo. I try to revisit it with each client project and add improvements, but it's difficult to always keep it in sync with the latest features coming out of each package and my own learnings. My rule of thumb is that if 80% of my projects will use a feature or component, it belongs in the starter.
You should be able to run the entire project from the root folder, rather than separate processes for the site and cms.
yarncms/.env.example and site/.env.example
yarn dev to start both the CMS and site and begin developing. You may need to visit the CMS first to populate a few things.yarn types to keep the generated payload-types file up to date so you can use it in the site's components.Documentation incoming...Vercel for the site, Google Cloud Build Trigger and Run for the CMS (for now).
This repo also includes two custom plugins I've written for Payload CMS, described below. I'm hoping to publish these on NPM soon. For now, if you'd like to use one, simply copy the plugin's folder (e.g. payload-mux) and paste it into your own project.
Mux is a fantastic platform for hosting and streaming video. This plugin customizes your videos collection to automatically upload videos into your Mux project, load the metadata (like aspect ratio and size) back into the CMS, and keeps them in sync:
Add the payload-mux folder into your CMS
Install the plugin dependencies
yarn add @mux/mux-node @mux/mux-uploader-react @mux/mux-player-react
Add the necessary env variables
MUX_TOKEN_ID=
MUX_TOKEN_SECRET=
MUX_WEBHOOK_SIGNING_SECRET=
In the Mux dashboard, add a webhook to https://your-cms-url.com/api/mux/webhook. This way when videos are deleted within the Mux dashboard, the corresponding document in your videos collection is deleted as well. If you need to test this locally, use ngrok or LocalCan. The plugin will technically work without doing this but it's a good practice to keep them in sync, otherwise you'll have stale video documents.
Initialize the plugin inside your payload.config.ts
plugins: [
payloadMux({
enabled: true,
collection: 'videos',
}),
That's it! You should now be able to upload videos to Mux directly through Payload 🍿
Documentation incoming...this plugin helps you revalidate your front-end when you change things in the CMS, as well as force revalidations when needed, and view latest deployments.
/site/package.json that starts dev on the PORT env var. This is helpful but not cross-platform.shared folder for settings used on both the front-end and server, like some env variables and the generated payload-types.tspayload media
Search stock images and videos from Unsplash, Pexels, Pixabay and Openverse inside the Payload admin
83900/wk8v4
payload plugin cache refresh
Admin dashboard button that refreshes Next.js cache tags for permitted users, with confirmation and optional page…
78385/wk0v3
payload revalidate
Transaction-aware cache revalidation hooks for Payload with a signed Next.js route handler
75218/wk3v3
payload storage sanity
Store Payload media uploads in Sanity Content Lake with crops, focal points and video posters
721.2k/wk0v3
payload isr
Revalidate Next.js paths and cache tags on publish, update, unpublish and delete, with an optional full rebuild fallback
6545/wk3v3
mux video
Mux video upload and playback for Atomic Payload, wrapping the Oversight Studio Mux plugin
6443/wk37v3