---
type: "Source File"
title: "CopeCheck SEO Lab"
description: "# CopeCheck SEO Lab Public build-in-public SEO dashboard for `seo.copecheck.com`. The service is deliberately light: - Python standard library only - public crawl checks for the CopeCheck subdomains - cached."
resource: "https://seo.copecheck.com"
tags: ["copecheck", "seo", "source-file", "md"]
timestamp: "2026-05-29T17:58:31Z"
site: "seo"
source_path: "copecheck-seo/README.md"
---

# CopeCheck SEO Lab

Source path: `copecheck-seo/README.md`  
Index snapshot generated: `2026-11-24T13:27:52Z`  
File modified: `2026-05-29T17:58:31Z`

```md
# CopeCheck SEO Lab

Public build-in-public SEO dashboard for `seo.copecheck.com`.

The service is deliberately light:

- Python standard library only
- public crawl checks for the CopeCheck subdomains
- cached sitemap/robots/homepage status
- latest Oracle entries from `codex.copecheck.com`
- optional Search Console/Bing snapshot via `data/search-console-snapshot.json`
- optional Search Console importer via `search_console_importer.py`
- optional subdomain registry sync via `data/network-sites.json`
- public `/tool/` SEO audit product with `/api/audit` for live URL checks
- public `/google-ai-search/` page explaining the Google AI Search readiness layer
- public `/updates/`, `/feed.xml` and `/llms.txt` discovery surfaces

`SEO_PLAYBOOK.md` is the working checklist. Update it whenever Claude/Codex
ships SEO, crawl, schema, sitemap, feed or public-dashboard changes.

## Run locally

```bash
python3 server.py --host 127.0.0.1 --port 8106
```

## Public SEO audit tool

`/tool/` runs a live audit against a submitted URL. The backend checks:

- HTTP status, HTTPS, viewport, canonical and meta robots
- `robots.txt`, `sitemap.xml` and `/llms.txt`
- organic traffic outlook: conservative open-web forecast by page type, ad
  pressure, zero-click/AI answer risk, brand demand and traffic moat
- Google AI Search readiness: Googlebot access, noindex/X-Robots-Tag,
  snippet eligibility, non-commodity content signals, query fan-out coverage
  and browser-agent readable structure
- agentic browsing readiness: Chrome Lighthouse-style checks for `llms.txt`
  fetch behaviour, static WebMCP form/tool hints, accessibility-tree basics and
  a Lighthouse follow-up for layout stability and dynamic WebMCP registration
- AI/search crawler access for GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot,
  Claude-SearchBot, anthropic-ai, PerplexityBot, Google-Extended and
  Applebot-Extended
- Cloudflare edge robots diagnostics, including managed robots/content-signal
  policy and hidden AI crawler block risk
- general robots hygiene, including `User-agent: *` access and `Sitemap:`
  directives
- title, meta description, H1, crawlable copy, image alt coverage, Open Graph
  metadata and JSON-LD schema
- competitor SERP pull-in for the supplied query and market
- PageSpeed Insights follow-up link in audit results

API:

```bash
curl -X POST https://seo.copecheck.com/api/audit \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://seo.copecheck.com/","query":"seo audit checker","market":"United Kingdom"}'
```

Share links use `/tool/?url=...&query=...&market=...&run=1`. They prefill the
form and re-run the audit when opened, so shared results stay fresh.

## Discovery surfaces

- `/sitemap.xml` lists the main SEO Lab pages.
- `/robots.txt` allows crawlers and declares the sitemap.
- `/llms.txt` gives agents a concise brief, key URLs and current public totals.
  It is for agent convenience and Lighthouse-style agentic browsing readiness,
  not a Google AI Search ranking requirement.
- `/feed.xml` publishes the SEO changelog as RSS.
- `/updates/` is the crawlable build log for shipped SEO improvements.
- `/google-ai-search/` maps Google's official guidance into the live audit
  checks and myth filters.
- Each main page includes related-page blocks so the lab reads as one evidence
  graph rather than isolated utility pages.

Structured data is emitted as a schema.org graph:

- `Organization`, `WebSite`, `WebPage` and `BreadcrumbList` on every page
- `SoftwareApplication` on `/tool/`
- `ItemList` on `/updates/`

## Google AI Search readiness

The checker now follows Google's Search Central guide to generative AI features
in Google Search. The product position is deliberately practical: AI Overviews
and AI Mode use Google's normal Search systems, so the first job is to make a
page crawlable, indexable and snippet-eligible.

The readiness layer adds:

- eligibility inspector for Googlebot, noindex and snippet controls
- non-commodity content profile for evidence, named examples, methodology,
  first-hand detail, dates and point of view
- query fan-out planner for adjacent intents to answer inside the page
- browser-agent UX check for semantic landmarks and labelled controls
- agentic browsing checks for `llms.txt` fetch behaviour, static WebMCP hints
  and Lighthouse follow-up validation
- myth filters so llms.txt, chunking, fake mentions and schema overuse are not
  sold as Google AI Search hacks

Chrome Lighthouse's experimental Agentic Browsing category is treated as a
separate readiness layer from Search. The checker can detect server-side and
static HTML signals; dynamic WebMCP registration and layout stability still need
to be verified in Chrome Lighthouse.

## Organic traffic outlook

The audit response includes a separate `traffic_outlook` score. It is not part
of the technical hygiene score. A page can be technically strong and still have
poor organic traffic prospects.

The scoring stance is intentionally conservative:

- generic content and news-style pages are usually very low because the SERP,
  snippets and AI answers can satisfy the query before the click
- commercial pages are usually low because ads, aggregators and comparison
  surfaces sit above or around organic results
- small non-branded sites are penalised unless they have a moat such as brand
  demand, local specificity, original data, a useful tool, or source-backed
  research
- Search Console impressions should replace the heuristic once real data exists

## Feedback collection

Every page includes a feedback popup. It POSTs to `/api/feedback` and appends
reviewable JSONL records to:

```text
data/seo-feedback.jsonl
```

Feedback records include page URL/title, optional email, feedback type, message,
and the last local audit summary if the visitor has run the checker.

Optional environment:

[redacted secret-like line]
[redacted secret-like line]
- `MINIMAX_MODEL` overrides the default `MiniMax-M2.7`.
- `MINIMAX_CHAT_ENDPOINT` overrides the OpenAI-compatible chat endpoint.
- `MINIMAX_TIMEOUT` controls the enrichment window, default `7` seconds. If
  MiniMax is slow, the API returns a deterministic summary rather than making
  visitors wait.
- `MINIMAX_TOTAL_TIMEOUT` caps the whole MiniMax enrichment attempt across any
  configured fallback endpoints, default `8` seconds.

The VPS systemd unit loads `/home/ben/infra/copecheck/.env` so existing shared
provider keys can power the audit without exposing them publicly.

## Search snapshot shape

Create `data/search-console-snapshot.json` with this shape when Search Console
or Bing exports are wired in:

```json
{
  "status": "connected",
  "updated_at": "2026-05-10T00:00:00Z",
  "totals": {
    "clicks": 0,
    "impressions": 0,
    "ctr": 0,
    "position": null
  },
  "daily": [
    {
      "date": "2026-05-10",
      "clicks": 0,
      "impressions": 0,
      "ctr": 0,
      "position": null
    }
  ],
  "properties": [
    {
      "property": "https://codex.copecheck.com/",
      "clicks": 0,
      "impressions": 0,
      "ctr": 0,
      "position": null
    }
  ],
  "queries": [
    {
      "query": "ai job denial",
      "impressions": 0
    }
  ]
}
```

## Search Console importer

The importer uses Google Application Default Credentials with the Search
Console readonly scope, stores rows in SQLite, then writes the public JSON
snapshot consumed by the dashboard.

Authorize the right Google account on the Mac:

```bash
gcloud auth application-default login \
  --scopes=https://www.googleapis.com/auth/webmasters.readonly,https://www.googleapis.com/auth/cloud-platform
