Skip to content

Add an interactive library overview page to the docs site - #146

Closed
phelma wants to merge 1 commit into
docs-guidesfrom
t3/docs-overview-page
Closed

phelma wants to merge 1 commit into
docs-guidesfrom
t3/docs-overview-page

Conversation

@phelma

@phelma phelma commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Stacked on #145.

The guides explain each part of the library well, but there was nowhere to see how the nine packages fit together, so newcomers had to piece it together page by page. This adds a "Library overview" page that explains the whole library at increasing depth. Each section uses the cart-42 example from the event sourcing introduction:

  • In ten seconds: the core path from NewEvent to ProjectionStore.
  • The map: the packages in layers. Selecting one shows what it's for, how it works, the names you'll use, what it depends on, what uses it, and links to its guides.
  • The life of an event: a step-through you can play, from describing an event to it being stored, with one branch for reading state on demand and one for processing in the background. Each step shows the object built so far and the code that does it.
  • The metro map: the write, project, background and test paths as metro lines, with the shared types as the stations where they meet.
  • Zoom in: processing: how the processing parts are wired together for a single process, and a walkthrough of a second node taking over when the first is stopped.
  • Find your way: an "I want to…" task finder with snippets, and an adoption ladder that shows which packages each level brings in.

The package descriptions and dependencies are defined once, in library.ts, and every component reads them from there. The page is linked from the home page, the sidebar and the event sourcing introduction.

Checked with npm run build: it passes and all internal links are valid. I also checked the page in the light and dark themes, at desktop and phone widths. It's currently published to the docs preview from force-docs-publish.

Explains the library at increasing depth using one running example:
a package map with dependencies, a step-through of an event's life, a
metro map of the main types, a zoom-in on processing, a task finder
and an adoption ladder. Linked from the home page, the sidebar and the
event sourcing introduction.
@phelma

phelma commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Closed in favour of #148, which combines the whole docs stack into one PR.

@phelma phelma closed this Nov 18, 2026

This branch was previously deployed

1 inactive deployment
github-pages — 9d2927c2 Deployed Nov 5, 2026 by phelma via deploy #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant