a11ywatch/pagemindpagemind是一款专注于网页可访问性检测与页面洞察的工具,能够识别网页中的可访问性问题(如WCAG标准合规性)、分析页面性能指标(如加载时间),并生成包含详细问题分类、可访问性得分及优化建议的综合报告。
在Docker环境中使用时,需创建.env文件并配置环境变量:
DOCKER_ENV=true
bashnpm install
bashnpm run dev
服务启动后默认运行在8080端口。
通过POST请求调用API获取页面问题数据:
bashcurl --location --request POST 'http://localhost:8040/api/getPageIssues' \ --header 'Content-Type: application/json' \ --data-raw '{ "url": "[***]", "userId": 0 }'
json{ "webPage": { "domain": "drake.com", "url": "[***]", "adaScore": 64, "cdnConnected": false, "screenshot": "[***]", "screenshotStill": "[***]", "pageLoadTime": { "duration": 1272, "durationFormated": "Standard", "color": "#A5D6A7" }, "html": "<omited>", "htmlIncluded": true, "issuesInfo": { "possibleIssuesFixedByCdn": 10, "totalIssues": 25, "issuesFixedByCdn": 0, "errorCount": 11, "warningCount": 14, "noticeCount": 0, "adaScore": 64, "issueMeta": { "skipContentIncluded": false } }, "lastScanDate": "Tue, 30 Mar 2021 21:55:38 GMT", "userId": 0 }, "issues": { "documentTitle": "Drake Industries | Custom, Durable, High-Quality Labels, Asset Tags and Custom Server Bezels", "pageUrl": "[***]", "issues": [ { "code": "WCAG2A.Principle1.Guideline2.4", "type": "warning", "typeCode": 2, "message": "Skip to content link not found. Use skip to content links to help shortcut to the main content.", "context": "<a id=\"content\">Skip Content</a>", "selector": "a", "runner": "a11yWatch", "runnerExtras": {} } ], "domain": "drake.com", "userId": 0 }, "script": { "pageUrl": "[***]", "domain": "drake.com", "script": "<omited>", "cdnUrlMinified": "drake.com/www-drake-com-ada-fix-0.min.js", "cdnUrl": "drake.com/www-drake-com-ada-fix-0.js", "cdnConnected": false, "userId": 0, "issueMeta": { "skipContentIncluded": false } } }
详见项目根目录下的LICENSE文件。
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务