SuperAPI AI Directory

Payload Components

Payload Components is an open-source block registry and command-line tool for Payload CMS developers. It copies the source code of reusable page blocks into a project and automatically completes the Payload wiring: registering them in the Pages collection, mapping them to RenderBlocks, regenerating payload-types.ts and the admin import map, ultimately producing a reviewable git diff. The directory offers 83 installable blocks, and the project is open-sourced under the MIT license with no paid tiers or license keys. The materials do not state that it has AI features.

Open website

About this tool

Purpose Payload Components is a block registry and installer for Payload CMS, with the goal of advancing reusable blocks in page layout builders from "copying source code" to "ready to run directly." In Payload, blocks are page-building fields that editors can stack, such as hero, feature grid, CTA, and so on. A plain copy only yields component source code; for a block to work properly, it also needs to be registered in a collection, mapped to the renderer, have types generated, and be added to the admin import map. Payload Components provides a CLI and a directory around this installation boundary, letting developers complete block installation and wiring with a single command.

Main capabilities

  • One-command install and wiring: run npx payload-components add hero-basic, and the CLI copies the block source code into the project, registers it in the Pages collection, maps it to RenderBlocks, and has Payload regenerate the types and the admin import map.
  • Reviewable changes: the installation result is presented as an ordinary git diff, including the source code, two patches, and the regenerated types, making it easy to review like a PR before committing.
  • Precise patching: the component manifest declares the files that need to be modified; installation patches exactly two files, namely the Pages collection and RenderBlocks.tsx. The copied source code includes the block configuration, components, and shared utilities.
  • Idempotent and recoverable: the CLI detects existing wiring and skips it to avoid duplicate installation; installation state is recorded in .payload-components/state.json, so partial installations are visible and recoverable, and will not be silently corrupted.
  • Block directory: the registry provides 83 installable blocks, covering common blocks in page layout builders, such as hero, feature grid, CTA, FAQ accordion, pricing, testimonials, integrations, and content blocks. The examples in the directory render without a backend, making it easy to see the effects corresponding to the components' visual class names.
  • Support matrix check: before modifying the project, the CLI checks the project environment against the published support matrix.
  • Open source: the registry, CLI, all 83 installable components, and the site belong to the same MIT-licensed repository; there is no pricing, no license keys, and no restricted tiers, and the directory grows through real installations and contributions.

Usage

  1. Run the install command in the root directory of a Payload + Next.js project that meets the support matrix, for example npx payload-components add hero-basic; the same command can be used for other blocks in the directory.
  2. After checking the project, the CLI completes the wiring in a single flow: copying the source code, patching the Pages collection and RenderBlocks.tsx, and triggering Payload to regenerate payload-types.ts and the admin import map.
  3. Review the changes using git diff --stat or similar, and after confirming the source code, the two patches, and the regenerated types, commit them as a working block.
  4. If you need other blocks, you can continue running the corresponding commands, for example npx payload-components add faq-accordion.

Use cases Suitable for development teams building page layout builders with Payload CMS, especially those who want a unified installation of page blocks such as hero, feature grid, CTA, FAQ, pricing, testimonials, integrations, and content display, and want to avoid manually maintaining collection registration, render mapping, types, and import maps. Also suitable for teams that need to bring the block installation process into code review and version management.

Supported environments

  • Payload v3 + Next.js 15/16, with a project structure similar to the official website starter: render layout blocks via src/blocks/RenderBlocks.tsx and register page blocks in src/collections/Pages/index.ts .
  • Payload v4 is experimentally supported and requires Next.js 16.4 or later, as well as Node.js 24.22.1 or later.

Limitations

  • The materials do not state that this product has AI features; it is positioned as a Payload CMS block installation and wiring tool.
  • The project structure must conform to the support matrix, especially the Pages collection and the agreed path of RenderBlocks.tsx ; if not, the CLI performs checks before making changes.
  • Payload v4 support is still experimental and requires newer Next.js and Node.js versions.
  • It does not provide scaffolding or lock in a tech stack; what is installed is plain source code plus two readable targeted patches.

Official website:https://www.payload-components.xyz/