PageBridge Documentation
PageBridge connects Google Search Console data to Sanity CMS. It syncs search analytics, detects content performance decay, and generates actionable refresh tasks — all visible inside Sanity Studio.
What is PageBridge?
PageBridge is an open-source integration platform designed for content teams that use Sanity CMS. It bridges the gap between search performance data locked inside Google Search Console and the editorial workflows you manage in Sanity Studio.
With PageBridge, your content team can:
- See search metrics per document — clicks, impressions, CTR, average position, and weekly trends displayed directly in the Sanity document editor.
- Detect content decay automatically — position drops, low CTR on high-ranking pages, and traffic decline are flagged with severity levels.
- Manage refresh tasks — a built-in queue shows which pages need attention, with snooze, dismiss, and completion workflows.
- Monitor index status — check whether Google has indexed each page, with crawl timestamps and coverage state.
Architecture
PageBridge is structured as a monorepo with four main packages:
- @pagebridge/core — The sync engine, GSC client, decay detector, URL matcher, and task generator.
- @pagebridge/db — PostgreSQL schema and Drizzle ORM layer for storing analytics data.
- @pagebridge/sanity — Sanity Studio v3 plugin with schemas, views, and tools.
- @pagebridge/cli — Command-line interface for running syncs and diagnostics.
Explore the docs
Get PageBridge running in under 5 minutes with the essentials.
Add search performance data and refresh tasks to Sanity Studio.
Sync data, diagnose URL matching, and manage sites from the terminal.
Understand URL matching, decay detection, and how refresh tasks work.
Use PageBridge programmatically with the core TypeScript API.
Requirements
- Node.js 18+
- pnpm 9+
- PostgreSQL database
- Google Cloud project with Search Console API enabled
- Sanity project with a deployed Studio (v3+)