HTML sample lab
Plain HTML page that loads the embed script and renders a published widget. No host framework.
DevelopersHTML
HTML SDK
Any HTML host can load one script from RuleCMS and drop in <rulecms-widget>. WordPress, PHP, static sites, and Webflow custom code do not need a JavaScript framework.
Add @rulecms/widget-custom-element and render a published widget.
The composer does not care that the page is plain HTML.
A static page is a complete RuleCMS customer. Editors still build heroes and landing blocks in the visual composer, preview phone through desktop, and promote from staging to production. You load the embed script once and place <rulecms-widget> with a token and published key.
The script already includes the default RuleCMS cards — text, images, video, icons, buttons, dividers, embeds, lists, and accordions. Your page does not install npm packages or register a library. Custom design systems in the composer remain a React path. Stay on HTML when the host is not a React app.
Load the script once. Place as many widgets as the page needs.
Prefer the versioned /embed/widget-custom-element@… URL so a new release cannot change your page unexpectedly. The HTML Custom Element Embed docs cover WordPress, CSP, and Development drafts.
Same environment rules as every official SDK.
environmentId---widget-… published key.dev. token + draft widget key for live drafts.Omit endpoint. Published tokens hit widget-cache; dev. tokens hit rulecms.com. Credentials live in project settings. The HTML sample lab is a public teaching project with a live demo — use it to see the two tags, not as a production template.
After the script loads, window.RuleCMS can mount into an existing node when a template cannot emit unknown custom elements.
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.
Plain HTML page that loads the embed script and renders a published widget. No host framework.
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.