Skip to content

Quick start

The starter site is the one page of a coffee shop: a first screen with a photo, a menu with prices, contacts and fields for search engines. It is already connected to Seamlet, renders on the server and deploys to Vercel with no settings. Keep it as it is to try Seamlet, or change the schema and the page to fit your own site.

The CMS’s interface is in Russian, so a button is named here as it appears on screen, with its meaning in English the first time: «Подключить» (Connect).

  • Node.js 24 or newer.
  • A Seamlet account. Sign-up is being opened gradually. If the sign-in page has no «Зарегистрироваться» (Sign up) link, write to us in Telegram, @seamlet_bot (the bot writes in Russian), and we make the account ourselves (more).
  • A Vercel account and a repository on GitHub.
Окно терминала
npm create astro@latest -- --template seamlet/sdk/templates/starter
cd <the site's folder>
npm run dev

The site opens at http://localhost:4321. Until something is published, it shows the initial content from src/schema.ts.

The owner token is on the page «Подключить сайт» (Connect a site). It is not a password: it tells the CMS that you are the one who deploys the site, and it may stay in the repository.

Open seamlet.json and fill it in:

seamlet.json
{
"id": "my-cafe",
"title": "Моя кофейня",
"cms": "https://cms.seamlet.ru",
"ownerToken": "<token>"
}

id is the site’s name in the CMS: lower-case Latin letters, digits and hyphens. It must be free; the CMS refuses a taken one. title is how the site is called in the CMS.

Do not run npx @seamlet/astro init here: the starter already has the schema and the page, and the command does not change a seamlet.json that exists.

Put the project in a repository on GitHub and import it in Vercel. The settings need no change: Vercel finds Astro and runs npm run build.

The pages are rendered on request, so a published edit is on the site within a minute and no build address is needed. For Netlify, run npx astro add netlify and remove @astrojs/vercel from package.json; for other hosting, see where to host the preview.

  1. Open cms.seamlet.ru/sites/connect.
  2. In «Адрес предпросмотра главной страницы» (Preview address of the home page), write https://<your site>/preview and press «Подключить».
  3. In the site’s «Настройки» (Settings), open «Обновление сайта» (Updating the site) and choose «Сайт сам запрашивает контент у CMS» (The site asks the CMS for its content). Then a publication reaches the site with no build.

If the CMS says «В seamlet.json сайта нет вашего токена» (There is no token of yours in the site’s seamlet.json), the token is missing or not deployed: check seamlet.json and deploy the site again. «Это имя сайта занято» (This site name is taken) means the site needs another id.

Open the site in the CMS and click the heading: the text is typed right on the page. A price, a photo and the contacts are edited the same way or in the panel beside the page. «Сохранить» (Save) keeps the edit in the CMS and «Опубликовать» (Publish) puts it on the site. Publishing takes up to a minute.

  • The schema: every field kind and the presets. Add a field to src/schema.ts and the CMS shows it in its form.
  • Markers: how to mark in HomePage.astro which element shows which field, and what to do with the texts the code owns.
  • Records with pages of their own: a page for every dish or product.
  • Give a client a sign-in: the owner of the site edits it themselves.
  • An AI agent connects a site that already exists to Seamlet, not the starter.