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:
{ id: "other", name: "Other Library", version: "3.0.1", url: "https://example.com" }versionis the version that the column describes, shown under the name.urllinks 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:
{
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
idof 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. linkof a group shows a link beside its title, such as to a more detailed comparison.descriptionof a feature opens in a popover from its title, withresearchlinked 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:
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:
notetells what the project does, in one or two sentences.hreflinks 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 thebaseof the site, such as/guide/details#section.versionnames the version that the evidence describes, when it differs from the version of the column.planlinks 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; sethrefto their decision.unknown: not reviewed yet, which does not meanunsupported.
The legend under the matrix shows the icon of each status that its cells take. To add statuses of your own, see Extending.