{"_id":"hig-doctor","_rev":"5-0f97776aa8eb16c534960a7f8ad07e91","name":"hig-doctor","dist-tags":{"latest":"2.1.0"},"versions":{"2.0.0":{"name":"hig-doctor","version":"2.0.0","keywords":["apple","hig","human-interface-guidelines","audit","accessibility","swiftui","react","design-lint"],"license":"MIT","_id":"hig-doctor@2.0.0","maintainers":[{"name":"raintree-technology","email":"admin@raintree.technology"}],"homepage":"https://github.com/raintree-technology/hig-doctor/tree/main/packages/cli#readme","bugs":{"url":"https://github.com/raintree-technology/hig-doctor/issues"},"bin":{"hig-doctor":"dist/index.js"},"dist":{"shasum":"decd3940733741fa11d039b66845e65a9e2215d4","tarball":"https://registry.npmjs.org/hig-doctor/-/hig-doctor-2.0.0.tgz","fileCount":4,"integrity":"sha512-rxMLTXSwaSbmx2nBG68dEWkH8CMqgdW+QKL0dKI3UAB9/m7oaQvU+isaxKdI4FlUszhNPTLr3cw8gAvrA6vKPw==","signatures":[{"sig":"MEYCIQCK0L/5nijpMUM2AkYOa0nHOVZ+XM6rJE7nK1oRUy6DzgIhAMlaeMZoGY4yG13cQ9fD34K2In5l4zoVzpQpSDUM+nU+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":169856},"main":"./dist/index.js","type":"module","engines":{"node":"24.x"},"gitHead":"f880098aa024fef18b3289430f3e2dedc58478a0","scripts":{"test":"bun test","audit":"bun src/cli.ts","build":"esbuild src/cli.ts --bundle --platform=node --target=node20 --format=esm --outfile=dist/index.js --alias:@hig-doctor/core=../core/src/index.ts --external:typescript --banner:js=\"#!/usr/bin/env node\"","typecheck":"tsc --noEmit","audit:export":"bun src/cli.ts . --export","audit:stdout":"bun src/cli.ts . --stdout","prepublishOnly":"bun run build"},"_npmUser":{"name":"raintree-technology","email":"admin@raintree.technology"},"repository":{"url":"git+https://github.com/raintree-technology/hig-doctor.git","type":"git","directory":"packages/cli"},"_npmVersion":"10.9.8","description":"HIG Doctor universal Apple HIG compliance auditor for SwiftUI, UIKit, React, and 9 other frameworks.","directories":{},"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"packageManager":"bun@1.3.11","devDependencies":{"esbuild":"^0.25.0","@types/bun":"^1.3.3","typescript":"^5.9.3","@types/node":"^20"},"optionalDependencies":{"typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/hig-doctor_2.0.0_1784765110761_0.9229670107541081","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"hig-doctor","version":"2.0.1","keywords":["apple","hig","human-interface-guidelines","audit","accessibility","swiftui","react","design-lint"],"license":"MIT","_id":"hig-doctor@2.0.1","maintainers":[{"name":"raintree-technology","email":"admin@raintree.technology"}],"homepage":"https://github.com/raintree-technology/hig-doctor/tree/main/packages/cli#readme","bugs":{"url":"https://github.com/raintree-technology/hig-doctor/issues"},"bin":{"hig-doctor":"dist/index.js"},"dist":{"shasum":"bb967a8d62c43c063edd400b009667bef1142472","tarball":"https://registry.npmjs.org/hig-doctor/-/hig-doctor-2.0.1.tgz","fileCount":4,"integrity":"sha512-3hgKTOUGhlt2C8Zmt4pWZeR5r3uUOk4cIliian4b9Ke2TY6ODiU0gn+v91Pu0cWdPdjszqaMOQdtrfqM6jyJxg==","signatures":[{"sig":"MEUCIQD+I49eKyPnwqwwhoQGwXzI72CXlBvUSKd5izOAuX0IgQIganH/xhWFwWPif2sGKHQosSjxdQAoJ3szNTZj4nQEVRo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hig-doctor@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":174969},"main":"dist/index.js","type":"module","engines":{"node":"24.x"},"gitHead":"92cedeba00619d8534fe32b2adc77ad5d24c488b","scripts":{"test":"bun test","audit":"bun src/cli.ts","build":"esbuild src/cli.ts --bundle --platform=node --target=node20 --format=esm --outfile=dist/index.js --alias:@raintree-technology/hig-doctor-core=../core/src/index.ts --external:typescript --banner:js=\"#!/usr/bin/env node\"","typecheck":"tsc --noEmit","audit:export":"bun src/cli.ts . --export","audit:stdout":"bun src/cli.ts . --stdout","prepublishOnly":"bun run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d16e884b-9588-43af-8e9a-34b2bdf07942"}},"repository":{"url":"git+https://github.com/raintree-technology/hig-doctor.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"HIG Doctor universal Apple HIG compliance auditor for SwiftUI, UIKit, React, and 11 other frameworks.","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"packageManager":"bun@1.3.11","devDependencies":{"esbuild":"^0.25.0","@types/bun":"^1.3.3","typescript":"^5.9.3","@types/node":"^20"},"optionalDependencies":{"typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/hig-doctor_2.0.1_1785110475784_0.19818649576541092","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"hig-doctor","version":"2.0.2","keywords":["apple","hig","human-interface-guidelines","audit","accessibility","swiftui","react","design-lint"],"license":"MIT","_id":"hig-doctor@2.0.2","maintainers":[{"name":"raintree-technology","email":"admin@raintree.technology"}],"homepage":"https://github.com/raintree-technology/hig-doctor/tree/main/packages/cli#readme","bugs":{"url":"https://github.com/raintree-technology/hig-doctor/issues"},"bin":{"hig-doctor":"dist/index.js"},"dist":{"shasum":"d0ba0a74779462508ccb85dfe6e5dd85d79790ef","tarball":"https://registry.npmjs.org/hig-doctor/-/hig-doctor-2.0.2.tgz","fileCount":4,"integrity":"sha512-BFP0lDXjdSpwE+/QvpEU55al2TOw5AAMODAulB5GIURE1DS2HnAdLtAHAts0aba4mZxr3x5e4BvlpbacqnKuXw==","signatures":[{"sig":"MEQCIDSgQwHhe8MEh3lXJQ3HeRnn5STYe7QjbbqRMHzPbvyoAiBE1QCpyvQyZOYOMJ32S4WF4SflPI98F1bYjvDzRzafcQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQChTj0zsmNIx3rMwFmHSWhCCn80y51TYzJZQ7rW7DI3CgIgE7apTfzgBLM1zA/d6hWRrGwHwkr1wE/5hYr4qN8fSoc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hig-doctor@2.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":175754},"main":"dist/index.js","type":"module","engines":{"node":"24.x"},"gitHead":"307eafc70736f27664bcdca3d55ed9ed6c1210ab","scripts":{"test":"bun test","audit":"bun src/cli.ts","build":"esbuild src/cli.ts --bundle --platform=node --target=node20 --format=esm --outfile=dist/index.js --alias:@raintree-technology/hig-doctor-core=../core/src/index.ts --external:typescript --banner:js=\"#!/usr/bin/env node\"","typecheck":"tsc --noEmit","audit:export":"bun src/cli.ts . --export","audit:stdout":"bun src/cli.ts . --stdout","prepublishOnly":"bun run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d16e884b-9588-43af-8e9a-34b2bdf07942"}},"repository":{"url":"git+https://github.com/raintree-technology/hig-doctor.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"HIG Doctor universal Apple HIG compliance auditor for SwiftUI, UIKit, React, and 11 other frameworks.","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"packageManager":"bun@1.3.11","devDependencies":{"esbuild":"^0.25.0","@types/bun":"^1.3.3","typescript":"^5.9.3","@types/node":"^20"},"optionalDependencies":{"typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/hig-doctor_2.0.2_1788334627315_0.3768736670198334","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"hig-doctor","version":"2.0.3","keywords":["apple","hig","human-interface-guidelines","audit","accessibility","swiftui","react","design-lint"],"license":"MIT","_id":"hig-doctor@2.0.3","maintainers":[{"name":"raintree-technology","email":"admin@raintree.technology"}],"homepage":"https://github.com/raintree-technology/hig-doctor/tree/main/packages/cli#readme","bugs":{"url":"https://github.com/raintree-technology/hig-doctor/issues"},"bin":{"hig-doctor":"dist/index.js"},"dist":{"shasum":"794b94cfed0c9fbcfab0bc7836ea4e690532b867","tarball":"https://registry.npmjs.org/hig-doctor/-/hig-doctor-2.0.3.tgz","fileCount":4,"integrity":"sha512-YmAIgDogzBObKpR2KS4itY91x583BLAAAOUL1FoasPI9sPVOIxr71kdyn731xbGzigSyZG6IDdE+ziVH9ZVpOA==","signatures":[{"sig":"MEUCICo5VBqZ4cCWtvqC0YQ3s1PteDuvI8RW6pj8lrWA3fBMAiEAvX86KiXMFZ9g/rIrfoGeXsrghYi6VPoHGh1XzzgCkaw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCnxFu5CL9I6+gpKEOKz5dVqeADb1YbbK5Zl5LE5alGLgIgCGy6IgPiGsNiTC/1Rir3USuOEw80/Aqew2iFAd/2Cqw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hig-doctor@2.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":175977},"main":"dist/index.js","type":"module","engines":{"node":"24.x"},"gitHead":"3ec08f5a6f9d2fa22a64950274ba6baee2a38838","scripts":{"test":"bun test","audit":"bun src/cli.ts","build":"esbuild src/cli.ts --bundle --platform=node --target=node20 --format=esm --outfile=dist/index.js --alias:@raintree-technology/hig-doctor-core=../core/src/index.ts --external:typescript --banner:js=\"#!/usr/bin/env node\"","typecheck":"tsc --noEmit","audit:export":"bun src/cli.ts . --export","audit:stdout":"bun src/cli.ts . --stdout","prepublishOnly":"bun run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d16e884b-9588-43af-8e9a-34b2bdf07942"}},"repository":{"url":"git+https://github.com/raintree-technology/hig-doctor.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.16.0","description":"HIG Doctor universal Apple HIG compliance auditor for SwiftUI, UIKit, React, and 11 other frameworks.","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"packageManager":"bun@1.3.11","devDependencies":{"esbuild":"^0.25.0","@types/bun":"^1.3.3","typescript":"^5.9.3","@types/node":"^20"},"optionalDependencies":{"typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/hig-doctor_2.0.3_1788554291858_0.740391636251396","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"_id":"hig-doctor@2.1.0","bin":{"hig-doctor":"dist/index.js"},"bugs":{"url":"https://github.com/raintree-technology/hig-doctor/issues"},"dist":{"shasum":"1378ef361b9c1b9d77dfc0237ba7217de30cb0ac","tarball":"https://registry.npmjs.org/hig-doctor/-/hig-doctor-2.1.0.tgz","fileCount":3,"integrity":"sha512-/8ChVqVs9SUdzyEuIly/EkvmpAsjLiPa4Tui4TOru3zl+X4LmQbxQ0KNU/iqfg92dl/C50XDzrBGIXxyeFuJmg==","signatures":[{"sig":"MEYCIQDZ5NAP+sqM/LP6FZHwfLLBPuHMul46fYLDAIM/9cpHZwIhAP8rznjuJaNT0zSg/vHlKhcwwa77FnG0r2nBmOQCIL+K","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEDwv68636b22PuFWSElTcfnksch69J1iH0mKco3AuZPAiEA0QYd4RvzP+abZms/6Ye8uviGhXd7EqNF3cPmWvR8qoo="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/hig-doctor@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":157360},"name":"hig-doctor","type":"module","engines":{"node":">=22"},"gitHead":"e2f1100291a4774b883f878320b8d702fcc4f64f","license":"MIT","scripts":{"test":"bun test","build":"esbuild src/cli.ts --bundle --platform=node --target=node22 --format=esm --outfile=dist/index.js --alias:@raintree-technology/hig-doctor-core=../core/src/index.ts --external:typescript --banner:js=\"#!/usr/bin/env node\"","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"version":"2.1.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"d16e884b-9588-43af-8e9a-34b2bdf07942"}},"homepage":"https://github.com/raintree-technology/hig-doctor/tree/main/packages/cli#readme","keywords":["apple","hig","human-interface-guidelines","audit","accessibility","swiftui","react","design-lint"],"repository":{"url":"git+https://github.com/raintree-technology/hig-doctor.git","type":"git","directory":"packages/cli"},"_npmVersion":"11.19.1","description":"Static audit of app source against Apple HIG and accessibility rules: SwiftUI, UIKit, React, and 11 more frameworks.","directories":{},"maintainers":[{"name":"raintree-technology","email":"admin@raintree.technology"}],"_nodeVersion":"24.22.1","_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.25.0","@types/bun":"^1.3.3","typescript":"^5.9.3","@types/node":"^20"},"optionalDependencies":{"typescript":"^5.9.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hig-doctor_2.1.0_1795892448251_0.40837450346815773"}}},"time":{"created":"2026-07-23T00:05:10.592Z","modified":"2026-11-28T19:00:48.796Z","2.0.0":"2026-07-23T00:05:10.896Z","2.0.1":"2026-07-27T00:01:15.934Z","2.0.2":"2026-09-02T07:37:07.404Z","2.0.3":"2026-09-04T20:38:11.952Z","2.1.0":"2026-11-28T19:00:48.359Z"},"bugs":{"url":"https://github.com/raintree-technology/hig-doctor/issues"},"license":"MIT","homepage":"https://github.com/raintree-technology/hig-doctor/tree/main/packages/cli#readme","keywords":["apple","hig","human-interface-guidelines","audit","accessibility","swiftui","react","design-lint"],"repository":{"url":"git+https://github.com/raintree-technology/hig-doctor.git","type":"git","directory":"packages/cli"},"description":"Static audit of app source against Apple HIG and accessibility rules: SwiftUI, UIKit, React, and 11 more frameworks.","maintainers":[{"name":"raintree-technology","email":"admin@raintree.technology"}],"readme":"<p align=\"center\">\n  <img src=\"https://apple.raintree.technology/logo.svg\" alt=\"HIG Doctor\" width=\"72\" height=\"72\" />\n</p>\n\n# hig-doctor\n\nStatic audit of app source for interface and accessibility concerns: **75 concern\nchecks** across 14 frameworks (431 rules including usage detectors). Apple-platform\nrules cite the HIG directly; web and cross-platform rules apply HIG-aligned\naccessibility principles. Runs locally on Node 22+ with no network calls.\n\n```bash\nnpx hig-doctor .                       # terminal summary\nnpx hig-doctor . --fail-on critical    # CI gate: exit 1 on any critical concern\n```\n\n## Options\n\n| Flag | Effect |\n| --- | --- |\n| `--json` | JSON report (schema 2) with per-concern fix suggestions |\n| `--format sarif` | SARIF 2.1.0 for GitHub code scanning |\n| `--stdout` / `--export` | Full Markdown report to stdout, or to `hig-audit.md` |\n| `--fix` | Apply safe mechanical fixes; print the rest as suggestions |\n| `--fail-on <level>` | Exit 1 on a concern at or above `critical`, `serious`, or `moderate` |\n| `--exclude <glob>` | Skip paths (repeatable, comma-separated); also reads `.higauditignore` |\n| `--config <path>` / `--no-config` | Use or skip `hig-doctor.config.json` |\n| `--baseline <path>` / `--no-baseline` / `--write-baseline` | Gate only on new concerns |\n| `--cache` | Re-scan only changed files |\n\nUnknown flags and invalid values exit 2. Exit codes: 0 ok, 1 gate tripped, 2 usage\nerror, 3 internal error.\n\n## Configuration and suppressions\n\n`hig-doctor.config.json` in the audited directory can disable rules, remap\nseverities, ignore globs, and add per-path overrides. `.higauditignore` takes one\nglob per line (`*` within a segment, `**` any depth, a bare name prunes a\ndirectory). Inline: `// hig-disable-next-line <rule-id> -- reason` or\n`// hig-disable-file <rule-id>`.\n\n## Detection\n\nA comment- and string-aware regex tier runs first; a Swift structural tier and,\nwhen the optional `typescript` package is installed, a TypeScript JSX tier remove\nfindings the code already handles. Each finding names its engine and rule ID. See\nthe [rule catalog](https://github.com/raintree-technology/hig-doctor#framework-coverage).\n\nFindings are prompts for review, not proof of HIG or accessibility conformance.\n\n## Development\n\n```bash\nbun src/cli.ts <dir>   # run from source\nbun test\n```\n\n## Changelog and license\n\nRelease notes: [CHANGELOG.md](https://github.com/raintree-technology/hig-doctor/blob/main/CHANGELOG.md). MIT licensed. Apple HIG content is\n© Apple Inc.; see [THIRD_PARTY_NOTICES.md](https://github.com/raintree-technology/hig-doctor/blob/main/THIRD_PARTY_NOTICES.md).\n","readmeFilename":"README.md"}