MCPcopy
hub / github.com/webhintio/hint

github.com/webhintio/hint @dist sqlite

repository ↗ · DeepWiki ↗ · release dist ↗
2,301 symbols 6,993 edges 770 files 97 documented · 4%
README

webhint

Build Status Gitter FOSSA Status

Quick start user guide

Once you have Node.js (v8.x or later) on your machine, you can use npx to test it.

Testing with npx

Run the following command:

npx hint https://example.com

This will analyze https://example.com using the default configuration.

Installing webhint locally

Install webhint as a devDependency of your project:

npm install hint --save-dev

And then add a script task to your package.json:

{
    ...
    "scripts": {
        "webhint": "hint"
    }
}

And run it via:

npm run webhint -- http://localhost:8080

Or if you are using yarn you can skip the step to create a task and run directly:

yarn hint http://localhost:8080

To know more about webhint, how to configure it, etc. see the online user guide, or the local version for the most recent content.

Contributing to webhint

To know more about the internals of webhint, the structure of the project, how to create new hints, collectors, formatters, etc, take a look at the online contributor guide (or the local version).

Code of Conduct

This project adheres to the JS Foundation’s code of conduct. By participating in this project you agree to abide by its terms.

License

The code is available under the Apache 2.0 license.

FOSSA Status

Extension points exported contracts — how you extend this code

IHint (Interface)
(no doc) [95 implementers]
packages/hint/src/lib/types/hints.ts
IJSONResult (Interface)
(no doc) [2 implementers]
packages/utils/src/types/json-parser.ts
INewHint (Interface)
(no doc) [1 implementers]
packages/create-hint/src/create-hint.ts
Request (Interface)
(no doc)
packages/extension-browser/src/@types/chrome.d.ts
Options (Interface)
(no doc)
packages/connector-jsdom/src/@types/jsdom.d.ts
IFetchFunction (Interface)
(no doc)
packages/hint-http-compression/tests/_tests.ts
ICoreProperties (Interface)
(no doc)
packages/parser-package-json/src/schema.ts
IDecompressor (Interface)
(no doc)
packages/utils-connector-tools/src/requester.ts

Core symbols most depended-on inside this repo

getMessage
called by 548
packages/utils/src/i18n/get-message.ts
generateHTMLPage
called by 332
packages/utils/src/test/generate-html-page.ts
debug
called by 242
packages/utils/src/debug.ts
on
called by 180
packages/hint/src/lib/engine.ts
report
called by 160
packages/hint-doctype/src/hint.ts
emitAsync
called by 140
packages/hint/src/lib/engine.ts
testHint
called by 124
packages/utils-tests-helpers/src/hint-runner.ts
get
called by 124
packages/utils-connector-tools/src/requester.ts

Shape

Function 1,306
Method 669
Class 273
Interface 34
Enum 19

Languages

TypeScript100%

Modules by API surface

packages/hint/tests/lib/engine.ts55 symbols
packages/connector-jsdom/src/polyfills/custom-elements.min.js30 symbols
packages/hint/src/lib/engine.ts28 symbols
packages/connector-local/src/connector.ts27 symbols
packages/formatter-html/src/assets/js/scan/scanner-common.js25 symbols
packages/utils/src/dom/html.ts24 symbols
packages/hint/src/lib/cli/analyze.ts23 symbols
packages/hint-http-compression/tests/_tests.ts23 symbols
packages/hint-http-compression/src/hint.ts23 symbols
packages/hint/tests/lib/cli/analyze.ts22 symbols
packages/hint-sri/src/hint.ts22 symbols
packages/connector-puppeteer/src/connector.ts22 symbols

Dependencies from manifests, versioned

@hint/configuration-accessibility1.0.9 · 1×
@hint/configuration-development7.2.4 · 1×
@hint/configuration-progressive-web-apps6.0.9 · 1×
@hint/configuration-web-recommended7.2.4 · 1×
@hint/connector-jsdom4.0.12 · 1×
@hint/connector-local3.1.9 · 1×
@hint/connector-puppeteer2.2.2 · 1×
@hint/extension-browser1.0.3 · 1×
@hint/formatter-codeframe3.1.9 · 1×
@hint/formatter-excel3.1.9 · 1×
@hint/formatter-html4.1.8 · 1×
@hint/formatter-json3.1.9 · 1×

For agents

$ claude mcp add hint \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact