Build

Astro collections

Your content as real Astro content collections, in one line.

Install the loader:

npm install @kdrgny/justjson-astro

Then:

// src/content.config.ts
import { justjsonCollections } from '@kdrgny/justjson-astro'

export const collections = await justjsonCollections()

That's the whole setup. Every collection and singleton shows up in getCollection() / getEntry(), drafts are skipped, and saving in the editor updates the dev server without a restart.