DEV Community

Cover image for I Built a Free, Open-Source Website Auditor
Detroon Shah
Detroon Shah

Posted on AI-assisted

I Built a Free, Open-Source Website Auditor

Free, open-source website auditor: technical SEO, Core Web Vitals, memory leaks and MCP in one report. Sightline covers security and Cloudflare checks too.

Auditing a website properly usually means four tools, four tabs and four exports. One checks SEO, another finds broken links, a third scores performance, and almost none of them look at the memory growth that makes a page sluggish after ten minutes of use. You end up with no single report you can hand to a client or fail a CI build on.

That gap is why I built Sightline, a free, MIT-licensed website audit tool. This post is the engineering write-up: how the engine is structured, what it can and can't check, and the problems that took the longest to solve. You don't need to use the tool to get something out of it.

AI disclosure: I wrote this article with help from Claude (Anthropic), which I used to inspect the repository, draft sections and generate the diagrams. I reviewed the code claims against the source myself. Figures marked as screenshots come from the real app.

Why I built a website auditor

A launch checklist for a site usually spans several concerns that live in different tools:

  • Technical SEO audit: titles, canonicals, robots.txt, sitemap, structured data, hreflang.
  • Website performance testing: Core Web Vitals, unused JavaScript and CSS.
  • Website security checker: HTTPS, certificate expiry, security headers, cookies.
  • Infrastructure: Cloudflare settings, DNS records, SPF/DMARC.
  • Runtime health: things a static crawl can't see, like leaking timers and event listeners.

Paid suites cover part of this well, Lighthouse covers another part, and browser DevTools cover the runtime side if you know where to look. What I wanted was one scored report, with a plain-language fix next to every finding, that I could run locally, in CI, or from an AI assistant.

Introducing Sightline

Sightline ships as a desktop app (Windows, macOS, Linux), a browser-based web app, a CLI and an MCP server. All four front ends call the same TypeScript engine.

Sightline website audit dashboard showing an overall score ring, category scores and export buttons for PDF, HTML and JSON

Figure 1: Sightline's audit dashboard turns a full audit into one overall score and per-category scores, with PDF, HTML and JSON export. This is a real screenshot of an audit run on cloudflare.com. Run your own free audit.

The dashboard above is a real report. The overall score is a weighted average of category scores, so a failing security module can't hide behind a good SEO score.

Video walkthrough: Sightline in action

Poster image linking to the Sightline video walkthrough, showing the audit dashboard with a play button

Video 1: Watch the Sightline walkthrough video for a quick look at the app before you read how it works.

Technical architecture

The repo is a TypeScript (strict) project. The desktop app is Electron, the website is Next.js 15 with React 19, HTML parsing uses cheerio, accessibility checks use axe-core, and the browser-driven audits talk to Chromium over the Chrome DevTools Protocol.

Architecture diagram: desktop, web, CLI and MCP front ends call a shared audit engine, which runs server-side modules and desktop-only browser modules

Figure 2: One shared engine, four front ends. Modules that need a real browser only run in the desktop app. Browse the audit engine source.

The split that matters is server-side vs. browser modules. In src/engine/index.ts the module list is explicit, and five modules are flagged as browser-only:

export const BROWSER_MODULES: SL.CategoryKey[] =
  ['performance', 'lighthouse', 'coverage', 'mobile', 'memory'];
Enter fullscreen mode Exit fullscreen mode

If no browser runner is passed to runAudit(), those modules are filtered out. That's why the web app and CLI report fewer categories than the desktop app. The rest (SEO, hreflang, links, website health, Cloudflare/DNS, security headers and an exposed-secrets scan) need only HTTP and DNS.

Note on counts: the website and README describe ten categories, five of them web-based. In the current source (v1.1.1) the engine defines twelve module keys, because security and secrets scanning were added.

The audit workflow

Workflow diagram: normalize URL, discover site, crawl pages, run modules with timeouts, compute weighted score, export PDF, HTML or JSON

Figure 3: The audit pipeline. A module that throws or times out is recorded as failed without stopping the rest. See runAudit() in the repository.

Each module runs inside a Promise.race against a per-module timeout (for example 60 seconds for SEO, 300 seconds for the memory test). If it throws, failedCategory() records the error as an informational check and the audit carries on. A report with eleven good modules and one failed one is far more useful than a crashed run.

The audit categories: technical SEO, security and performance checks

I'll group them by what they need to run.

Server-side (no browser needed; they run in the CLI, the Node MCP server and the desktop app, and the web app runs the first five below):

  • SEO: titles, descriptions, headings, canonicals, robots.txt, sitemap, structured data, duplicate content, crawled across up to N pages.
  • Links: broken links, redirect chains, empty or unsafe links.
  • Hreflang: language codes, x-default, and return tags between language versions.
  • Website health: HTTPS, certificate expiry, security headers, cookies, compression, caching.
  • Cloudflare & DNS: proxying, TLS, HTTP/3, origin exposure, DNSSEC, CAA, SPF, DMARC.
  • Security and secrets: protection headers, subdomain takeover checks, and a scan for leaked keys in pages, scripts and source maps.

Browser-driven (desktop app only):

  • Lighthouse-style scores, Core Web Vitals, code coverage, iPhone & iPad Safari emulation and memory leaks.

Core Web Vitals analysis and Lighthouse-style scoring, honestly described

The performance score uses the log-normal curves and metric weights Google publishes for Lighthouse. For mobile, LCP scores 0.9 at 2.5 s and 0.5 at 4 s. TBT carries the largest weight (0.30). It is an independent implementation, so scores will be close to Google Lighthouse but not identical. If you need Lighthouse's exact numbers, run Lighthouse.

