{"id":23200912,"url":"https://github.com/naokikimura/chrome-web-store-api","last_synced_at":"2025-08-18T23:32:46.688Z","repository":{"id":41150446,"uuid":"235804000","full_name":"naokikimura/chrome-web-store-api","owner":"naokikimura","description":"Chrome Web Store API client for Node.js","archived":false,"fork":false,"pushed_at":"2025-01-17T09:11:01.000Z","size":295,"stargazers_count":3,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-08-09T03:14:21.422Z","etag":null,"topics":["chrome-web-store"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/chrome-web-store-api","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naokikimura.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-23T13:48:24.000Z","updated_at":"2025-01-17T09:11:03.000Z","dependencies_parsed_at":"2023-01-31T14:25:20.376Z","dependency_job_id":null,"html_url":"https://github.com/naokikimura/chrome-web-store-api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/naokikimura/chrome-web-store-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naokikimura%2Fchrome-web-store-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naokikimura%2Fchrome-web-store-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naokikimura%2Fchrome-web-store-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naokikimura%2Fchrome-web-store-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naokikimura","download_url":"https://codeload.github.com/naokikimura/chrome-web-store-api/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naokikimura%2Fchrome-web-store-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269687930,"owners_count":24459389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome-web-store"],"created_at":"2024-12-18T15:13:17.961Z","updated_at":"2025-08-18T23:32:46.407Z","avatar_url":"https://github.com/naokikimura.png","language":"TypeScript","readme":"# chrome-web-store-api\n\n[![npm version](https://badge.fury.io/js/chrome-web-store-api.svg)](https://badge.fury.io/js/chrome-web-store-api) [![CircleCI](https://circleci.com/gh/naokikimura/chrome-web-store-api.svg?style=svg)](https://circleci.com/gh/naokikimura/chrome-web-store-api) [![Known Vulnerabilities](https://snyk.io/test/github/naokikimura/chrome-web-store-api/badge.svg?targetFile=package.json)](https://snyk.io/test/github/naokikimura/chrome-web-store-api?targetFile=package.json)\n\n[Chrome Web Store API](https://developer.chrome.com/webstore/api_index) client for Node.js\n\n## Installation\n\n```sh\nnpm install chrome-web-store-api\n```\n\n## Configuration\n\nRefer to [this page](https://developer.chrome.com/webstore/using_webstore_api) to get the response of credentials and access token.\n\nSet that value in an environment variable.\n- `CHROME_WEB_STORE_API_CREDENTIAL`\n- `CHROME_WEB_STORE_API_ACCESS_TOKEN_RESPONSE`\n\nFor example:\n```sh\nexport CHROME_WEB_STORE_API_CREDENTIAL=$( cat \u003c\u003cEOF | tr -d ' \\r\\n'\n{\n  \"installed\": {\n    \"client_id\": \"999999999999-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com\",\n    \"project_id\": \"foo-bar-baz\",\n    \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n    \"token_uri\": \"https://oauth2.googleapis.com/token\",\n    \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n    \"client_secret\": \"abcdefghijklmnopqrstuvwx\",\n    \"redirect_uris\": [\n      \"urn:ietf:wg:oauth:2.0:oob\",\n      \"http://localhost\"\n    ]\n  }\n}\nEOF\n)\n\nexport CHROME_WEB_STORE_API_ACCESS_TOKEN_RESPONSE=$(cat \u003c\u003cEOF | tr -d ' \\r\\n'\n{\n  \"access_token\": \"vpvEyHWpX^{CQC`fREmnwCHb`ejN`ox^XxEbYDKXmghM`]lrL{ddTrxdgtgLEvAeX\\oP]NkRgjFcvNE_enJZI`BNcvZScQOA\\BAA|NSzB_Xg_ie_yXLrQ[sII_]r|jW{nzZULNP\",\n  \"expires_in\": 3599,\n  \"refresh_token\": \"riM{R[Lir|hyHT|DNeWZhQzVpOjvTbTMayHZdfNFlR{TB]KFSh^DyjNZySyj|aWYajb]dNCIRTZXmKKuB`bbUyoLRGkPWao|pibdNSk\",\n  \"scope\": \"https://www.googleapis.com/auth/chromewebstore\",\n  \"token_type\": \"Bearer\"\n}\nEOF\n)\n```\n\n# Usage\n\nFor example:\n\n```js\nconst ChromeWebStore = require('chrome-web-store-api');\nconst fs = require('fs');\n\nconst chromeWebStore = new ChromeWebStore(\n  JSON.parse(process.env.CHROME_WEB_STORE_API_CREDENTIAL || ''),\n  JSON.parse(process.env.CHROME_WEB_STORE_API_ACCESS_TOKEN_RESPONSE || ''),\n);\nconst itemId = 'ID of your Chrome extension';\nconst packageFile = 'your-chrome-extension.zip';\n\n(async () =\u003e {\n  try {\n    const item = await (new chromeWebStore.Item(itemId)).fetch();\n\n    {\n      const readStream = fs.createReadStream(packageFile);\n      const result = await item.upload(readStream);\n      if (result.uploadState === 'FAILURE') {\n        const message = (result.itemError || []).map(error =\u003e error.error_detail).join('\\n');\n        throw new Error(message);\n      }\n      console.log('Upload succeeded.');\n    }\n\n    {\n      const result = await item.publish();\n      (result.statusDetail || []).forEach(detail =\u003e console.log(detail));\n    }\n  } catch (error) {\n    console.error(error);\n  }\n})();\n```\n\n## Contributing\nBug reports and pull requests are welcome on GitHub at https://github.com/naokikimura/chrome-web-store-api\n\n## License\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaokikimura%2Fchrome-web-store-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaokikimura%2Fchrome-web-store-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaokikimura%2Fchrome-web-store-api/lists"}