Use it in your project
There are two ways in. Start a new repo from the template, or bring the plugin into an existing pnpm workspace.
Start from the template
Section titled “Start from the template”gh repo create <name> --template JakubSzwajka/house-rulescd <name>corepack enablepnpm install --frozen-lockfilepnpm check && pnpm testThen make it yours:
- Rename
@hosti/everywhere: package names, imports,Context.Servicekeys, and thescopepassed tolayout()in.dependency-cruiser.cjs. - Rewrite
AGENTS.mdfor your project, and write your ownVISION.md. - Replace
apps/apiandpackages/bookingswith your own code. Keep their shape. - Run
pnpm checkandpnpm testagain.
The README’s adapt it list names every file to copy when you start from an existing repo instead.
Install the house plugin in another app
Section titled “Install the house plugin in another app”The plugin is not on npm. Install it from GitHub, pinned to a full 40-character commit, with a pnpm subpath:
{ "devDependencies": { "@house-rules/rules": "github:JakubSzwajka/house-rules#<full-40-char-sha>&path:/packages/rules" }}You need Node 24.21 or later, pnpm, and a pnpm-workspace.yaml with a packages: list. Each entry point has optional peers that you install yourself. The README of the plugin lists them: packages/rules/README.md. Then wire the thin configs as the stack shows.
Install the capability library
Section titled “Install the capability library”@house-rules/capability installs the same way, with &path:/packages/capability. It needs effect pinned to the exact version it names as a peer. Its README walks through the tsconfig flags, Next.js, and tests: packages/capability/README.md.
Upgrade
Section titled “Upgrade”Change the SHA, run pnpm install, and run your checks. Read the rule docs that changed between the two commits first. A new rule can fail code that passed yesterday, and that is the point.