afterburn-cli 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +287 -281
- package/dist/ai/gemini-client.js +13 -6
- package/dist/ai/gemini-client.js.map +1 -1
- package/dist/analysis/error-analyzer.js +23 -23
- package/dist/analysis/source-mapper.js +10 -4
- package/dist/analysis/source-mapper.js.map +1 -1
- package/dist/analysis/ui-auditor.js +21 -21
- package/dist/cli/commander-cli.js +4 -2
- package/dist/cli/commander-cli.js.map +1 -1
- package/dist/cli/first-run.js +11 -0
- package/dist/cli/first-run.js.map +1 -1
- package/dist/core/engine.js +20 -5
- package/dist/core/engine.js.map +1 -1
- package/dist/discovery/element-mapper.js +24 -6
- package/dist/discovery/element-mapper.js.map +1 -1
- package/dist/execution/step-handlers.js +233 -3
- package/dist/execution/step-handlers.js.map +1 -1
- package/dist/execution/workflow-executor.js +3 -1
- package/dist/execution/workflow-executor.js.map +1 -1
- package/dist/mcp/server.js +3 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/planning/heuristic-planner.js +58 -17
- package/dist/planning/heuristic-planner.js.map +1 -1
- package/dist/planning/workflow-planner.js +27 -27
- package/dist/reports/html-generator.js +5 -2
- package/dist/reports/html-generator.js.map +1 -1
- package/dist/reports/markdown-generator.js +113 -94
- package/dist/reports/markdown-generator.js.map +1 -1
- package/dist/types/discovery.d.ts +3 -0
- package/dist/utils/sanitizer.d.ts +5 -0
- package/dist/utils/sanitizer.js +17 -1
- package/dist/utils/sanitizer.js.map +1 -1
- package/dist/version.d.ts +1 -0
- package/dist/version.js +37 -0
- package/dist/version.js.map +1 -0
- package/package.json +93 -86
- package/templates/report.hbs +203 -202
- package/templates/styles/report.css +607 -607
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Afterburn Contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Afterburn Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,281 +1,287 @@
|
|
|
1
|
-
# Afterburn
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/afterburn-cli)
|
|
4
|
-
[](https://opensource.org/licenses/MIT)
|
|
5
|
-
[](https://nodejs.org/)
|
|
6
|
-
[]()
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- Broken
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
|
153
|
-
|
|
154
|
-
|
|
|
155
|
-
|
|
|
156
|
-
|
|
|
157
|
-
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
--
|
|
214
|
-
|
|
215
|
-
--
|
|
216
|
-
|
|
217
|
-
--
|
|
218
|
-
|
|
219
|
-
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
##
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
1
|
+
# Afterburn
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/afterburn-cli)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://nodejs.org/)
|
|
6
|
+
[](https://github.com/gods-strongest-vibecoder/afterburn/actions/workflows/ci.yml)
|
|
7
|
+
[]()
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<img src="demo/afterburn-demo.gif" alt="Afterburn scanning a website and finding 20 issues in seconds" width="720">
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
**One command finds every bug on your website.** Zero config. Generates a report your AI coding tool can use to fix them automatically.
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx afterburn-cli https://your-site.com
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
Afterburn v1.0.2
|
|
21
|
+
|
|
22
|
+
[ok] Checking browser...
|
|
23
|
+
[ok] Crawling site...
|
|
24
|
+
[ok] Testing workflows...
|
|
25
|
+
[ok] Analyzing results...
|
|
26
|
+
[ok] Generating reports...
|
|
27
|
+
|
|
28
|
+
Health: 62/100 - 20 issues found (0 high, 17 medium, 3 low)
|
|
29
|
+
|
|
30
|
+
Reports saved:
|
|
31
|
+
HTML: afterburn-reports/1770564079516/report.html
|
|
32
|
+
Markdown: afterburn-reports/1770564079516/report.md
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Afterburn crawls your site, fills out forms, clicks every button, and tells you what's broken -- in plain English for you, in structured Markdown for Claude, Cursor, or ChatGPT to auto-fix.
|
|
36
|
+
|
|
37
|
+
> **The AI workflow:** Afterburn finds the bugs. You paste the Markdown report into Claude, Cursor, or ChatGPT. It reads the reproduction steps and fixes them. You re-scan. Done.
|
|
38
|
+
|
|
39
|
+
## The AI-readable report (the killer feature)
|
|
40
|
+
|
|
41
|
+
Every scan generates **two reports**:
|
|
42
|
+
|
|
43
|
+
1. **HTML Report** -- A health score and prioritized bug list in plain English. For you to read.
|
|
44
|
+
2. **Markdown Report** -- Structured with reproduction steps and fix suggestions. Feed it directly to Claude, ChatGPT, or Cursor and your AI coding tool can **fix the bugs automatically**.
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
You: "Here's my Afterburn report. Fix these bugs."
|
|
48
|
+
AI: *reads structured report, fixes 12 issues across 4 files*
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
This is the workflow: Afterburn finds the bugs, your AI fixes them. Zero manual debugging.
|
|
52
|
+
|
|
53
|
+
### What the AI report looks like
|
|
54
|
+
|
|
55
|
+
The Markdown report is structured so AI tools can parse and act on it:
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
## Issues (Prioritized)
|
|
59
|
+
|
|
60
|
+
| # | Priority | Category | Summary | Location |
|
|
61
|
+
|---|----------|----------|---------|----------|
|
|
62
|
+
| 1 | HIGH | Workflow Error | Form "form#contact-form" submission isn't working | /contact |
|
|
63
|
+
| 2 | MEDIUM | Dead Button | Button "Get Started Free" doesn't do anything when clicked | / |
|
|
64
|
+
| 3 | MEDIUM | Console Error | An image failed to load | /images/icon-deploy.png |
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Each issue includes a category, priority, plain-English summary, and location. Paste this into Claude or Cursor and it knows exactly what to fix.
|
|
68
|
+
|
|
69
|
+
### Sample reports
|
|
70
|
+
|
|
71
|
+
See what Afterburn produces when scanning a real app with 20+ intentional defects:
|
|
72
|
+
|
|
73
|
+

|
|
74
|
+
|
|
75
|
+
- [Sample HTML report](demo-cache/report.html) -- Health score, prioritized issues, fix suggestions
|
|
76
|
+
- [Sample Markdown report](demo-cache/report.md) -- Structured for AI coding tools
|
|
77
|
+
- [Terminal output](demo-cache/terminal-output.txt) -- What you see in the CLI
|
|
78
|
+
|
|
79
|
+
## What it catches
|
|
80
|
+
|
|
81
|
+
- Broken forms that don't submit
|
|
82
|
+
- Dead buttons that do nothing when clicked
|
|
83
|
+
- JavaScript errors and console crashes
|
|
84
|
+
- HTTP errors (404s, 500s, failed API calls)
|
|
85
|
+
- Broken images and missing assets
|
|
86
|
+
- Accessibility violations (WCAG 2.1 AA via axe-core)
|
|
87
|
+
- Slow page loads and poor performance scores
|
|
88
|
+
|
|
89
|
+
## Quick start
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# No install needed -- run directly
|
|
93
|
+
npx afterburn-cli https://your-site.com
|
|
94
|
+
|
|
95
|
+
# Or install globally
|
|
96
|
+
npm install -g afterburn-cli
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Afterburn downloads a browser automatically on first run (~200MB, one-time).
|
|
100
|
+
|
|
101
|
+
## Try it now
|
|
102
|
+
|
|
103
|
+
Scan any public website -- no signup, no API key, no config:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
npx afterburn-cli https://en.wikipedia.org/wiki/Main_Page
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Or point it at your own site to see what's broken.
|
|
110
|
+
|
|
111
|
+
### Common options
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
# Test login flows
|
|
115
|
+
npx afterburn-cli https://your-site.com --email test@example.com --password mypass123
|
|
116
|
+
|
|
117
|
+
# Hint at specific workflows
|
|
118
|
+
npx afterburn-cli https://your-site.com --flows "signup, checkout, profile edit"
|
|
119
|
+
|
|
120
|
+
# Map bugs to your source code (file:line)
|
|
121
|
+
npx afterburn-cli https://your-site.com --source ./src
|
|
122
|
+
|
|
123
|
+
# Watch the browser do its thing
|
|
124
|
+
npx afterburn-cli https://your-site.com --no-headless
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Reports are saved to `./afterburn-reports/{timestamp}/`.
|
|
128
|
+
|
|
129
|
+
## How it works
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
Your URL --> Crawl all pages --> Plan test workflows --> Execute tests --> Analyze failures --> Generate reports
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
1. **Crawl** -- Discovers all pages, forms, buttons, and links. Handles SPAs (React, Next.js, Vue, Angular, Svelte).
|
|
136
|
+
2. **Plan** -- AI generates smart test workflows (or heuristic fallback with no API key).
|
|
137
|
+
3. **Execute** -- Runs each workflow in a real browser: fills forms, clicks buttons, captures screenshots.
|
|
138
|
+
4. **Analyze** -- Diagnoses root causes. AI vision analysis with Gemini, or pattern matching without.
|
|
139
|
+
5. **Report** -- Health score (0-100) and prioritized fix list in HTML + Markdown.
|
|
140
|
+
|
|
141
|
+
### AI is optional
|
|
142
|
+
|
|
143
|
+
Afterburn works **without any API keys**. Set `GEMINI_API_KEY` for smarter test planning and AI-powered diagnosis, but the core tool runs a full test suite either way.
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# Optional: enable AI-powered planning and diagnosis
|
|
147
|
+
export GEMINI_API_KEY=your-key-here
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## How is this different?
|
|
151
|
+
|
|
152
|
+
| Feature | Afterburn | Lighthouse | axe-core | Manual testing |
|
|
153
|
+
|---------|-----------|------------|----------|----------------|
|
|
154
|
+
| Zero config (no test writing) | Yes | Yes | Needs integration | Yes |
|
|
155
|
+
| Crawls entire site | Yes | Single page | No | Tedious |
|
|
156
|
+
| Form filling and submission | Yes | No | No | Manual |
|
|
157
|
+
| Dead button detection | Yes | No | No | If you notice |
|
|
158
|
+
| Plain English reports | Yes | Partial | No | N/A |
|
|
159
|
+
| AI-ready report for auto-fix | Yes | No | No | No |
|
|
160
|
+
| Free and open source | Yes | Yes | Yes | Free (your time) |
|
|
161
|
+
| CI/CD integration | GitHub Action | CI plugin | CI plugin | No |
|
|
162
|
+
|
|
163
|
+
## Health score
|
|
164
|
+
|
|
165
|
+
The health score (0-100) is weighted:
|
|
166
|
+
|
|
167
|
+
| Category | Weight | What it measures |
|
|
168
|
+
|----------|--------|------------------|
|
|
169
|
+
| Workflows | 40% | Did test workflows complete without errors? |
|
|
170
|
+
| Errors | 30% | HTTP errors, console crashes, broken resources |
|
|
171
|
+
| Accessibility | 20% | WCAG 2.1 AA violations |
|
|
172
|
+
| Performance | 10% | Page load times, LCP scores |
|
|
173
|
+
|
|
174
|
+
## Pre-flight check
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
npx afterburn-cli doctor
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Checks Node.js version, browser installation, API key, and network connectivity.
|
|
181
|
+
|
|
182
|
+
## Testing
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# Build CLI + bundled GitHub Action artifacts
|
|
186
|
+
npm run build:release
|
|
187
|
+
|
|
188
|
+
# Fast default lane (unit tests)
|
|
189
|
+
npm test
|
|
190
|
+
|
|
191
|
+
# Deterministic end-to-end lane (local fixture server)
|
|
192
|
+
npm run test:e2e
|
|
193
|
+
|
|
194
|
+
# Unit coverage gate with thresholds
|
|
195
|
+
npm run test:coverage
|
|
196
|
+
|
|
197
|
+
# Optional real-internet smoke test (only runs when URL is provided)
|
|
198
|
+
AFTERBURN_EXTERNAL_SMOKE_URL=https://example.com npm run test:smoke:external
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## CLI reference
|
|
202
|
+
|
|
203
|
+
```
|
|
204
|
+
Usage: afterburn [options] [command] <url>
|
|
205
|
+
|
|
206
|
+
Automated testing for vibe-coded websites
|
|
207
|
+
|
|
208
|
+
Arguments:
|
|
209
|
+
url URL to test
|
|
210
|
+
|
|
211
|
+
Options:
|
|
212
|
+
-V, --version output the version number
|
|
213
|
+
--source <path> Source code directory for pinpointing bugs
|
|
214
|
+
--email <email> Login email (or set AFTERBURN_EMAIL env var)
|
|
215
|
+
--password <password> Login password (tip: use AFTERBURN_PASSWORD env var
|
|
216
|
+
to avoid shell history exposure)
|
|
217
|
+
--output-dir <path> Custom output directory
|
|
218
|
+
(default: ./afterburn-reports/{timestamp})
|
|
219
|
+
--flows <hints> Comma-separated workflow hints (e.g., "signup, checkout")
|
|
220
|
+
--max-pages <n> Max pages to crawl (default: 50, max: 500)
|
|
221
|
+
--no-headless Show browser window (useful for debugging)
|
|
222
|
+
--verbose Show detailed progress output
|
|
223
|
+
-h, --help display help for command
|
|
224
|
+
|
|
225
|
+
Commands:
|
|
226
|
+
doctor Check if your environment is ready to run Afterburn
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
## Known limitations
|
|
230
|
+
|
|
231
|
+
- **Visual analysis requires GEMINI_API_KEY**. Without it, UI analysis relies on axe-core plus pattern matching.
|
|
232
|
+
- **SPA support is experimental**. Complex client-side routing may not be fully exercised.
|
|
233
|
+
- **Desktop viewport only**. Tests run at 1920x1080. Mobile testing planned for v2.
|
|
234
|
+
|
|
235
|
+
## Three interfaces
|
|
236
|
+
|
|
237
|
+
### CLI
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
npx afterburn-cli https://your-site.com
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### GitHub Action
|
|
244
|
+
|
|
245
|
+
```yaml
|
|
246
|
+
name: Afterburn
|
|
247
|
+
on: [pull_request]
|
|
248
|
+
|
|
249
|
+
jobs:
|
|
250
|
+
test:
|
|
251
|
+
runs-on: ubuntu-latest
|
|
252
|
+
steps:
|
|
253
|
+
- uses: actions/checkout@v4
|
|
254
|
+
- uses: gods-strongest-vibecoder/afterburn@main
|
|
255
|
+
with:
|
|
256
|
+
url: https://your-staging-site.com
|
|
257
|
+
fail-on: high
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
Posts a summary comment on your PR and uploads reports as artifacts.
|
|
261
|
+
|
|
262
|
+
### MCP Server (for AI coding assistants)
|
|
263
|
+
|
|
264
|
+
```json
|
|
265
|
+
{
|
|
266
|
+
"mcpServers": {
|
|
267
|
+
"afterburn": {
|
|
268
|
+
"command": "npx",
|
|
269
|
+
"args": ["afterburn-mcp"]
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
Exposes a `scan_website` tool that returns structured results your AI assistant can act on.
|
|
276
|
+
|
|
277
|
+
## Tech stack
|
|
278
|
+
|
|
279
|
+
[Playwright](https://playwright.dev/) (browser automation) | [Gemini 2.5 Flash](https://ai.google.dev/) (AI vision, optional) | [axe-core](https://github.com/dequelabs/axe-core) (accessibility) | [Commander.js](https://github.com/tj/commander.js) (CLI) | [Handlebars](https://handlebarsjs.com/) (HTML reports) | [ts-morph](https://github.com/dsherret/ts-morph) (source mapping) | [sharp](https://sharp.pixelplumbing.com/) (screenshot compression)
|
|
280
|
+
|
|
281
|
+
## License
|
|
282
|
+
|
|
283
|
+
MIT
|
|
284
|
+
|
|
285
|
+
Built for the [BridgeMind Vibeathon 2026](https://bridgemind.dev).
|
|
286
|
+
|
|
287
|
+
|