Skip to content

Install

Terminal window
bun add -d htmx-contract

htmx-contract on npm. Zero dependencies. Built on Bun’s HTMLRewriter. Knows nothing about your application. Bun only, for now — the package requires Bun ≥ 1.2.

Generated PLEYN apps already depend on htmx-contract: ^0.1.0 as a devDependency. You only need this page when adding the checker to an existing htmx backend.

  • Usage — checkDocument, checkResponse, swapAndCheck
  • Rules — what each rule catches
  • API — exports and signatures