Installation
A complete walkthrough of installing and configuring PageBridge for your Sanity project.
Using the monorepo
PageBridge is organized as a Turborepo monorepo. For local development or if you want full control over all packages:
git clone https://github.com/PageBridge-IO/pagebridge.git
cd pagebridge
pnpm installStart a local PostgreSQL database:
docker compose up -dCopy the environment template and fill in your values:
cp .env.example .envPush the database schema and build all packages:
pnpm db:push
pnpm buildInstalling individual packages
If you only need specific packages, install them directly:
Sanity plugin
pnpm add @pagebridge/sanityThis adds the Sanity schemas, the SearchPerformancePane component, and the RefreshQueueTool to your Studio. See Sanity plugin setup for full configuration.
CLI
pnpm add -D @pagebridge/cliThe CLI provides the pagebridge command for syncing data, listing sites, and running diagnostics.
Core (programmatic use)
pnpm add @pagebridge/core @pagebridge/dbFor custom integrations where you want to call the sync engine, decay detector, or task generator from your own code.
Peer dependencies
The Sanity plugin requires these peer dependencies (which your Sanity project should already have):
sanityv5+@sanity/uiv3+@sanity/iconsv3+reactv19+react-domv19+
Verify installation
Check that the CLI is available:
pnpm pagebridge --helpList your accessible GSC properties:
pnpm pagebridge list-sitesIf the command returns your sites, the Google service account is configured correctly. If not, see Google Service Account setup.