All workAndrew Cates.

Project 57 of 84

MDX Pipeline

@crib/mdx is a private, single-package TypeScript library that packages an opinionated unified (remark/rehype/recma) plugin bundle, a markdown-to-HTML pipeline, content-loading file utilities, and D2/Terraform helpers so Markdown and MDX render the same way across catesworks apps.

Status
Shipped
Area
Developer Tooling & CLIs
Last activity
2026
Live

No public deployment.

Stack
  • TypeScript
  • highlight.js
  • remark-gfm
  • rehype-highlight
  • recma-mdx-change-props
  • reading-time-estimator
  • Vitest
  • Biome

Highlights

  1. Took a zero-CI library to a governed release pipeline: a PR-gated lint/typecheck/test/build workflow, Changesets versioning, and a release workflow whose publish step activates only once a registry token exists. The first Changesets version PR (#2) merged and produced 0.1.1; publishing stays off until a registry token exists.
  2. Drove the CI and release design through a consensus Architect/Critic plan that took 4 iterations to approve. Reviews caught pipelines that would have passed every check on paper but failed for real: a missing packageManager field, a desynced lockfile, and a version-PR flow that could not open its own PR.
  3. Recorded the versioning choice as an ADR (Changesets over manual bumps and release-please). Added a CODING_STANDARDS.md generated from source with counted inconsistencies and a domain GLOSSARY.md that flags open design questions, such as which system owns D2 SVG rendering.
  4. Hardened CI on the shared self-hosted macOS runner pool. Moved the release job off GitHub-hosted Ubuntu and added a Node >= 24.20 detect step that skips setup-node and its pnpm cache, which had wedged runners.
  5. Moved the repo from a personal account to the catesworks GitHub org with a scripted, verified checklist: repo id preserved, remotes and the beads dolt remote rewritten, session history copied, and a zero-hit identity sweep.