@lv24/seo 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +81 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,9 +1,16 @@
1
+ ![LV24 SEO — SEO insights for humans and AI agents](https://raw.githubusercontent.com/LevapVeeskela/lv24-seo-optimizer/main/.github/assets/banner.png)
2
+
1
3
  # @lv24/seo
2
4
 
5
+ [![npm](https://img.shields.io/npm/v/@lv24/seo.svg)](https://www.npmjs.com/package/@lv24/seo)
6
+ [![PyPI](https://img.shields.io/pypi/v/lv24-seo.svg)](https://pypi.org/project/lv24-seo/)
7
+ [![ci](https://github.com/LevapVeeskela/lv24-seo-optimizer/actions/workflows/ci.yml/badge.svg)](https://github.com/LevapVeeskela/lv24-seo-optimizer/actions/workflows/ci.yml)
8
+ [![license](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/LevapVeeskela/lv24-seo-optimizer/blob/main/LICENSE)
9
+
3
10
  `npx` launcher for the Python package [`lv24-seo`](https://pypi.org/project/lv24-seo/) —
4
- a free-first SEO control plane for humans and AI agents (Google Search Console, Yandex Webmaster,
5
- Yandex Metrika, Bing/IndexNow, CrUX, PageSpeed Insights, a 30-rule technical crawl, scheduled
6
- email/Telegram reports, an MCP server and agent skills).
11
+ a free-first SEO control plane for humans and AI agents: Google Search Console, Yandex Webmaster,
12
+ Yandex Metrika, Bing/IndexNow, CrUX, PageSpeed Insights, a 30-rule technical crawl, weekly
13
+ report diffs, an MCP server and agent skills.
7
14
 
8
15
  This npm package contains **no SEO logic**. It forwards every argument to
9
16
  `uvx --from lv24-seo==<this-version> lv24-seo …` (or to a `lv24-seo` binary already on `PATH`),
@@ -11,6 +18,29 @@ so the CLI, its `--json` envelope and the documented exit codes behave exactly a
11
18
  package. The version is pinned to this package's own version; set `LV24_SEO_PIN=0` to opt back
12
19
  into the unpinned (`latest`) lookup.
13
20
 
21
+ ## Status
22
+
23
+ Beta. The current Python/NPM line ships 11 read-only-by-default MCP tools, 3 resources,
24
+ 3 prompts, the full CLI, scheduler generators and a product-grade weekly email. Recent
25
+ additions:
26
+
27
+ * **Localized product email** — `report weekly --send` renders a 600px inline-CSS digest in
28
+ `ru`, `en` or `zh`: KPI cards for clicks/impressions/CTR/position, top-3 opportunities,
29
+ issue severities, merged sources, data notes and a property/UTC footer. Plain-text fallback
30
+ and subject are localized too; JSON/MCP payloads stay canonical English. Unknown values stay
31
+ unknown, CTR changes are shown in percentage points, and Metrica is labelled as sessions,
32
+ never as clicks. Set the language once with `report.locale`.
33
+ * **Week-over-week report diff** — `report diff` and the `seo_report_diff` MCP tool compare two
34
+ stored weekly snapshots without provider calls. Metrics present on one side only stay unknown,
35
+ not zero; differing period lengths make the pair not comparable. `--markdown` is deterministic
36
+ for PR comments and CI summaries.
37
+ * **Sitemap ↔ crawl coverage diff** — `crawl` / `seo_crawl_site` return `data.sitemap_coverage`
38
+ with six buckets (`unlinked`, `missing_from_sitemap`, `not_ok`, `noindex`, `blocked`,
39
+ `unvisited`), exact counts, capped lists, `complete` and `limitations[]`. A site without a
40
+ sitemap is "empty, not clean"; unvisited URLs are unknown, never broken.
41
+ * **Honest bounds** — `meta.complete`, `truncated`, `total` and `limitations[]` are carried through
42
+ MCP, CLI and reports; unknown totals stay `null`; delivery is idempotent per period and channel.
43
+
14
44
  ## Requirements
15
45
 
16
46
  * [uv](https://docs.astral.sh/uv/) (recommended) **or** an installed `lv24-seo` binary
@@ -23,12 +53,55 @@ into the unpinned (`latest`) lookup.
23
53
  npx @lv24/seo doctor --json
24
54
  npx @lv24/seo init --property https://example.com
25
55
  npx @lv24/seo auth set --provider gsc --stdin
56
+ npx @lv24/seo gsc query --start 2026-11-01 --end 2026-11-07 --dimensions query,page
26
57
  npx @lv24/seo report weekly --json --out reports/
27
- npx @lv24/seo mcp serve # stdio MCP server for Claude/OpenCode/Cursor
58
+ npx @lv24/seo report weekly --send # product email/Telegram digest
59
+ npx @lv24/seo report diff --markdown # diff of two stored weekly snapshots
60
+ npx @lv24/seo crawl --json # issues + sitemap↔crawl coverage diff
61
+ npx @lv24/seo mcp serve # stdio MCP server for Claude/OpenCode/Cursor
62
+ npx @lv24/seo export skills --out ./skills # packaged agent skills
28
63
  ```
29
64
 
30
65
  The first run may take a few seconds while uv resolves and caches the Python package.
31
66
 
67
+ ## Email reports
68
+
69
+ `report weekly --send` builds the digest and delivers it over the configured SMTP/Telegram
70
+ channels. The email is a product template, not a raw data dump: dark branded header/footer,
71
+ KPI cards, top-3 opportunities, issue severities, merged sources, data notes/warnings and a
72
+ footer with the exact property id. It contains no external images, stylesheets, scripts or
73
+ tracking pixels; unknown values stay unknown and CTR changes are shown in percentage points.
74
+
75
+ Language is selected once for all human-readable output:
76
+
77
+ ```toml
78
+ [report]
79
+ locale = "ru" # ru | en | zh; JSON/MCP payloads stay canonical English
80
+
81
+ [report.email]
82
+ enabled = true
83
+ to = ["owner@example.com"]
84
+ from = "seo@example.com"
85
+ smtp_host = "smtp.example.com"
86
+ smtp_port = 587
87
+ smtp_user = "seo@example.com"
88
+ only_on_change = true # set false for an email every run, even without material change
89
+ ```
90
+
91
+ Store the SMTP password in the keychain with `npx @lv24/seo auth set --provider smtp --stdin`
92
+ (or set `LV24_SEO_SMTP_PASSWORD`). `schedule install` adds `--send` to the generated job, so a
93
+ weekly/daily schedule delivers automatically. `only_on_change` and the configured
94
+ `report.thresholds` can suppress a send when nothing material moved; switching `report.locale`
95
+ re-sends the same period once because the delivery hash includes the language.
96
+
97
+ ## MCP surface
98
+
99
+ Eleven tools over stdio (or streamable HTTP via `mcp serve --transport http`): `seo_properties`,
100
+ `gsc_search_analytics`, `yandex_query_stats`, `yandex_indexing_state`, `seo_crawl_site`,
101
+ `seo_weekly_report`, `seo_report_diff`, `seo_indexing_triage`, `seo_opportunities`, plus the
102
+ gated `seo_recrawl_request` and `seo_sitemap_submit`. Read tools never touch a provider unless
103
+ called; write tools require `allow_write=true` and are disabled by default.
104
+
32
105
  ## Configuration
33
106
 
34
107
  Tokens are read from the keychain (set them with `lv24-seo auth set`) or from `LV24_SEO_*`
@@ -58,8 +131,10 @@ npm test # node --test test/launcher.test.js, offline: pinning, guards, exit c
58
131
 
59
132
  ## Links
60
133
 
61
- * Documentation: <https://github.com/LevapVeeskela/lv24-seo-optimizer>
62
- * MCP tools and skills: see `docs/mcp.md` and `skills/` in the repository
134
+ * Repository and full docs: <https://github.com/LevapVeeskela/lv24-seo-optimizer>
135
+ * CLI, MCP tools, email scheduling and limits: `docs/cli.md`, `docs/mcp.md`,
136
+ `docs/scheduling.md`, `docs/data-sources.md`
137
+ * Release notes: <https://github.com/LevapVeeskela/lv24-seo-optimizer/tree/main/docs/releases>
63
138
  * Issues: <https://github.com/LevapVeeskela/lv24-seo-optimizer/issues>
64
139
 
65
140
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lv24/seo",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "SEO audits and diff reports from Search Console, Yandex, Bing, CrUX and PSI - npx CLI + MCP.",
5
5
  "keywords": [
6
6
  "seo",