darklens_audit_html
Audit raw HTML or JSX markup for dark patterns such as pre-checked auto-renewal boxes, confirmshaming copy, fake countdown timers, hidden fees, and missing reject buttons before shipping to production.
Instructions
Audit raw HTML, JSX, or component markup for dark patterns (pre-checked auto-renewal checkboxes, confirmshaming guilt copy, fake countdown timers, hidden fees, missing reject buttons) before committing to production.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Optional URL context (default: 'https://localhost:3000'). | https://localhost:3000 |
| failOn | No | Failure criterion. Default is 'score'. | score |
| rawHtml | Yes | The raw HTML or JSX markup to inspect for dark patterns. | |
| threshold | No | Minimum acceptable passing compliance score (0-100). Default is 70. |