cratefield-module-cms 0.2.0

Cratefield module: a small content store with an editor — typed collections, versioned, in the venture's own database
Documentation

cratefield-module-cms

A small content store with an editor, as a Cratefield module. Content is a titled body plus a JSON data object addressed by (collection, slug), kept in the venture's own database. Every publish appends an immutable revision, so items are versioned and the history of what was public is recoverable.

Public routes are reads (GET /v1/cms/{collection} and /v1/cms/{collection}/{slug} serve published content); every write is an admin action behind the ADMIN_TOKEN bearer, so there is no public write endpoint. The look comes from the venture's UI_SPEC, not from here — this is a content store, not a page builder.

use cratefield_module_cms::Cms;

let module = Cms::new().collections(["pages", "posts"]);

MIT. Built in the open for Cratefield, a Factory Zero venture.