Hatch
On this page

Changes to Hatch's public API, release by release: the @hatchmd/* npm packages, the vault format, the server's HTTP API and the plugin API (stability.md says what each covers). Each release lists, where it has any: Breaking, Deprecated, Added, Fixed.

Add to "Unreleased" in the same pull request as the change. On release, it becomes the new version's heading (see npm.md).

Unreleased

Added

  • Docs sites: Publish warns about links to a section a page doesn't have ([[Guide#Setup]]).
  • @hatch/openapi: reads an OpenAPI 3 or Swagger 2 spec (JSON or YAML) and writes API reference pages as Markdown, with code samples in seven languages.
  • Site setting openapi: docs sites build an API reference from a spec in the vault on every build (docs-sites.md).
  • packages/<name>/api.md: each published package's public API, written by scripts/api-report.ts and checked before every push.
  • Docs sites: a page asked for with Accept: text/markdown on a Hatch server answers with its Markdown, each top-level folder gets its own llms-full.txt, llms.txt lists pages by folder in sidebar order, and each page's head links its .md copy.
  • scripts/registry-install.ts: installs every shadcn item into a new app with the pinned shadcn CLI and type-checks it against the published packages.
  • @hatchmd/blocks: components can say part: toc, posts or pager (SITE_PARTS, isSitePart, partProblem), and DrawContext.pageAnchors keeps a component's #heading links pointing at the page.
  • @hatchmd/publish: site building blocks. style.toc (side, inline, float, rail), post lists columns and grid, site.json parts for blogs and portfolios, and blockChoices, BLOCK_PARTS, tocBlock, tocHeadings for listing and drawing them.

0.1.0 (2026-12-05)

The first npm release: 35 packages under @hatchmd, from the vault and Markdown engine to the React hooks, the AI SDK tools, the MCP server and the site builder. See npm.md for the list.