svelte-payload

Payload CMS, recreated in SvelteKit.

One config file in, three things out: a database schema, a REST API, and a full admin panel. Inspired by Payload's architecture, rebuilt natively for SvelteKit + Cloudflare.

Config-driven

Declare collections, fields, access control, and hooks in src/cms.config.ts — the database, REST API, and admin UI are generated from it.

Framework-agnostic core

The engine in src/lib/core has zero SvelteKit imports and uses only Web Crypto, so it runs identically on Node and Cloudflare Workers.

Adapter pattern

JSON-file storage in dev, Cloudflare D1 in production — swap databases without touching collection code.

Payload-style REST

GET /api/posts?where[status][equals]=published&depth=1 — query operators, pagination, and relationship population included.