Skip to content

v0.21.0

Choose a tag to compare

@github-actions github-actions released this 02 Jun 18:39
· 166 commits to main since this release
2f92ee0

Minor Changes

  • a4e2528: Add a Google search-presence capability: given a per-site query and the site's domain, check whether the site appears on page 1 of Google's organic results.

    • src/reports/search/client.tsfetchSearchPresence({ apiKey, engineId, query, siteUrl }){ foundOnPage1, position } via the Custom Search JSON API (free 100/day; de-personalized national-ranking proxy). Hostname matching normalizes www./scheme/path. Throws on non-OK responses so callers can soft-fail.
    • src/reports/search/config.tsreadSearchConfig() reads GOOGLE_SEARCH_API_KEY + GOOGLE_SEARCH_ENGINE_ID; null when unset → check skipped.
    • New Websites "Search query" column → WebsiteRow.searchQuery.

    This is the capability only. Surfacing it in the report email's "Google Indexed" line (and the draft-time fetch) lands as a follow-up, after the email's escapeXml helper merges. Operator setup (one-time): a Google Cloud API key with Custom Search enabled + a Programmable Search Engine ID in credentials.env.