I built a zero-dependency CLI to audit hreflang (international SEO)
Описание и применение
CLI‑инструмент без зависимостей для аудита hreflang‑тегов, выявляющий ошибки и предлагающий исправления, пригоден для CI‑пайплайнов.
Задача
Sites with multiple languages often have hreflang issues that are invisible in the browser but hurt SEO, such as missing return links, invalid language codes, or canonical conflicts.
Результат
The CLI identifies common hreflang problems and provides actionable fix hints, improving international SEO and enabling automated regression checks in CI pipelines.
Рабочий процесс
- Clone the repo
- Run the offline demo with seeded issues
- Execute the CLI against a real site URL
- Review the report or use --json for automation
- Integrate the CLI into a GitHub Action for scheduled audits
Доказательства
hreflang-audit is a single-file Node.js 20+ CLI with zero npm dependencies. It crawls your site (or parses your XML sitemap, sitemap-index included), reads <link rel="alternate" hreflang> elements, HTTP Link: headers, and xhtml:link sitemap entries, and runs 11 checks …
- Дата записи: 2026-09-07T01:37:47.402Z