automattic/jetpack-seo
Jetpack SEO — the visibility command center for WordPress sites in the agentic web.
Maintainers
Package info
github.com/Automattic/jetpack-seo
Language:JavaScript
Type:jetpack-library
pkg:composer/automattic/jetpack-seo
Requires
- php: >=7.2
- automattic/jetpack-admin-ui: ^0.9.2
- automattic/jetpack-status: ^6.1.8
- automattic/jetpack-wp-build-polyfills: ^0.1.14
Requires (Dev)
- automattic/jetpack-changelogger: ^6.0.17
- automattic/jetpack-test-environment: @dev
- automattic/phpunit-select-config: ^1.0.9
- yoast/phpunit-polyfills: ^4.0.0
Suggests
- automattic/jetpack-autoloader: Allow for better interoperability with other plugins that use this package.
Provides
None
Conflicts
None
Replaces
None
GPL-2.0-or-later 18eb75e92ef63d3af7721b33e0d4674b349bf3b1
This package is auto-updated.
Last update: 2026-06-17 16:07:28 UTC
README
The visibility command center for WordPress sites in the agentic web — a unified wp-admin screen that consolidates SEO, sitemaps, AI discoverability, and site verification settings across all site types (self-hosted, Atomic/WoW, Simple).
This package is built up across a stacked series of PRs (see #48154 for the split plan). It currently provides, on a wp-admin page registered at admin.php?page=jetpack-seo (gated on the seo-tools module being active):
- Overview — a dashboard with Site visibility, Site verification, and Content SEO cards. The visibility/verification cards deep-link into the matching Settings sections; Content SEO shows factual coverage rings (custom description, schema type set) with literal counts.
- Settings — search-engine indexing, the XML sitemap, canonical URLs, the title structure for all page types (front page, posts, pages, tags, archives), the front-page description, and site verification codes, plus read-only search & social previews of the home page (Google / Facebook / X).
- Content — a DataViews list of published posts and pages showing each post's SEO state (schema type, meta description set, search visibility). Rows link to the Gutenberg editor and open a per-post SEO inspector (custom title, description, schema type, noindex, SERP preview) in the dashboard sidebar. Filters for post type, schema type, description state, and search visibility run client-side over the merged set. The Schema type control and SEO columns also appear in the block editor and
edit.phppost-list tables respectively. JSON-LD (Article / FAQ) is emitted onwp_head. - AI — the AI SEO Enhancer toggle.
(llms.txt and AI-crawler management land in separate Phase 1 projects.)
Architecture
Built as a @wordpress/build (wp-build) dashboard, the pattern shared by recently-shipped Jetpack admin pages (Podcast, Scan, Forms, Newsletter):
- PHP:
Automattic\Jetpack\SEO\Initializerregisters the admin menu viaAdmin_Menu::add_menu(), loads wp-build's generated bundle (build/build.php+WP_Build_Polyfills::register()), and bootstraps the app's initial state. Because the user-facing slug (jetpack-seo) differs from wp-build's page slug (jetpack-seo-dashboard), the screen id is aliased oncurrent_screenso wp-build's auto-generated enqueue callback fires. - React: an ES-module bundle. Each top-level view (Overview, Settings, Content, AI) is its own
@wordpress/routeroute underroutes/, exporting astage— the per-route pattern shared with Forms. The Content route also exports aninspector(the per-post SEO editor), rendered in wp-build's native Stage/Inspector sidebar when a post is selected (?postId=). A shared shell (_inc/dashboard/dashboard-page+dashboard-nav) renders theAdminPagechrome from@automattic/jetpack-componentsand the route-based tab navigation, so every route gets the same header, tabs and footer. UI uses@wordpress/components,@wordpress/ui, and@wordpress/icons. - Data: read-only initial state for the routes is bootstrapped server-side onto
window.JetpackScriptData.seo.{overview,settings,google_verify,ai,site}via thejetpack_admin_js_script_datafilter (Initializer::inject_script_data()) and read synchronously on the client through@automattic/jetpack-script-data. wp-build pages load as ES modules, sowp_localize_scriptcan't bootstrap them — the script-data layer is the supported channel. The Content route fetches posts and pages live from core/wp/v2/postsand/wp/v2/pages(no custom endpoint), with SEO meta returned via registeredshow_in_restpost meta; the inspector writes through the same core post endpoint. The package registers no REST controller of its own: Settings writes reuse the existing/jetpack/v4/settingsendpoint (and core/wp/v2/settingsfor theblog_publicsearch-engine-visibility option).
Development
# Build once (from the repo root) jetpack build packages/seo # Watch mode pnpm --filter='@automattic/jetpack-seo' run watch # Typecheck pnpm --filter='@automattic/jetpack-seo' run typecheck # Tests pnpm --filter='@automattic/jetpack-seo' run test
The built JS/CSS lives in build/ and is included in the vendored Jetpack plugin distribution via .gitattributes (/build/** production-include).
