SynapDocs

Docs style guide

How to write a page for this site, the frontmatter every page needs, and how to verify what it says.

For ContributorsOpen-source podReviewed 2026-10-20

This site is public and is read by people and by AI agents. A wrong page costs more than a missing one: an agent follows it literally. So every page states only what has been checked against the code.

What belongs here

Kind of knowledgeWhere it lives
How to use, self-host, build on or contribute to SynapThis site
How one repository's code works: architecture, invariants, design decisionsThat repository's docs/ folder, reviewed with the code
Company plans, strategy, research and internal notesNot in a public repository
Reference that can be generated (CLI, MCP tools, REST API, events)Generated from the source repositories; never edited by hand here

Where a page goes

Pages live in content/docs/<section>/. Pick the section by the reader's goal:

SectionFor
startGetting a first pod working: the quickstarts
conceptsUnderstanding how Synap works, from the simplest idea to the most technical, and the glossary
useUsing the apps day to day
agentsConnecting an AI client: MCP and agent skills
buildBuilding on a pod: SDK, keys, webhooks, the API doors
runSelf-hosting and operating a pod
referenceLookup pages
communityContributing and policies

Add the page's file name (without extension) to the pages list of the folder's meta.json, or it will not appear in the navigation. Each section's index.mdx is its landing page: add a Card for the new page there too, in the same order as meta.json (npm run check fails otherwise). If you move a page, add a permanent redirect from its old URL in next.config.mjs.

Frontmatter

Every page starts with this block. The build fails on a page that does not match it, and npm run check reports the same errors without a build.

---
title: Webhooks                      # sentence case, short
description: One sentence that says what the page gives the reader.
type: how-to                         # tutorial | how-to | reference | explanation
audience: builder                    # user | self-host | builder | contributor
availability: [pod-oss, cloud]       # one or more of: pod-oss, cloud, browser, relay, raycast, eve, cli, sdk
status: current                      # current | beta | deprecated: the page's review state
# maturity: beta                     # optional, the feature's state: beta | not-published | main-only
owner: Antoinesrvt                   # GitHub handle of the person who keeps it right
last_reviewed: 2026-10-20            # only if you verified the page against the code that day
---
  • type, after the Diataxis framework: a tutorial teaches by doing, a how-to solves one task, a reference describes something to look up, an explanation gives understanding. One type per page.
  • availability is shown as badges: where the page's content applies.
  • status is the state of the page, not of the feature: current once the page is checked against the code, beta while it is not re-verified (it shows a warning banner and has no last_reviewed; npm run check refuses the two together), deprecated for something being retired.
  • maturity is the state of the feature the page describes, shown as a badge. Leave it out for a released feature. beta shows "Beta testing" (for example Relay, on TestFlight only), not-published shows "Not published yet" (built, but not where people install it, such as the Raycast Store), and main-only shows "Not in a release yet" (on a repository's main branch, not in a tagged release). When only one part of a page is unreleased, say so in that part instead.
  • last_reviewed: set it only when you checked every command, flag, path, name and number on the page against the code, and update it whenever you do so again.

The verification rule

Before you write a fact, find it in the code:

  • a command or flag: in the CLI's command definitions or --help output;
  • an endpoint, header or status code: in the route that serves it;
  • a package name: on npm (npm view <name>) and in its package.json;
  • a setting: in deploy/env.schema of the backend repository;
  • a count ("13 tables", "29 event types"): count it in the code, or leave the number out.

If you cannot verify something, leave it out, or keep the page status: beta without last_reviewed. Never copy a command from another doc without running it or reading its source.

Writing

  • Plain, specific sentences. Say what the reader does and what happens.
  • Use "you" for the reader. Use the present tense.
  • One idea per paragraph. Tables for options and comparisons.
  • Code blocks for anything the reader types, with placeholders like pod.example.com and <id>.
  • No marketing language, no emoji.
  • Use Synap's terms as the glossary defines them: kind, role (facet), project, track, session, playbook, proposal.
  • On pages for users (audience: user), name things with the word the apps show, as the glossary gives it: Space, Request, Job, Goal, Step, Tool. Keep the technical name (workspaceId, focus_session, a tool or field name) in code formatting, where the reader types or reads it in an API, the CLI or MCP.
  • Link to other pages with absolute paths: /docs/build/api-keys, not ./api-keys. Relative links break when a page is an index page or moves.
  • npm run check:links checks every internal link and anchor.
  • Link to repositories, not to files that may not exist yet.

Retired names

Some package names and domains never existed or were retired; for example, the CLI is @synap-core/cli and nothing else. npm run check:retired fails on any of them. The list is scripts/retired-names.json.

Before you open a pull request

npm ci
npm run check     # frontmatter, links, retired names
npm run build

The same checks run in CI on every pull request.

On this page