Skip to content

Matrix Data ​

defineMatrix takes the projects of the columns and the groups of the rows. Use the ids of the projects as the keys of the cells of each feature.

Projects ​

Each project is a column:

ts
{ id: "other", name: "Other Library", version: "3.0.1", url: "https://example.com" }
  • version is the version that the column describes, shown under the name.
  • url links the name of the project.

The matrix highlights the column of the first project, the one that the page presents.

Groups and features ​

Each group is a titled set of rows, and each feature is a row:

ts
{
  id: "storage",
  title: "Storage",
  link: { text: "Details", href: "/storage" },
  features: [
    {
      id: "persistence",
      title: "Persistence",
      description: "Keep the data on disk across restarts.",
      research: "https://example.com/research/persistence",
      cells: { mine: "supported" },
    },
  ],
}
  • The id of a group or a feature is the anchor of its row, unique on the page. A click on the title of a feature highlights its row, opens its description, and puts its link in the address bar. A click on the title of a highlighted row clears the highlight and the link.
  • link of a group shows a link beside its title, such as to a more detailed comparison.
  • description of a feature opens in a popover from its title, with research linked as Research.

Write code in backticks in the titles and descriptions of features and in the notes of cells, and the matrix renders it as code.

Cells ​

A cell is a status, or a status with details:

ts
cells: {
  mine: "supported",
  other: {
    status: "limited",
    note: "Expires keys only on read.",
    href: "https://example.com/other/ttl",
    version: "2.9.0",
  },
}

A project without a cell is unknown. The details open in a popover from the icon of the cell:

  • note tells what the project does, in one or two sentences.
  • href links the evidence: a page of the site, starting with /, as Documentation, or an external source as Source. Write a page of the site by its path from the root of the site, without the base of the site, such as /guide/details#section.
  • version names the version that the evidence describes, when it differs from the version of the column.
  • plan links a backlog item that would add a missing feature to the first project.

Statuses ​

A status tells what a project can do for a feature, not how close it is to the first project:

  • supported: built in.
  • limited: with limitations, or composed by hand from lower-level parts.
  • external: through a separate library.
  • preview: behind a preview or experimental feature.
  • unsupported: missing, or present but broken in the reviewed version.
  • declined: missing because its maintainers declined it; set href to their decision.
  • unknown: not reviewed yet, which does not mean unsupported.

The legend under the matrix shows the icon of each status that its cells take. To add statuses of your own, see Extending.