Skip to main content
Every Cairn script is a pair: a JS file and a CSS file. They version together, deploy together, and roll back together.

Editor

The script editor splits the screen into JS and CSS panels. Both have:
  • Syntax highlighting and autocomplete (CodeMirror).
  • Format-on-save.
  • A constrained vs. wide layout toggle (your preference is remembered per device).

Versions

Every save writes a new script_version row. From the version history sidebar you can:
  • Diff any two versions.
  • Restore an earlier version (creates a new version — nothing is lost).
  • See who shipped what, and when.
Read about versions →

Publish flow

Saving creates a draft. Clicking Publish moves the draft to live — the loader picks it up immediately. Pending publishes are surfaced in the editor footer so you always know what state a script is in.