Svelte sample lab
Svelte 5 lab for the provider, default cards, and a published key.
DevelopersSvelte
Svelte SDK
Svelte 5 hosts use @rulecms/widget-svelte and the default card library. Publish from the composer, drop in a published key, and keep SvelteKit as the app.
Add @rulecms/widget-svelte and render a published widget.
No React rewrite required to compose, publish, and embed.
RuleCMS is the content system. Svelte is the host. Editors still drag components, preview per device, and promote through three environments. You install the official packages, register the default cards, and render RuleCMSWidget. Peer dependency: Svelte 5.
The Svelte SDK renders the basic RuleCMS set — text, images, video, icons, buttons, dividers, embeds, lists, and accordions. That is a complete path for most marketing and product surfaces. Custom component libraries in the composer are a React capability. Stay on Svelte if that is the app you sell; use React only when you need the composer to host your own design system.
Svelte props, same published key as every other SDK.
Register @rulecms/source-components-svelte as libraries.default. The widget package does not ship UI cards on its own — the source-components package is what paints text, media, and buttons.
environmentId---widget-… published key.dev. token + draft widget key for live drafts.On SvelteKit, fetch with fetchRuleCMSWidget in a load function and pass initialData with mode="pre-fetched". The client skips the refetch. CSS breakpoint variants keep the first HTML aligned with every viewport.
Token docs: projects, environments, and tokens. The Svelte sample lab is a public teaching project with a live demo.
componentProps lets a published r-button call into your Svelte app — open a booking modal, push a route, start checkout. Key by column id or by a path of enclosing collection columns. Longest match wins. Development logs a missing key once so the id in the composer and the id in your map stay in sync.
Install from the public registry. These are the supported SDK surfaces — not GitHub source repos.
Public teaching projects that show the integration pattern. Copy the wiring, not the app architecture — they are not production starters.
Svelte 5 lab for the provider, default cards, and a published key.
Need the product docs for tokens, widgets, or the headless API? Start at Getting started, then environments and tokens and the API reference.
Same published widgets and environment tokens. Pick the guide for the stack you ship.
Dive deeper into what makes RuleCMS different.
Unlimited orgs, teams, and members — no per-seat fees
162 permissions, 70 roles, environment-aware access
Version history, visual diff, one-click revert
Create once, embed everywhere
SDKs for React, Angular, Vue, Svelte, HTML, Flutter, and React Native
Server rendering, edge caching, responsive media
Create a project, provision three environments, and copy a scoped API token.