npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

search-console-cli

v1.9.2

Published

Bun CLI for Google Search Console API

Readme

Google Search Console CLI (Bun)

A Bun-powered command line app for Google Search Console data, SEO diagnostics, and automation workflows.

What it does

  • Query Search Console analytics with filters and dimensions.
  • Analyze trends, anomalies, drop attribution, and forecasts.
  • Manage sites and sitemaps.
  • Inspect indexing status and run PageSpeed checks.
  • Generate SEO opportunity reports (striking distance, low CTR, cannibalization, quick wins).

Prerequisites

  • Bun installed (bun --version)
  • A Google Cloud service account JSON key
  • Service account added to your Search Console property

Quick Start

  1. Install dependencies:
bun install
  1. Build:
bun run build
  1. Run setup wizard:
bun run dist/setup.js
  1. Export credentials path:
export GOOGLE_APPLICATION_CREDENTIALS="/absolute/path/to/service-account.json"
  1. Run a command:
bun run dist/index.js sites_list

CLI Usage

search-console <command> [--flag value]
search-console <command> --input '{"key":"value"}'

Examples

search-console sites_list
search-console analytics_performance_summary --site-url https://example.com --days 28
search-console analytics_query --input '{"siteUrl":"https://example.com","startDate":"2026-01-01","endDate":"2026-01-31","dimensions":["query"],"limit":10}'
search-console seo_quick_wins --site-url https://example.com --days 28 --min-impressions 100

Command groups

  • sites_*: list/add/delete/get properties
  • sitemaps_*: list/submit/delete/get sitemaps
  • analytics_*: query, summaries, trends, anomalies, advanced time-series
  • inspection_*: URL indexing inspection
  • pagespeed_*: Lighthouse and Core Web Vitals
  • seo_*: opportunity and recommendation workflows
  • seo_primitive_*: low-level utility SEO calculations
  • schema_validate: Schema.org validation

Development

bun run typecheck
bun run test

License

MIT