Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

dukeluo/github-readme-stats-badges

Repository files navigation

⚠️ ⚠️ ⚠️

These endpoints will be descraped. Please use Shields.io's built-in npm (by author) endpoint and GitHub User's stars endpoint.

Github Readme Stats Badges

Enhance your GitHub Readme with stats badges such as total downloads of npm packages or number of GitHub Stars.

How to use

npm Packages Downloads

Endpoint

https://github-readme-stats-badges.vercel.app/api/downloads?author={npm-username}

Markdown

![](https://img.shields.io/badge/dynamic/json?label={label}&query=$.count&url=https://github-readme-stats-badges.vercel.app/api/downloads?author={npm-username})

Example

![](https://img.shields.io/badge/dynamic/json?label=npm%20downloads&query=$.count&url=https://github-readme-stats-badges.vercel.app/api/downloads?author=dukeluo)

GitHub Stars

Endpoint

https://github-readme-stats-badges.vercel.app/api/github/stars?user={github-username}

Markdown

![](https://img.shields.io/badge/dynamic/json?label={label}&query=$.count&url=https://github-readme-stats-badges.vercel.app/api/github/stars?user={github-username})

Example

![](https://img.shields.io/badge/dynamic/json?label=github%20stars&query=$.count&url=https://github-readme-stats-badges.vercel.app/api/github/stars?user=dukeluo)