Skip to content

Developer Info

This page briefly summarizes the development workflow for the tanstack-head-controller monorepo.

Prerequisites

  • Node.js 22+
  • pnpm 10.x

Setup

sh
ni
sh
npm install
sh
pnpm install

Build

Run the following from the repository root.

sh
nr build
sh
npm build
sh
pnpm build

Internally, scripts/build.ts does the following for each package.

  • Generates JavaScript with SWC
  • Generates declaration files (d.ts) with TypeScript

To build individual packages:

sh
node ./scripts/build.ts tanstack-head-controller
node ./scripts/build.ts thc-plugin-merge

Main packages

  • packages/tanstack-head-controller: core library
  • packages/thc-plugin-merge: head merge plugin
  • packages/thc-plugin-ttplate: title template plugin
  • examples/tanstack-react: integration example

Docs update checklist

  • If you update Japanese pages, keep English pages in the same structure.
  • Keep code block language/file labels aligned (for example, tsx [router.tsx]).
  • Verify that all referenced links resolve correctly.

When needed, also see Quick Start and Usage.

Released under the Apache-2.0 License.