JavaScript memory leak detection

Memory leaks are the check most audit tools skip, and it was the most interesting module to write. Before any page script runs, Sightline injects a small instrument that wraps setInterval, addEventListener, removeEventListener and the Mutation/Resize/IntersectionObserver constructors, so it can count what is created and what is cleaned up. Then it simulates a user session in cycles: scroll, resize, expand and collapse disclosure widgets, press Escape, visit a few internal routes.

After the cycles it looks at heap size, DOM node count and listener counts across samples, using a least-squares slope and the share of samples that rose, rather than a single before/after number. One noisy garbage-collection moment shouldn't flag a leak.

Because this module interacts with a site, it is guarded. It skips controls inside forms, ignores anything whose label looks like a real action (buy, delete, submit, subscribe), and the MCP tool refuses to run unless the caller passes i_have_permission: true.

A real audit, in the report

Cropped section of a Sightline report showing the At a glance category score cards for SEO, Performance, iPhone and iPad, and Memory leaks

Figure 4: The "At a glance" cards break the overall score into categories. The top of the same report shows 80 passed, 17 warnings and 10 failed.

I won't pretend one screenshot is a benchmark. It shows what a report looks like, not how accurate Sightline is against other tools. I haven't run a controlled comparison, so I'm not making accuracy or speed claims.

Automated website testing: CLI and MCP developer tools

The CLI is built for CI. It can fail a build when the overall score drops:

npm run build
node out/cli/sightline.js example.com \
  --html report.html \
  --test-cases launch-plan.csv \
  --fail-under 80
Enter fullscreen mode Exit fullscreen mode

The CLI exits with code 1 below the threshold. --modules, --pages, --links, --json and --quiet are also available. A separate subcommand scans for leaked secrets, including every commit of a local repo:

node out/cli/sightline.js secrets ./my-repo --fail-on-found
Enter fullscreen mode Exit fullscreen mode

For AI editors, Sightline is also a Model Context Protocol (MCP) server, so these MCP developer tools let Cursor or VS Code run audits for you. The Node-only server runs the server-side audits:

{
  "mcpServers": {
    "sightline": {
      "command": "node",
      "args": ["out/mcp/stdio.js"]
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

The desktop app can run the same server with a --mcp argument to expose the browser-based audits too. Tools include audit_website, check_seo, check_links, check_secrets and generate_test_cases. The last one produces a launch-day test plan as Markdown, CSV or a runnable Playwright file.

Usage card showing Sightline CLI commands with fail-under and secrets scanning, next to an MCP configuration snippet for Cursor or VS Code

Figure 5: CLI usage for CI and the MCP configuration for AI editors, taken from the project's help text and docs. See the README for all options.

Technical challenges

1. A public audit endpoint is an SSRF machine. Anything that fetches user-supplied URLs can be pointed at 169.254.169.254 or an internal service. The web server installs a request guard that rejects non-HTTP(S) schemes, unusual ports, localhost/.internal names, and any hostname that resolves to a private or reserved address. It runs on every redirect hop, not just the first request. Desktop audits are local, so this guard is only for the public server.

2. MCP over stdio inside Electron. The MCP server is a minimal newline-delimited JSON-RPC 2.0 implementation. Electron's main process, notably on Windows, doesn't wire process.stdin/stdout to pipes. The server detects Electron and reads and writes file descriptors 0 and 1 directly.

3. Rate limiting on serverless. The limiter is an in-memory sliding window per IP. On serverless hosts each instance keeps its own window, so it's a fair-use guard, not a hard quota.

Current limitations and roadmap

  • Installers aren't code-signed yet.
  • Pages behind a login can't be audited yet.
  • It isn't a replacement for enterprise-scale crawls or real-device testing; iPhone and iPad checks are emulation.
  • The public web app has an hourly fair-use limit and audits public sites only.

On the roadmap: batch audits from a sitemap, translated findings, code-signed installers, scheduled audits with score history, an optional Google Lighthouse engine, and audits behind a login.

Try it and contribute

Sightline closing banner with the tagline Every detail. Audited. and links to the web app and GitHub repository

Figure 6: Sightline is free, MIT licensed, and available as a web app, desktop app, CLI and MCP server. Visit sightaud.com.

I'm an independent full-stack developer and AI engineer. If your team or startup needs help with something like this, you can find me at zubairhussain.xyz.

Frequently asked questions

Is Sightline really a free Semrush alternative?

It's free and open source, and it covers on-page technical SEO, links, hreflang and site health. It doesn't do keyword research, rank tracking or backlink data, so it's an alternative for technical audits only.

Is it a Lighthouse alternative for website optimization?

It reproduces Lighthouse-style scoring with the published curves and weights, but it's an independent implementation and scores won't match exactly. It also adds checks Lighthouse doesn't cover, such as link health, hreflang and Cloudflare/DNS.

Which audits run in the web app and which need the desktop app?

Anything that needs a real browser (Lighthouse-style scores, Core Web Vitals, coverage, iPhone/iPad, memory) runs only in the desktop app. The server-side modules run in the CLI and Node MCP server; the web app runs SEO, hreflang, links, website health and Cloudflare/DNS.

Does it send my data anywhere?

Desktop audits run locally. The public web app fetches the site you enter from the server and doesn't store reports.

Can I use it in CI?

Yes, with --fail-under <score> the CLI exits non-zero when the overall score is below your threshold.

What does your tooling miss?

I'd like to learn from this: what is one technical website issue that your current auditing tools consistently fail to detect? Tell me in the comments, open an issue on GitHub, or send a pull request.

Top comments (0)