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

chrome-webstore-upload-keys

v1.1.5

Published

CLI tool to generate OAuth keys for the Chrome Web Store

Downloads

1,369

Readme

How to generate Google API keys

Guide and OAuth helper to generate keys

Companion to Web Store Upload.

You can follow this complete guide or the official-but-partial one at: https://developer.chrome.com/docs/webstore/using-api

[!TIP] The names you enter here don't really matter. It's an app that only you will have access to. This will take approximately 10 minutes and Google likes to change these screens often. Sorry.

  1. Visit https://console.developers.google.com/apis/credentials

  2. Create a project:

  3. Enter chrome-webstore-upload and Create

  4. Visit https://console.cloud.google.com/apis/credentials/consent

  5. Select on External and Create

  6. Only enter the Application name (e.g. chrome-webstore-upload) and required email fields, and click Save

  7. On the 3rd screen, add your own email address:

  8. Visit https://console.developers.google.com/apis/library/chromewebstore.googleapis.com

  9. Click Enable

  10. Visit https://console.developers.google.com/apis/credentials

  11. Click Create credentials > OAuth client ID:

  12. Select Desktop app, enter Chrome Webstore Upload and click Create

  13. Save your ✅ clientId and ✅ clientSecret:

  14. Visit https://console.cloud.google.com/apis/credentials/consent

  15. Click PUBLISH APP and confirm

  16. Run this CLI tool to generate the required refreshToken

    npx chrome-webstore-upload-keys

    or

    bunx chrome-webstore-upload-keys
  17. Done. Now you should have ✅ clientId, ✅ clientSecret and ✅ refreshToken. You can use these for all your extensions, but don't share them!

What the CLI tool does

  1. Requests the two keys you have
  2. Opens a local server to handle the OAuth redirect from Google's servers with an approvalCode
  3. Uses Google's oauth2 API to request a refreshToken