{"id":13825580,"url":"https://github.com/dyatko/worldstar","last_synced_at":"2025-07-08T22:31:36.109Z","repository":{"id":39738110,"uuid":"176958003","full_name":"dyatko/worldstar","owner":"dyatko","description":"Generates world map chart of GitHub stargazers","archived":false,"fork":false,"pushed_at":"2024-03-20T13:38:12.000Z","size":2278,"stargazers_count":36,"open_issues_count":33,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T04:11:48.665Z","etag":null,"topics":["chart","github","map","stargazer","statistics","visualisation","world"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/worldstar","language":"JavaScript","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/dyatko.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-21T14:09:37.000Z","updated_at":"2024-07-17T07:11:17.255Z","dependencies_parsed_at":"2024-01-16T08:59:15.260Z","dependency_job_id":"38d5d98f-df6c-4dfd-89fa-77c479f9bf63","html_url":"https://github.com/dyatko/worldstar","commit_stats":{"total_commits":22,"total_committers":3,"mean_commits":7.333333333333333,"dds":"0.40909090909090906","last_synced_commit":"02390b1043def14c962ea888bb0c6eb1bd96aa96"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyatko%2Fworldstar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyatko%2Fworldstar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyatko%2Fworldstar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyatko%2Fworldstar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyatko","download_url":"https://codeload.github.com/dyatko/worldstar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225470631,"owners_count":17479366,"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","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":["chart","github","map","stargazer","statistics","visualisation","world"],"created_at":"2024-08-04T09:01:23.686Z","updated_at":"2024-11-20T04:30:36.042Z","avatar_url":"https://github.com/dyatko.png","language":"JavaScript","readme":"\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://www.npmjs.com/worldstar\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/worldstar.svg?label=%20\u0026style=flat-square\" alt=\"World map NPM package\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/worldstar\"\u003e\u003cimg src=\"https://img.shields.io/npm/dw/worldstar.svg?style=flat-square\" alt=\"Download worldstar\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://libraries.io/npm/worldstar/dependents\"\u003e\u003cimg src=\"https://img.shields.io/librariesio/dependents/npm/worldstar.svg?style=flat-square\" alt=\"Dependents\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://codeclimate.com/github/dyatko/worldstar/issues\"\u003e\u003cimg src=\"https://img.shields.io/codeclimate/tech-debt/dyatko/worldstar.svg?style=flat-square\" alt=\"Technical debt\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Generates world map chart of GitHub stargazers\n\nThese are first 5,000 stargazers of [D3](https://github.com/d3/d3), one of the major Worldstar dependencies.\n\n![github stargazers map](worldstar.svg?sanitize=true)\n\n### Usage\n\nThe tool requires few API keys from you:\n\n- [GitHub API](https://github.com/settings/tokens)\n- [Google Maps API](https://cloud.google.com/maps-platform/#get-started)\n\n```console\nuser@machine:~$ npx worldstar --help\nOptions:\n  --version       Show version number                                  [boolean]\n  --help          Show help                                            [boolean]\n  --github-token  GitHub token, alternatively GITHUB_TOKEN env var    [required]\n  --google-token  Google API token, alternatively GOOGLE_TOKEN env var[required]\n  --repo, -r      GitHub repo to parse, e.g. dyatko/arkit             [required]\n  --max, -m       Maximum number of stargazers due to GitHub allows up to 5000\n                  requests/hour                       [required] [default: 1000]\n  --color, -c     Country color                  [required] [default: \"#24292e\"]\n  --output, -o    Output path              [required] [default: \"worldstar.svg\"]\n```\n\n```sh\n# Run it straight away\nnpx worldstar --github-token=... --google-token=...  --repo user/repo\n\n# You can also pass secrets as environment variables\nGITHUB_TOKEN=... GOOGLE_TOKEN=... npx worldstar --repo user/repo\n\n# Or add it to your project as a dev dependency\nnpm install worldstar --save-dev\nyarn add worldstar --dev\n```\n\nBesides nice SVG image, you will get some stats in your console:\n\n```console\n┌─────────┬──────┬───────┬────────┬────────┐\n│ (index) │ name │ stars │ weight │ whiten │\n├─────────┼──────┼───────┼────────┼────────┤\n│    0    │ 'US' │ 1696  │   1    │   0    │\n│    1    │ 'GB' │  245  │  0.97  │  0.02  │\n│    2    │ 'DE' │  237  │  0.95  │  0.03  │\n│    3    │ 'CN' │  183  │  0.92  │  0.04  │\n│    4    │ 'CA' │  168  │  0.89  │  0.05  │\n│    5    │ 'FR' │  118  │  0.86  │  0.07  │\n│    6    │ 'AU' │  103  │  0.84  │  0.08  │\n│    7    │ 'JP' │  87   │  0.81  │  0.09  │\n│    8    │ 'BR' │  75   │  0.78  │  0.11  │\n│    9    │ 'NL' │  65   │  0.76  │  0.12  │\n│   10    │ 'IN' │  56   │  0.73  │  0.14  │\n│   11    │ 'ES' │  55   │  0.7   │  0.15  │\n│   12    │ 'RU' │  53   │  0.68  │  0.16  │\n│   13    │ 'CH' │  45   │  0.65  │  0.17  │\n│   14    │ 'SE' │  41   │  0.62  │  0.19  │\n│   15    │ 'NO' │  36   │  0.59  │  0.21  │\n...\n```\n\n##### In case you wonder, the tool architecture diagram (generated by [arkit](https://github.com/dyatko/arkit))\n\n![arkit diagram](arkit.svg?sanitize=true)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyatko%2Fworldstar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyatko%2Fworldstar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyatko%2Fworldstar/lists"}