Typed output
A zero-dependency, typed loader generated from your schema.
justjson types writes types.ts and a zero-dependency content.ts loader — no glue code to read files:
import { loadPosts, loadSettings } from './content'
const posts = await loadPosts() // typed, slug merged in
const settings = await loadSettings() // Settings | null
Each entry comes back with its slug (the filename), ready for routing. It reads straight from disk, so it works in any Node-based build — including Astro and Next.js server code.