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 🙏

© 2024 – Pkg Stats / Ryan Hefner

gsc-cli

v0.1.0

Published

Google Search Console and Indexing API with CLI interface

Downloads

14

Readme

Google Search Console and Indexing API with CLI interface

This package allows you to manage your Google Search Console and Indexing API through cli interface.

Build and Test Release Version MIT License

The use of Indexing API, is inspired by RankMath WordPress plugin, you can follow the steps there sto setup the service account on your Google cloud project.

Requirements

  • Node.js 10 or above

Install

  1. npm install -g gsc-cli.
  2. Follow the steps to set up your Google cloud service account, see the how to below.
  3. Run gsc config setup --jsonFile=<path to file>, and use your api token.
  4. Run gsc --help for all available commands.

Steps to set up Google Cloud API

  1. Create your Google cloud account if you don't have one.
  2. Feel free to create a new project or use existing one.
  3. Enable Google Indexing API, click here to automatically set it up.
  4. Now create a service account
  5. Select and copy the whole Service Account ID (the one that looks like an email address) because you will need it later.
  6. Now create the API Key in JSON format (you need this for authentication)
  7. Add the Service Account as an owner of your Google Search Console Property
  8. From Search Console > Settings > Users and Permissions, choose the "Manage property owners" from the main user.
  9. Add owner with the email address you copy before for the search console property
  10. That's it
  11. Now from you cli, run gsc config setup --jsonFile=<path to json file>
  12. Now the cli package is ready to use

Documentation

Documentation is available at the wiki page for all the available commands and the optional arguments.

Contributing

Pull requests and feedback are welcome. Contributing guideline will be added later.

Disclaimer

This tool will only give the signal to Google Indexing API that URL has content updated. It will not guarantee that Google crawl that immediately. Read more about this Indexing API

Changelog

A complete listing of all notable changes to this package in CHANGELOG.md.