A Gallery of Described Diagrams

Some packaging ideas are easier to see than to read: how a resolver walks a dependency tree, where a release pipeline can be compromised, which file TypeScript opens first. This gallery collects the pages on the site that are built around figures. Every figure is described in text, so the explanation survives a screen reader, a slow connection or a printout.

Why described diagrams, not image files

A screenshot of a terminal or a box-and-arrow PNG goes stale the moment a tool changes its output, and it cannot be searched, copied or translated. A written figure ("box one: your package; arrow to box two: its peer dependency, resolved from the host project") can be updated in a sentence. Each entry below names the figures on the page and the single idea each one is meant to make obvious.

Figure-led tutorials

Dependency tree figures

Moves from the logical dependency graph to the hoisted node_modules layout, shows what happens when two ranges conflict, and where peer dependencies change the picture.

Release pipeline figures

Follows a change from merge to registry in six stages: version, build once, verify, publish, then announce and watch. One caption shows the publish step using a short-lived OIDC identity instead of a stored token.

Type resolution figures

Traces how the TypeScript compiler finds declarations with and without an exports map, and why the declaration format must match the JavaScript it describes.

Other visual sections

Beyond the tutorials, several sections of the site use pictures as the organising device. Each is a different shape of visual explanation:

SectionWhat the format does
Diagram library, part one and part twoSingle diagrams of a structure or process, each with a caption and a numbered walkthrough of its parts.
One-page summaries and a second setKey facts in short labelled blocks, intended to be read in under two minutes.
Infographic galleriesGrouped summaries on one theme, with a caption per item.
Slide outlinesSlide-by-slide decks with speaker notes as the body text, useful if you need to present a topic to your team.

Drawing your own

If you are documenting your own package, a described figure is a good habit for the README too. Three that almost every library benefits from:

  1. The entry point map. Which import path loads which file under which condition. Write it as a small table if a picture feels like overkill.
  2. The lifecycle of a release. From merge to published version, including who or what is allowed to publish.
  3. The supported matrix. Runtimes and major dependency versions you test against, drawn as a grid of ticks.

Tools such as Mermaid, which several code hosts render inside Markdown, let you keep these as text in the repository so they are reviewed like code. For vocabulary used in the captions, see the glossary.

Newsletter