Every page in this demo is a stack of modules. Editors add a module, fill it in and drag it into place. The order in the Studio is the order on the page.
Four modules
- Text. A heading and a body that can hold images and carousels.
- Media. One image, one video with a player, or one muted loop.
- Carousel. Several images, videos or loops, with optional thumbnails, dots, autoplay and endless looping.
- Content references. A list of pages or projects. Editors pick them by hand or let the module show all of them, with category filters for projects.
The carousel below sits inside this text. Media and carousels work inside rich text. Text and content references don’t, they only live in the page stack.
Adding a fifth
A module has two halves. The schema in the Studio describes the fields, the React component on the site renders them. pnpm gen:module Quote creates both, writes the query and registers the module in all six places.
After pnpm generate the component’s props match the query. If the component reads a field the query doesn’t return, TypeScript stops the build.
pnpm check:wiring runs in CI and fails when a module is registered in one place and missing in another. A half-wired module fails the pull request.