Skip to main content
Glama
README.md
# launch-audit

An agent that checks a website against a 25-point launch checklist before it goes live. It loads the site in real Chrome at desktop and phone size, crawls a few pages, measures what code can measure, and hands the rest to Claude with screenshots so it can judge what needs eyes.

It runs on your machine. It uses the Chrome you already have, needs no API key, and is read only: it never clicks, types or submits forms.

```
$ launch-audit example.com

https://example.com: 32% (6 done, 2 to improve, 14 to fix, 2 to look at)
  Fix     1. One CTA above the fold: No button-style call to action on the first screen of the home page.
  Fix     3. Meta description on every page: 1 of 1 page(s) have no meta description.
  Fix     4. Open Graph image (link preview card): No og:image. Shared links show a random image or none.
  Fix     6. robots.txt: robots.txt is missing (HTTP 404).
  ...
Report: reports/example.com-2026-11-24T02-40-11/report.html
```

## The checklist

A custom 404 page, plus:

1. One call to action above the fold
2. Meta title on every page
3. Meta description on every page
4. Open Graph image (the link preview card)
5. Favicon set
6. robots.txt
7. sitemap.xml
8. Alt text on every image
9. Mobile layout (no sideways scrolling on a 375 px phone)
10. Sticky call to action on mobile
11. Loading states
12. Form error states
13. Thank-you page
14. Privacy policy page
15. Terms page
16. Cookie banner
17. Analytics installed
18. Real contact address
19. Compressed images
20. Google Analytics
21. FAQs
22. Internal links (and none broken)
23. Team photo and socials linked
24. Success stories

It also checks HTTPS, that pages load, JavaScript console errors and the page language.

Each item comes back as one of:

| Status | Meaning |
|---|---|
| **Done** | Meets the item. |
| **Improve** | There, but weak: a title too long, an og:image that isn't 1200×630, a header that sticks but holds no button. |
| **Fix** | Missing or broken. |
| **Look** | Can't be judged from code: is the team photo real, are the reviews real, does the form show errors? |
| **N/A** | Doesn't apply, like a cookie banner on a site with no trackers. |

The score is the share of graded items done, with "Improve" counting half.

## Measuring vs judging

Half of a launch checklist is measurable and half is taste. The tool keeps them apart.

**Measured in code:** the deterministic checks in `src/checks.ts` are pure functions over facts collected from the browser, so they are fast, repeatable and unit tested. They decide every item they can, and they never guess on the rest.

**Judged by the agent:** items that need eyes are marked "Look" with a hint, such as "check there is a real team photo, not stock". Through the MCP server, Claude gets those results along with desktop and phone screenshots, can call `screenshot_page` for any other page, and gives its own verdict. The `launch_review` prompt runs that whole loop and ends with a prioritised fix list.

## Use it from the command line

Requires Node 22 and Google Chrome. Without Chrome, run `npx playwright install chromium` once.

```bash
git clone https://github.com/thegreatola/launch-audit
cd launch-audit
npm install
npm run build
node dist/cli.js yoursite.com
```

| Option | Default | |
|---|---|---|
| `--pages <n>` | 8 | Most pages to load, start page included (max 30). |
| `--out <dir>` | `reports/<host>-<time>` | Where `report.html`, `report.json` and screenshots go. |
| `--json` | | Print the full report as JSON. |
| `--strict` | | Exit with code 1 if anything fails, for CI. |

`localhost:3000` works too, so you can audit a site before it ships.

## Use it from Claude

**Claude Code**

```bash
claude mcp add launch-audit -- node /absolute/path/to/launch-audit/dist/mcp.js
```

**Claude Desktop** (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "launch-audit": {
      "command": "node",
      "args": ["/absolute/path/to/launch-audit/dist/mcp.js"]
    }
  }
}
```

Then ask "Is mysite.com ready to launch?", or run the `launch_review` prompt.

| MCP feature | What it does |
|---|---|
| `audit_site` tool | Runs the audit and returns every item, the first-screen screenshots and the report path. |
| `screenshot_page` tool | Desktop or phone screenshot of any page, first screen or full page. |
| `launch_review` prompt | Audit, judge the "Look" items from screenshots, check the first screen, return a fix list. |

Reports from the MCP server go to your system temp folder, or to `LAUNCH_AUDIT_REPORTS` if set.

## How it works

```
Claude / CLI
    |
 mcp.ts, cli.ts      entry points
    |
 audit.ts            collect -> check -> write report
    |
 site.ts             robots.txt, sitemap, 404 probe, og:image, icons,
                     polite crawl, broken-link check
 collect.ts          one page in Chrome at 1440 px and 375 px: tags, images,
                     links, CTAs, sticky bars, cookie banners, trackers, forms
    |
 checks.ts           25 + 4 pure checks over the collected facts
 report.ts           HTML report and text summary
```

## Design decisions

**Read only, always.** It doesn't click, type or submit. Form error states and thank-you pages are marked "Look" instead of tested, because testing them means submitting forms on someone's live site.

**Polite crawling.** It reads `robots.txt` and skips anything disallowed for all crawlers. It loads pages one at a time, crawls sitemap pages first, stops at the page limit (8 by default), and identifies itself as `launch-audit` in the user agent.

**Facts first, then checks.** The browser work happens once and produces plain data. Every check is a pure function of that data, so the whole checklist is tested with fixtures, without a browser or network.

**Measured against the phone width it asked for.** On a page that's too wide, phone Chrome zooms out to fit, and `window.innerWidth` grows with the content. Measuring overflow against `innerWidth` therefore always reports zero. The collector compares the page width to the 375 px it requested. The end-to-end test caught this.

**Broken pages aren't audited as pages.** A crawled link that returns 404 is recorded as a broken link, not added to the audited pages where it would distort every other check.

**Toggles aren't calls to action.** Menu, search and close buttons are buttons, but counting "Open menu" as a sticky CTA would pass a site that has none. Elements with `aria-expanded` or `aria-controls`, or menu-like labels, are excluded.

## Tests

```bash
npm test      # 16 check tests on fixtures + 1 end-to-end test in Chrome
npm run smoke # starts the MCP server over stdio and calls each tool
```

The end-to-end test serves a small site from the test process (no internet) with known problems: a missing alt attribute, a too-wide block, a broken link, a default 404, a relative 1×1 og:image and a disallowed path in the sitemap. It then checks that each one is caught and the disallowed page is never loaded. CI runs everything on Ubuntu with Chrome.

## Limits

- Heuristics, not a full accessibility or SEO audit. Run Lighthouse as well for performance and contrast.
- Image weights are measured on images that load during a scroll of the page; images behind interactions are missed.
- "Sticky CTA" and "CTA above the fold" look for button-styled links and buttons. Unusual designs may need a look.
- Single-page apps that never change the URL are audited as one page.

## License

MIT