Shared collections
Reference a collection from multiple widgets. Update and republish once at the central place — every widget referencing it updates in that environment.
Collections
Widgets and collections are reusable content units. Update centrally, republish once, and every embed reflects the change — in staging or production.
RuleCMS supports both centralized updates and per-widget independence.
Reference a collection from multiple widgets. Update and republish once at the central place — every widget referencing it updates in that environment.
Copy a collection into a widget when you need independent versioning. Teams choose shared vs. embedded based on their content model.
Embed published content wherever your users are — web apps, marketing sites, or internal tools.
import { RuleCMSWidget } from "@rulecms/widget-react";
export function HomepageHero() {
return (
<RuleCMSWidget
publishedKey="your-widget-key"
apiToken="your-environment-token"
/>
);
}Prefer fully headless? Use the content API instead — the universal integration path for any framework:
// Fetch published widget content via the headless API
const widget = await fetchPublishedWidget({
publishedKey: "your-widget-key",
apiToken: "your-environment-token",
});
// Returns published JSON ready to render in any frameworkUpdate the homepage banner across all your sites in one publish. Learn more in the collections documentation and the developer guide.
Dive deeper into what makes RuleCMS different.
Reusable collections with central republish — no duplicate content management.