Repository
Wrapper around Payload's Local API providing repository operations.
Installation
pnpm add payload-repository About
Payload Repository is an opinionated wrapper designed to facilitate operations with Payload's Local API. This plugin enhances type safety by allowing developers to define custom operations for Payload collections and global settings, thereby reducing boilerplate code when interacting with the data. The primary interface includes `CollectionOperations`, which developers can extend to implement collection-specific methods such as `create`, `find`, `update`, and `delete`. Similarly, the `GlobalOperations` class provides a way to manage global settings efficiently. Additional utility comes from the ability to utilize transformers, which intercept and modify arguments prior to reaching the Payload API, enabling domain-specific logic. With features like composable transformers and type safety dictated by the Payload configuration, this plugin simplifies the connection between custom logic and the underlying data management. However, it requires that users have a grasp of Payload and TypeScript to utilize its full potential.
Package info
- Package name
payload-repository- Latest version
1.1.4- Unpacked size
- 39 kB
- License
- MIT
- Weekly downloads
- 2
- Last publish
- Jun 29, 2026
More from bhofstaetter
View profileSimilar plugins
More in Contentslug redirects
Automatically creates slug redirects when document slugs change.
navigation
Manage navigation menus with a drag-and-drop UI in Payload CMS.
payload-cli
CLI for direct access to PayloadCMS data for AI agents and humans.
Nested Docs Page Tree
Adds a nested tree view for managing documents in Payload CMS.
Better Live Preview
Enhances live preview for Payload CMS with admin/preview sync and hover highlighting.
for notifications
Adds in-dashboard notifications with live updates in Payload admin.