```

List accessible Search Console properties:

```bash
python3 search_console_importer.py --list-sites
```

Run the import and push the public snapshot to the VPS:

```bash
python3 search_console_importer.py \
  --site-url sc-domain:copecheck.com \
  --push ben@46.224.150.87:/home/ben/infra/copecheck-seo/data/search-console-snapshot.json
```

## Search Console sitemap maintenance

`search_console_maintainer.py` reads the public SEO registry and prepares the
sitemap submission list. It defaults to dry-run.

```bash
python3 search_console_maintainer.py --site-url sc-domain:copecheck.com
```

To submit sitemaps, re-authorize ADC with the write Search Console scope:

```bash
gcloud auth application-default login \
  --scopes=https://www.googleapis.com/auth/webmasters,https://www.googleapis.com/auth/cloud-platform
```

Then run:

```bash
python3 search_console_maintainer.py \
  --site-url sc-domain:copecheck.com \
  --ensure-site \
  --apply
```

## Subdomain registry sync

The SEO app merges curated site metadata with `data/network-sites.json`. On the
VPS, `copecheck-seo-sync-subdomains.timer` refreshes that JSON every 30 minutes
from `/etc/cloudflared/config.yml`, so new `*.copecheck.com` tunnel hosts appear
on the SEO dashboard without editing `server.py`.

```bash
python3 sync_network_sites.py --config /etc/cloudflared/config.yml
sudo systemctl status copecheck-seo-sync-subdomains.timer --no-pager
sudo systemctl start copecheck-seo-sync-subdomains.service
```
```
