{"id":36850525,"url":"https://github.com/stn1slv/markdown-github-stars-updater","last_synced_at":"2026-01-12T14:37:12.085Z","repository":{"id":189348441,"uuid":"680505795","full_name":"stn1slv/markdown-github-stars-updater","owner":"stn1slv","description":"Markdown GitHub Stars Updater","archived":false,"fork":false,"pushed_at":"2025-07-21T10:50:58.000Z","size":31,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-09T14:02:56.508Z","etag":null,"topics":["awesome","awesome-list","github","github-stars","markdown"],"latest_commit_sha":null,"homepage":"","language":"Go","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/stn1slv.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,"zenodo":null}},"created_at":"2023-08-19T13:15:58.000Z","updated_at":"2025-07-21T10:49:44.000Z","dependencies_parsed_at":"2024-05-08T00:05:10.788Z","dependency_job_id":"77f6e42e-5ce9-4798-ba89-aa74994e66c9","html_url":"https://github.com/stn1slv/markdown-github-stars-updater","commit_stats":null,"previous_names":["stn1slv/github-markdown-stars-updater"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/stn1slv/markdown-github-stars-updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stn1slv%2Fmarkdown-github-stars-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stn1slv%2Fmarkdown-github-stars-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stn1slv%2Fmarkdown-github-stars-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stn1slv%2Fmarkdown-github-stars-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stn1slv","download_url":"https://codeload.github.com/stn1slv/markdown-github-stars-updater/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stn1slv%2Fmarkdown-github-stars-updater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["awesome","awesome-list","github","github-stars","markdown"],"created_at":"2026-01-12T14:37:12.003Z","updated_at":"2026-01-12T14:37:12.070Z","avatar_url":"https://github.com/stn1slv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Markdown GitHub Stars Updater\n\nThis Go program reads a Markdown file containing GitHub repository links and updates the links with information about star counts. \n\n#### Example\nThe initial part of the markdown file:\n\u003e- [APITree](https://www.apitree.com/) - A tool for managing and sharing API specifications, with version control, API testing automation, and integration with popular API tools.\n\u003e- [DapperDox](https://github.com/DapperDox/dapperdox) - An open-source API documentation generator and server for OpenAPI/Swagger specifications, with customizable documentation, automated updates, and easy sharing.\n\u003e- [OpenAPI Explorer](https://github.com/Rhosys/openapi-explorer) - A tool for generating user interfaces from OpenAPI specifications, making it easier for software engineers to visualize and interact with APIs.\n\u003e- [RapiDoc](https://github.com/rapi-doc/RapiDoc) - A tool that generates customizable, interactive API documentation from OpenAPI Specification, with a range of design options.\n\u003e- [Redoc](https://github.com/Redocly/redoc) - An open-source tool for generating documentation from OpenAPI (fka Swagger) definitions, with customizable themes, language support, and branding.\n\nAfter processing:\n\u003e- [APITree](https://www.apitree.com/) - A tool for managing and sharing API specifications, with version control, API testing automation, and integration with popular API tools.\n\u003e- [DapperDox (⭐377)](https://github.com/DapperDox/dapperdox) - An open-source API documentation generator and server for OpenAPI/Swagger specifications, with customizable documentation, automated updates, and easy sharing.\n\u003e- [OpenAPI Explorer (⭐213)](https://github.com/Rhosys/openapi-explorer) - A tool for generating user interfaces from OpenAPI specifications, making it easier for software engineers to visualize and interact with APIs.\n\u003e- [RapiDoc (⭐1.3k)](https://github.com/rapi-doc/RapiDoc) - A tool that generates customizable, interactive API documentation from OpenAPI Specification, with a range of design options.\n\u003e- [Redoc (⭐20k)](https://github.com/Redocly/redoc) - An open-source tool for generating documentation from OpenAPI (fka Swagger) definitions, with customizable themes, language support, and branding.\n\n## Usage\nThe program updates GitHub links in a Markdown file with their current star counts.\nYou must provide a GitHub token via the `GITHUB_TOKEN` environment variable. The value should be a personal access token with read-only permissions.\nGitHub rate limits apply when fetching repository information.\n#### Build from sources\n\n1. Clone the repository:\n```sh\ngit clone https://github.com/stn1slv/markdown-github-stars-updater.git\ncd markdown-github-stars-updater\n```\n\n2. Build and run the program:\n```sh\ngo build\n./markdown-github-stars-updater [flags] path/to/your/markdown/file.md\n```\nReplace path/to/your/markdown/file.md with the path to your Markdown file.\nAvailable flags:\n* `-out` \u0026ndash; write output to the specified file instead of overwriting the input.\n* `-dry-run` \u0026ndash; print the updated Markdown to stdout without modifying any files.\n\nRun the tool separately for each Markdown file you want to update. The current implementation relies on a regular expression to find `github.com` links, so unusual Markdown constructs may not be detected.\n\n#### Download compiled\n\nThe last compiled version is available in [the releases section](https://github.com/stn1slv/markdown-github-stars-updater/releases/latest).\n\n#### GitHub Actions pipeline\n\nPlease see [the pipeline example](https://github.com/stn1slv/awesome-integration/blob/main/.github/workflows/github-stars.yml) for my awesome-integration project.\n\n## Description\nThis program utilizes the GitHub API to fetch star counts for GitHub repositories and updates the links in the provided Markdown file. It supports different star count formats based on the number of stars:\n\n- If the star count is less than 1000, the exact star count is shown (e.g., \"⭐35\").\n- If the star count is between 1000 and 9999, it is displayed in the format \"⭐1.1k\" for 1100 stars.\n- If the star count is 10000 or more, it is displayed in the format \"⭐10k\" for 10000 stars.\n## Requirements\n- Go programming language (https://golang.org/dl/)\n## Configuration\nSet the `GITHUB_TOKEN` environment variable with a personal access token so the tool can query the GitHub API. The requests are subject to GitHub's rate limits.\n\n## License\nThis project is licensed under the MIT License. See [LICENSE](LICENSE) for more information.\n\n## Acknowledgements\nSpecial thanks to the GitHub community and open-source contributors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstn1slv%2Fmarkdown-github-stars-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstn1slv%2Fmarkdown-github-stars-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstn1slv%2Fmarkdown-github-stars-updater/lists"}