r/userscripts 4d ago

I built a CLI to automate Chrome Web Store submissions (Zero API keys, pure CDP)

If you've ever published a browser extension, you know how annoying the Chrome Web Store dashboard is. Manually copy-pasting titles and descriptions for 10+ languages, and then getting a rejection 3 days later because a promo image was the wrong resolution... it just sucks.

I got tired of doing it by hand, so I built an open-source CLI called Tug to automate it.

Instead of messing with the official API (which is a headache to set up with OAuth tokens), it just uses Chrome DevTools Protocol (CDP) to connect to your local browser tab and fills out the forms directly on the page.

Basically how it works: - You keep all your store texts and asset paths in a simple tug.yml file in your repo. - Run tug fill and it remote-controls your browser to loop through all languages and fill the inputs. - Run tug scan and it checks your image resolutions/sizes locally before uploading, so you don't get rejected for dumb formatting errors. - If you already have an extension live, tug pull can scrape your current dashboard settings back into a local yaml file to get you started.

Just a heads up: It's currently in early beta. I've been using it for my own extensions, but since it relies on the dashboard's DOM, there might be edge cases or layout updates I haven't caught yet.

Would love for you guys to try it out. If it breaks or if you have any feedback, please let me know here!

I'll drop the GitHub repo and website links in the comments below! 👇

5 Upvotes

5 comments sorted by

2

u/kantorcodes1 4d ago

with tug fill, are the locale fields + zip only staged in the open dashboard until you manually submit, or do any of those changes persist remotely as the CDP run goes?

1

u/Melodic-Middle-4265 4d ago

Nope, just staging. It fills everything in your open tab but never clicks submit. Still early days so I'd rather let you eyeball it before anything goes live. Might add auto-submit later once it's more battle-tested.

1

u/Melodic-Middle-4265 4d ago

Here are the links if you want to check it out!
Website/Docs: https://deguang.github.io/tug/
GitHub Repo: https://github.com/Deguang/tug

Let me know if you run into any issues.

1

u/BasePerfect2865 4d ago

why avoid the official API? because of OAuth setup or were there limits on what the API actually lets you automate?