Skip to content

How it works

Seamlet has three parts: the site, the CMS and the preview.

A developer’s ordinary project: its own design, its own components, its own hosting. The site describes with a schema what content the owner edits: a heading, a subheading, the photo of the first screen, a menu of dishes with prices. And in the markup it marks which element shows which field.

The site takes its content from the CMS: the published version when it is built for visitors, the draft when the editor shows it.

It keeps the sites’ content and lets people in: a developer connects their own sites and gives clients a sign-in, and every client has their own sites and their own password. From a site’s schema the CMS builds the editing form and checks every save. It knows neither the site’s design nor its code, and it takes the schema from the site when it opens it in the editor — so a new schema reaches the CMS with the site’s deployment.

The site’s pages at the address /preview, which show a page with the draft and save nothing. The CMS’s editor puts the preview in a frame and draws its own labels and outlines over it, while fields are edited in the panel beside it. Every edit goes to the preview, and the site renders the page anew with its own code — the person sees exactly what visitors will see.

The package @seamlet/astro adds the preview. Only your CMS may frame it, and search engines do not index it.

  • Save — edits stay in the CMS. Every save is a new version: «История» (History) shows who saved and when, and any version can be restored. If two people edit a site at once, the CMS does not let one silently overwrite the other.
  • Publish — the saved version goes to the site. The CMS starts the site’s build — a GitHub Actions workflow in its repository or its own builder, which uploads the site to a hosting over SFTP — and the build takes the published content. A site that renders pages on request takes it itself, without a build. Until the site is published for the first time, it shows its initial content.

More in publishing. How it looks to the owner is in the guide for owners; give your client a link to it.