Astro Loader

Loads Payload collections into Astro's content layer, typed and ready to query

Community 3 11/wk MIT v0.4.0

Installation

pnpm add @avovix/astro-loader-payload

About

Astro Loader Payload brings Payload collections into Astro's content layer, so a site can read CMS entries with the same calls it uses for local content files. You point the loader at a collection and it fills the content store at build time, or fetches entries on demand for live collections. Entries can be keyed by a field such as a slug, filtered, sorted and limited with standard Payload find options, and validated with a schema when you want typed data in your pages. Pages never call Payload directly, which keeps the Astro build the only place that talks to the CMS.

You can connect through Payload's REST SDK when Astro and Payload are deployed apart, or through the in-process Local API when both run in the same project. Typed errors carry a stable code, so failed fetches can be handled without matching on message text.

Package info

Package name
@avovix/astro-loader-payload
Latest version
0.4.0
Unpacked size
29 kB
License
MIT
Weekly downloads
11
Last publish
Jul 9, 2026

Similar plugins

More in Integrations

Creates and syncs Dub shortlinks for Payload documents as they are published

Search Unsplash, Pexels and Pixabay stock images and videos from upload collections

Syncs Payload collections with Stripe customers and products, and handles Stripe webhooks

Sends localized Payload fields to Crowdin and writes translations back

Stores Payload collections, globals and versions in Amazon DynamoDB

Logs Payload users in from cookies set by an external SSO system