SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
Start

Concepts

The ideas the rest of these docs build on. Each section links to the page with the details; the exact words are in the glossary.

One instance per business

An instance is one SHADE with its own database, on a server of its own: what the business itself calls its own setup, on a server it chooses. Its content, media, accounts and settings live there and nowhere else. Updating SHADE is a new image for every instance; nothing is shared between them. See Setting up an instance.

The kernel and its modules

Whatever adds behaviour to SHADE is a module. The kernel is the small base they all plug into.

  • The kernel holds who is signed in, what each person may do, the event bus, background jobs, configuration, the loader that starts the modules and, as decided but not built yet, a scoped handle through which a module reaches the database. It also keeps the rules every module obeys the same way, such as the guard on outgoing calls. It knows nothing about content, email or the admin's screens, and names no module.
  • A module owns its tables, routes, screens and events, and reaches another only through its front door or the event bus. Content, media, search, email, the audit log, privacy and retention, backups and the team are modules of core, built into the image. A package an admin installs, such as the website or appointments, is a module too: an installed module, which the code and most of these pages still call a module.
  • A module has three properties, and none of them is a kind of module:
    • Source: built in (in the image) or installed (a package).
    • Required: always on. Only built-in modules are. The others an admin can switch off under Settings, Modules: its routes, screens and schedules stop while its data stays.
    • Trust: trusted or untrusted. Only installed modules have it (see below).
  • Decided but not built yet (decision 0019 point 15): source will decide authority, never trust. A built-in module will act as the system, with only the system grants it declares, and an installed one as its own package (package:<name>), never holding the classes of action that modules may never hold, even when it is official and trusted.
  • Also decided but not built yet: a module can require others, and an installed one names a range of versions. Switching a module on will also switch on what it requires, after showing you, and switching one off will be refused while an enabled module requires it.
  • Also decided but not built yet: switching a module off or pausing it keeps its tables, and the look-up and erasure of personal data and the purge after the retention period still run over its data.
  • A program is not a module (see Programs), and the dashboard's tiles, the cards, are not modules either: a card shows something and adds nothing to the instance.

Some built-in modules are always on: team, settings, audit, privacy, errors, operations, backups, the export, content, media, delivery, email, the admin shell, contacts and the module manager. The others are switched per instance. Building a switch for each of them is in progress, and the Features page lists the modules. For managing the installed ones, see Modules.

An installed module asks for what it needs by declaring capabilities (email, files…); an admin sees them before it is switched on.

Flavours

A flavour is a starting point: a list of the official modules to install, with the default language, which modules start switched on and, if you want it, a few sample pages or products marked as samples that one action removes. Website, shop and bookings come first, and a bare instance installs nothing. Every flavour runs from the same image, so there are no branches per client, and changing flavour later means switching modules on or off.

Flavours are not built yet. The design is that the project publishes them in its official catalogue, a signed list of the official modules and flavours, and that the owner picks one on the first run. The image carries no installed module. The project resolves each flavour into one list of modules, every installed one with its exact version and hash, in the order their requirements give, and signs that list with its release key. The instance checks the list again when it installs, and fetches nothing the list does not name. Today an operator installs each one by hand. The design is in decision record 0019, in the shade repository.

Trusted and untrusted modules, and who signed

Release keys and revocation lists are not built yet. Two words say how an installed module (a module, in today's words) runs, and a third says who signed it:

  • A trusted module is a server package. It runs inside SHADE, with its own tables, routes, admin screens and background work. It is signed by a key the instance trusts, or, where the operator allows approvals, approved by an admin who signs in again to do so.
  • An untrusted module is one file that runs in a sandbox, with only the capabilities it declares, no database of its own and no way into the server. Anyone may write one.
  • Official names who signed, not a kind of trust. It says the project signed the package with its release key, so an official server package installs with no key pair of the operator's and no approval. Once installed it runs exactly as any other trusted module does, and the consent screen still shows what it asks for. A signature on an untrusted module says who made it and changes nothing about how it runs. The operator's own keys and an admin's approval work the same way for the operator's own server packages; only the signer's label differs.
  • Trust follows who signed, never where the package was downloaded from. The instance carries the project's public keys, a main one and a backup, and only the backup can revoke the main key. Each release carries a list of revoked keys and package hashes, and a list only adds revocations.

See Trust and installing and Untrusted modules.

Programs

A program is one of the client's own programs, in any language, running beside the instance in a container. It is not a module and not a level of trust: the container is what holds it in, so it does not go through the sandbox, and no program is called trusted. An admin approves it on the Programs screen and starts it, and it reaches SHADE only with its own token. See Programs.

Team, accounts and visitors

  • Team members use the admin. Each has one role: admin (everything), editor, ai (an AI assistant, which can only save drafts), or a custom role an admin defines. What a role may do is a list of actions.
  • Visitors are anyone on a frontend, the website or an app.
  • Accounts are visitors who signed in. Core keeps them; a module gives them account roles and abilities (for example managing their own bookings).

Actions and abilities never cross: an account can never act in the admin, and a team member's actions never reach account routes. See People in SHADE, Team and roles and Accounts.

The website module and the site

  • The website module is where pages are made: pages, navigation, footer, posts, components, the theme and redirects, edited in the admin with the visual editor.
  • The site is a frontend that renders them: a fully static Astro site rebuilt on every publish, served by Caddy or a static host. Other frontends (Next.js, Nuxt, SvelteKit or plain HTTP) read the same content over the API.

An instance does not need a website: without the module, SHADE serves only its admin and API. See The website.

Tokens

Programs talk to SHADE with an API token, never a person's password. Each token acts as one team member and can do no more than they may:

KindFor
buildThe site's build: fetches published content and reports how each build went
readAnother site or app that only reads published content
mcpAn AI assistant connected over MCP, as an ai team member
dataAnother system that reads the collections it was given, and with Read and write changes their entries
automationAn admin's own trusted script, such as a content import, limited to the actions chosen

See API tokens.