Assist

Provides utilities for DTO management and validation hooks in Payload CMS.

Community 0 42/wk MIT v1.2.8

Installation

pnpm add @byte5digital/payload-assist

About

Assist for Payload adds tools for data transfer object (DTO) management and validation rules to Payload CMS projects. It allows you to validate your Payload configuration at boot, ensuring compliance with defined rules. This plugin provides first-class helpers for defining, transforming, and validating API responses strictly as DTOs. With ergonomic wrappers, it standardizes endpoint responses ensuring consistency and security. Key functionalities include the `payloadAssist` function to initialize Assist with customized options and the ability to enforce DTO-only responses with hooks like `withResponse` and `withDtoReadHook`. You can define collections and their access controls while utilizing DTOs for structured API responses, ensuring only the expected data leaves your application.

Package info

Package name
@byte5digital/payload-assist
Latest version
1.2.8
Unpacked size
40 kB
License
MIT
Weekly downloads
42
Last publish
Apr 27, 2026

More from byte5digital

View profile

Similar plugins

More in Content