neg-0/DiffGoblin Visual Diff
Screenshot two URLs and post a visual diff as a PR comment. Catch visual regressions before they ship.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| base-url | URL to screenshot as baseline (e.g., your production site) | yes | — |
| head-url | URL to screenshot as comparison (e.g., PR preview deploy) | yes | — |
| github-token | GitHub token for posting PR comments and uploading artifacts | no | ${{ github.token }} |
| threshold | Pixel match threshold (0-1). Lower = more sensitive. Default 0.1 | no | 0.1 |
| fail-on-change | Fail the action if visual changes are detected (true/false) | no | false |
| viewport-width | Browser viewport width in pixels | no | 1280 |
| viewport-height | Browser viewport height in pixels | no | 800 |
| wait-time | Milliseconds to wait after page load for animations/lazy content | no | 1000 |
Outputs
| name | description |
|---|---|
| changed | Whether visual changes were detected (true/false) |
| change-percent | Percentage of pixels that changed |
| changed-pixels | Number of pixels that changed |
| diff-path | Path to the diff image file |
| base-screenshot-path | Path to the base URL screenshot |
| head-screenshot-path | Path to the head URL screenshot |