What's New in Payload 4
Author
Demo Author
Date Published

A tour of the Payload 4 features this template puts to work.
Demo content: this post was created by the seed script to show off the template. To edit it, open the admin panel.
Payload 4 is in beta at the time of writing. APIs can still change before the stable release, so pin your versions and read the release notes before upgrading.
Payload 4 is the biggest release since Payload moved into Next.js. Many things you used to add with plugins or custom code now ship in the core, and a few defaults changed to be safer. This post walks through what is new, using this template as the example: every feature mentioned here is wired up and ready to try in the admin panel.
A redesigned admin panel
The admin UI has been redesigned. SCSS is gone: the admin is styled with plain CSS and design tokens (CSS custom properties), so theming it means overriding a handful of variables instead of fighting compiled styles.
The dashboard is now modular. It is built from widgets that each editor can add, move and resize. Projects can register their own widgets, and this template adds a Pending comments widget so moderators see new comments the moment they sign in.
Organising content: hierarchy, tags and folders
Nested categories used to need the nested-docs plugin. In Payload 4 any collection can become a tree with the built-in hierarchy option. The categories on this site use it: Technology is the parent of Content Management, E-commerce and Self-hosting, and you can rearrange the tree from its own tab in the admin sidebar.
1import type { CollectionConfig } from 'payload'23export const Categories: CollectionConfig = {4 slug: 'categories',5 admin: { useAsTitle: 'title' },6 fields: [7 { name: 'title', type: 'text', required: true },8 { name: 'slug', type: 'slug', useAsSlug: 'title' },9 ],10 // Built-in tree: adds a `parent` field and a Categories tab11 // in the admin sidebar where you can browse and rearrange it12 hierarchy: {13 parentFieldName: 'parent',14 slugField: 'slug',15 },16}
Tags are a first-class concept too. A collection with the tags option becomes a tag set, and createTagField() adds the matching field to any collection that should be tagged. Posts in this template use tags alongside categories.
Uploads get folders and a grid view, so the media library behaves more like a file browser than a long table: sort images into folders and browse them as thumbnails.
Built for AI agents
The official MCP plugin exposes your collections to AI agents and other MCP clients. Agents authenticate with a user API key and go through exactly the same access control as that user, so an agent can only do what its user is allowed to do. This template exposes posts, pages, categories, tags, media and comments at /api/mcp, and adds a custom tool for moderating comments.
Each collection can also carry llmInstructions: plain-language guidance for agents, such as "save posts as drafts unless asked to publish" or "never edit the text of a visitor comment". The instructions live next to the schema, so every MCP client gets the same house rules.
Publishing workflow
Scheduled publishing runs on the jobs queue, and the queue can run inside the server itself. On a long-running host like Railway there is no separate worker or external cron to set up: schedule a post, and it goes live on time.
Versions are on by default, and every document records who created it and who last changed it (createdBy and updatedBy). Combined with drafts and live preview, editors can always see what changed, when, and by whom.
Safer by default
The Local API now enforces access control by default: overrideAccess defaults to false. Server code that should bypass access control has to say so explicitly, which removes a whole class of accidental data leaks. The seed script that created this post passes overrideAccess: true on purpose, for exactly that reason.

Graphic by Payload.
Images and storage
Image processing moved out of the core into @payloadcms/transformer-sharp, and resized versions of an image are now called variants. Storage adapters are configured under a new top-level storage key instead of as plugins. This template writes uploads to local disk by default, and switches to any S3-compatible bucket (such as a Railway Bucket) when the S3 variables are set.
New requirements, and a second framework
Payload 4 requires Node.js 24, Next.js 16.4 and TypeScript 6. Next.js is no longer the only option either: the new TanStack Start adapter lets you run Payload inside a TanStack Start app instead. This template stays on Next.js.
Try it yourself
Everything above is live on this site. Open the admin panel, browse the category tree, approve a comment from the dashboard widget, or connect an MCP client. The full source is on GitHub.
- #Payload
- #Next.js

Deploy the Payload 4 template on Railway, create your admin account, seed demo content, moderate comments, connect an MCP client and develop locally.

Don't vibe code a webshop from zero. Deploy a proven Medusa store on Railway in one click, then let your AI agent shape it into your business.
Comments
No comments yet. Be the first to share your thoughts!