Open source  /  Implementation guide

Open-source implementation · SEO Optimization

Run a full technical SEO audit on open source

What this is. A build-it-yourself path to the same outcome, made from open-source parts you host. It does not publish 5 Kings’ internal method, client data, or any third party’s confidential information — and it says plainly where the open-source path is weaker than a specialist service.

In one paragraph

A complete technical SEO audit needs four things: a crawl, a render, a rule set and a place to compare the results over time. All four have mature open-source implementations. This guide wires them together so the audit is a repeatable job you own, not a PDF somebody emails you once.

What you end up with

  • A crawl of every indexable URL, produced on your own machine, with raw JSON you keep
  • A rendered-DOM pass so JavaScript-injected titles, canonicals and links are actually seen
  • A rule set written down as code, so the same 40 defects are checked the same way every run
  • A diff between this run and the last, which is the only way to catch silent regressions

The reference stack

Every project below is open source and self-hostable. Licences are the ones the project publishes today; check them against your own distribution model before you ship, because a licence can change and an AGPL project has obligations a MIT project does not.

LayerOpen-source projectLicenceWhat it does for you
CrawlerGreenflare SEO SpiderGPL-3.0Crawls 100k+ URLs to a local .gflaredb, extracts titles, canonicals, hreflang, headers and status codes.
Crawler (alternative)Katana (ProjectDiscovery)MITFast headless-capable crawler when you want JSONL output instead of a spider UI.
RendererChrome headless + PlaywrightApache-2.0Renders the page as a browser does; diff the rendered DOM against the raw HTML to find JS-only meta.
Perf + a11y rulesLighthouse CIApache-2.0Runs Lighthouse over a URL list, stores every run in a local SQLite file, fails a build on regression.
Site-wide perf sweepUnlighthouseMITLighthouse over an entire site from one command, with a static report you can host.
Structured dataschema.org validator + Rich Results Testn/a (Google-hosted)The authoritative check for JSON-LD; pair it with local JSON-LD parsing to catch it before Google does.
Storage + diffingDuckDBMITQuery crawl JSON as tables, compare run N to run N-1 with plain SQL, export CSV/Parquet for a dashboard.

Build it

1. Freeze the rule set before you crawl

Write the defects you care about as a list of checks with a severity and an owner. Audit quality is decided here, not by the crawler: a crawl that produces 4,000 undifferentiated issues is not an audit. Keep the list in version control so a rule change is a reviewable diff.

2. Crawl with a crawler you can script

Greenflare writes a local database you can re-query without re-crawling. Run it with a 1 req/sec delay on a staging-mirrored user agent, respect robots.txt, and store a timestamp. Never crawl at a rate the origin has not agreed to.

greenflare crawl https://example.com --max-urls 100000 --delay 1 
  --user-agent "AuditBot/1.0 (+https://example.com/bot)" 
  --output ./crawl-2026-11-30.gflaredb

3. Crawl the rendered DOM separately

A raw-HTML crawler cannot see a canonical injected by JavaScript. Run a second pass with Playwright over a sample of template types (home, category, product, article, one per locale), capture document.title, link[rel=canonical], meta[robots] and the visible h1, then diff raw vs rendered. Every difference is a decision: either the JS is required and you accept it, or it is a defect.

4. Fold in performance and accessibility as rules, not opinions

Lighthouse CI gives you numbers with a stable definition. Store the median of 5 runs per template, not a single sample, and set the failure threshold from your own baseline rather than from the score colour.

5. Load everything into one queryable place

DuckDB reads JSON and CSV directly with no import step. The point is that crawl, Lighthouse and Search Console exports become tables you can join, so “which of the 200 slow pages are also indexed and linked” is a query instead of a meeting.

6. Compare against the previous run

The deliverable is a diff: URLs added, URLs lost, titles changed, canonicals flipped, status codes moved, schema removed. Store each run with a run_id and a git commit of the rule set, so a regression has an identifiable cause.

7. Publish the action list, not the crawl export

Rank by expected effect × number of affected URLs ÷ cost to fix. Fifteen ranked items with the mechanism behind each beats 4,000 rows nobody opens. Attach the raw data as an appendix so the ranking can be challenged.

Acceptance checks

If you cannot verify a claim, it is not a finding. These are the checks that close the work; each one can be run by somebody who did not build it.

Acceptance checkHow to verify it
Every indexable URL appears exactly onceSELECT url, COUNT(*) FROM crawl GROUP BY 1 HAVING COUNT(*) > 1;
No status code above 399 in the sitemapJoin sitemap URLs to crawl status and assert 200 only.
Every page has one h1 and one canonicalAssert count(h1)=1 and count(canonical)=1 per URL in the rendered pass.
No canonical points at a URL that is not 200Join canonical targets back to crawl status; any target outside the crawl is flagged for a manual fetch.
Rendering changes no more than the known template deltasDiff raw vs rendered meta per template; the allow-list lives in the repo.
Lighthouse medians are within the agreed thresholdCompare the stored 5-run median to the baseline committed in the repo.
The diff since last run is explainedEvery added or removed URL has a line in the change log. An unexplained change is treated as a regression.

Effort and cost

Estimate
Skill neededIntermediate: comfortable with a terminal, JSON, and basic SQL
Build time1–2 days for the crawl + storage pipeline, 2–4 days to write and tune the rule set
Running cost1–3 hours per audit run, mostly waiting on the crawl; diffing is minutes
What you must hostA laptop or a 4 GB VM. Nothing needs a GPU. Crawl storage grows ~10 MB per 10k URLs, so plan for snapshots rather than keeping every run.

What open source does not give you

The honest half of the comparison. Each of these is a reason somebody buys the service instead of building it, and pretending otherwise would make the rest of this page worthless.

  • A crawler sees your site, not search engines. Search Console, Bing Webmaster Tools and log files are the only evidence of what was actually crawled and indexed — those exports must be part of the audit or the conclusions are guesses.
  • Lighthouse scores are not rankings. They measure lab conditions on one connection; a 100 does not imply good Core Web Vitals in the field, and a low score does not imply bad rankings.
  • Open-source crawlers will not reproduce every commercial crawler quirk (JavaScript rendering depth, log-file integration, crawl-budget modelling). Expect 95% coverage, not parity.
  • Nothing here tells you whether a page deserves to exist. Content quality, intent match and internal linking strategy are judgement, and no crawler supplies them.

Scope only, stated so you can compare it with the build above.

  • A second pair of eyes on the rule set, so the audit measures what matters for this site rather than everything a crawler can measure
  • Prioritisation against your revenue surface, which needs your analytics and order data, not just the crawl
  • A written change record per fix with a live before/after fetch, so “done” is verifiable

Sources and further reading

What this page does not include. This guide documents an open-source implementation of the same outcome. It deliberately leaves out 5 Kings’ internal playbooks, client data, vendor terms and unpublished method: we publish what any competent team can reproduce, and we do not publish what belongs to a client or to a contract. Where a step depends on a decision only your business can make, the guide says so instead of guessing.

Take it with you

Run a full technical SEO audit on open source

The full guide as an A4 PDF: the reference stack with licences, the build steps, the acceptance checks and the honest limits — in one file you can hand to an engineer or print for a planning session.

PDF · A4 · no email required · free to redistribute with attribution

Open-source Guides & PDFs