Payload is a code-first headless CMS built on Node.js, TypeScript, and MongoDB. Like Keystone, you define your content model in code — collections, fields, hooks, and access rules — and Payload generates a REST API, a GraphQL API, and an admin panel from it. Its selling point is control: almost everything, from the admin UI to the auth flow, can be extended or replaced with your own code.
How it works: you write a collection config, for example a Posts collection with title, slug, and content fields. Payload creates the database model, the API endpoints, and the admin editing screens. Hooks let you run code before or after any operation — generate a slug on save, send an email on publish, resize an image on upload. Access control is a function per operation, so "only admins can delete" is a few lines of code.
Payload is a good fit for beginners with some TypeScript experience because the config files are readable and the admin panel is excellent out of the box. You do not need to build a dashboard for your content — Payload ships one — and you can still customise it later when you outgrow the defaults.
A quick taste of a Payload collection:
export const Posts: CollectionConfig = {
slug: "posts",
fields: [
{ name: "title", type: "text", required: true },
{ name: "slug", type: "text", required: true },
{ name: "content", type: "richText" },
],
};
That config alone gives you an admin screen, a REST endpoint at /api/posts, and a GraphQL API.
Who is it for? TypeScript developers building content-driven apps, e-commerce backends, and SaaS products; teams that need a CMS and an API from the same codebase; students who want to see how a real CMS is put together.
Limits to know: Payload needs MongoDB and a Node.js server, so hosting is more work than a static site. The community is smaller than the big CMS names, and major-version upgrades sometimes require real migration work. It is also overkill if you only need a simple blog — a static site generator would be simpler.
To start today: scaffold the blank template, define one collection with three fields, open the admin panel, and create your first post.
Top comments (0)