Doctor

Static linter that flags access control and security mistakes

Community 16 10/wk MIT v0.6.0

Installation

pnpm add payload-doctor

About

Payload Doctor scans a Payload project for security and correctness mistakes that are easy to write and easy to miss in review. It reads collections, access control, hooks, custom routes and the config, then reports findings with a 0 to 100 health score and suggested fixes. The most important check covers the Local API, which skips access control by default, so a route can hand a signed-in user records they should never see.

Run it in a terminal, in CI, or as a pre-commit hook to fail a build when errors appear. AI coding agents can use it to verify generated Payload code. Intentional cases can be silenced with an inline comment, and the report counts those suppressions so they stay visible.

Package info

Package name
payload-doctor
Latest version
0.6.0
Unpacked size
125 kB
License
MIT
Weekly downloads
10
Last publish
Jun 2, 2026

Similar tools

More in Dev workflow

Stateful test emulator of the Payload collection REST API with seeded data

Editor support for Payload component paths, with import checks and autocomplete

Governance checks and ESLint rules for Payload project structure, access code and hooks

Manifest, linter and Payload block generator for a design system's components

Automated code transforms that move a Payload project past breaking changes

Idempotent seed runner that fills a Payload database with ordered, cross-referenced content