Beta

Changes by mail

Mail what should change on your site to stet@stets.email, the way you would mail the person who keeps your site. Stet makes the change on a new version and mails you back what he did, with a link to see it. Nothing goes live until someone presses Publish on stets.app.

What you can ask

Anything you would ask in a few words. For example:

Stet works on it the way he does when you use "Change with Stet" on the preview: the same tools and the same limits. A site that keeps a list of data (products, prices, people) can also take a whole sheet: see Lists from a sheet. For a new design or a big rebuild, your own agent is the better place.

Before you start

Photos and documents

Attach them and say where they go. They go into the site's media library first, the same place your agent's uploads go. Stet looks at each photo before he places it: if it is too small or not sharp enough for where you want it, he says so.

Lists from a sheet

A site that keeps a list of data (products, prices, people) can take a sheet: a CSV file or an Excel file (.xlsx). Its agent sets that up once (see the last part of this page). A sheet is read by Stets itself, row by row, so nothing gets retyped.

If any row is wrong, nothing changes, and the reply names each row and column to fix. The site can also check its own data when it is built. When it refuses the data, the reply quotes what it said, and nothing changes.

What comes back

Limits

Where your mail goes, and what Stets keeps

For the site's agent: a list that takes sheets

The site's agent declares the data in site.json, under "data": where the records live, which column is the key, and each column's type. For example, a price list kept as one JSON file per product:

"data": {
  "prices": {
    "dir": "src/data/prices",
    "key": "code",
    "label": "prices",
    "columns": {
      "code":  { "type": "text", "headers": ["Code", "Article"] },
      "name":  "text",
      "price": "number",
      "from":  { "type": "date?", "headers": ["Valid from"] }
    }
  }
}

Types are text, integer, number, date, boolean and list, with ? for a column that may be empty. A declaration with a mistake fails the build, so the agent hears it at once. The site's own code can check the data further: whatever it refuses comes back in the reply. The agent finds the whole contract with read_guide("content"), in its last part.