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

SHADE
Contributing

Docs site

These pages are published as a website at https://docs.shadehq.dev, open to everyone. They live in their own repository, shadehq-dev/shade-docs: Docus (Nuxt, Nuxt UI and Nuxt Content) at the repository's root and the Markdown in content/, built as static files and published by Cloudflare (Workers Builds) after every merge to main. The code is in shadehq-dev/shade; the decision records stay there, next to the code they explain (docs/decisions/, not published).

Structure

FolderSectionWhat goes there
content/1.start/StartOur approach, the introduction, the features list and the glossary
content/2.run/Run SHADESetting up an instance on Coolify or a server of your own, static hosts, the licence
content/3.guide/GuideOne page per feature, grouped in subfolders (content, website, publishing, users, security and privacy, services, modules, AI)
content/4.developers/DevelopersArchitecture, defining collections, writing modules, the API, and how realtime, private files, notify and untrusted modules work
content/5.security/SecuritySecurity testing, hardening an instance, manual testing
content/6.contributing/ContributingReading the code and its tests, these docs, releases
content/7.project/ProjectThe roadmap, the known issues and the changelog
content/8.community/CommunityWhere to ask, chat and follow the news
  • Every page is a Markdown file. A folder becomes a section in the sidebar, titled by its .navigation.yml (title, icon); its index.md is the section's first page (content/3.guide/index.md is /guide).
  • The number in front of a folder or file sets its place in the sidebar and is not part of the address: content/3.guide/5.services/1.email.md is /guide/services/email. Number a new page after its neighbours.
  • The top-level sections are tabs in the header (navigation.sub in app/app.config.ts).
  • The colours, fonts and radius are SHADE's theme, the same as the admin's: app/shade-theme.css and app/shade-theme.app-config.ts are generated from SHADE's design tokens and committed as they are. Don't edit them; the theme changes in the tokens, and the new files are copied over these.
  • A feature page in the guide follows the outline in content/3.guide/index.md. A new feature gets a page there and a row in that page's table. Its code and tests are listed in a README.md beside the code (in shade or the module's repository), changed with the code; the guide page's For developers section is one line naming it.

Docs and code together

The docs change in a pull request paired with the code's:

  • A change to what users can do, or to a feature's code or tests, opens a pull request here together with the one in shade (or a module's repository). Each links the other, and they are merged together.
  • A change that finishes a roadmap item takes it off the roadmap (content/7.project/1.roadmap.md) and adds it to the features list, in that change's pull request here. A fixed known issue comes off its list the same way.
  • Code that points to a page names the repository and the path: shade-docs: content/4.developers/2.collections.md.
  • Work on it in the SHADE workspace (docs/, installed on its own with pnpm install --ignore-workspace), or check it out next to shade (../shade-docs).

Writing

  • Write in British English: colour, licence, organisation, and dates such as 16 November 2026. Code, CSS, API names and proper names keep their own spelling (color, Apache License 2.0).
  • Start a page with # Title. On the site that heading becomes the page title (shown once, above the content).
  • Link to other pages with relative links to the .md file, as on GitHub: [Email](/services/email). The site turns them into its own paths (markdown.ts). Use the page's title as the link text, not its file name.
  • Write in SHADE's voice. Mix sentence lengths: a longer sentence explains a thought, and a short one lands it. Write paragraphs for anything people read through (intros, overviews, the Start pages) and keep lists for reference (settings, steps, specs). Write as if explaining it to an owner across the table, with "you" and "we", and give a concrete example rather than claim a promise. Avoid formulas: no "It isn't X. It's Y." contrasts, no reflexive lists of three, no bold label before every point, no stacks of negations. SHADE gets no category word ("CMS", "platform", "engine"), "self-hosted" goes in its own sentence, and nothing is promised that isn't built.
  • Owner pages (Start and the Guide) say "your setup", or "your own setup, on a server you choose"; the developer pages may say "instance".
  • Pages cite no decision numbers: say what the decision means for the reader instead. Why SHADE is built as it is goes on the Decisions page, one entry per record, kept up to date when a record changes.
  • Do not link to files outside content/: on the site such a link keeps only its text.
  • Two pages are generated, never edited by hand: the API reference from SHADE's OpenAPI document (public/openapi.json, served at /openapi.json) and the SDK reference from the SDK's contract (data/sdk-contract.json). When a change in SHADE changes either, pnpm reference --shade ../shade (in the workspace) takes both files from SHADE and writes the pages again; pnpm test fails while a page and its file differ.
  • content/index.md is the site's home page and uses Nuxt UI components; keep the other pages plain Markdown.
  • Draw a flow, a sequence or a set of states as a ```mermaid block, never as box art in a code block. The site draws it in the browser in the theme's colours, light or dark, and shows the source if drawing fails (app/components/MermaidFigure.vue). Give each one accTitle: and accDescr:, the text a screen reader reads instead of the drawing: say in sentences what it shows. A folder tree is a table, Folder | What it holds, with the nesting in the path (kernel/db/). pnpm test checks both (test/checks/diagrams.test.ts).
  • Screenshots of the admin are in public/screenshots/, linked as ![What it shows](/screenshots/name.png), one per screen, on the guide page that describes that screen. Take them at 1920 by 1080 in the light theme, with the admin in English, from a local instance with the neutral sample data: the site Voorbeeld, a bicycle repair shop with locations Noord and Zuid, and example.org or voorbeeld.test addresses. No real names, addresses or data. The alt text says what the screen shows. When a change alters a screen, take its screenshot again in the same pull request. In the SHADE workspace, pnpm screenshots:sample puts the sample data on a fresh local instance and pnpm screenshots [name…] takes the screens into this folder, signed in as the instance's development admin (SHADE_ADMIN_EMAIL, SHADE_ADMIN_PASSWORD).
  • The sample data also gives the shop a business to show: opening hours and a week of bookings, products with orders that are paid, shipped and refunded, and page views over the last 30 days. What the admin API cannot make (confirmed bookings, paid orders, past days' views) comes from each module's development-only seed (testing/sample.ts, never in the module's package), which goes through the module's own services. It reads shade/.env and runs only against a database on the same machine. Both commands can run again: they add nothing twice.
  • SHADE's own website shows the admin too. pnpm screenshots:site [name…] takes the dashboard, the appointments, the orders and the website editor with the home page open, at 1920 by 1080 and at phone size (390 by 844 at twice the pixels), in the light and the dark theme, into site-screenshots/ in the workspace (not committed), named <screen>-<desktop|phone>-<light|dark>.png. It needs pnpm dev's site running for the editor's canvas. Take them again when the admin's look changes.

Running it locally

pnpm install
pnpm dev        # http://localhost:3100, follows edits in content/
pnpm generate   # the static site in .output/public
pnpm test       # test/: markdown.test.ts, reference.test.ts, links.test.ts, checks/diagrams.test.ts and more
pnpm links      # every link leads to a page or a file (links.ts; in pnpm test too)
pnpm reference:check  # public/openapi.json and data/sdk-contract.json are what ../shade has today (in pnpm test too)

Parsed pages are cached by their content (.data). After changing markdown.ts, delete that folder so every page is parsed again.

Where it is published

The published site is on Cloudflare; how it is set up there is not part of these docs. To publish your own copy, build it with pnpm generate and serve the output folder from any static host.