Skip to content

Commit

Permalink
docs: remove rate limit documentation for now
Browse files Browse the repository at this point in the history
Remove the `FETCH_SINGLE_PAGE_STARS` from documentation for now since it
might confuse people.
  • Loading branch information
rickstaa committed Jan 21, 2023
1 parent ca75837 commit a79624e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Visit <https://indiafightscorona.giveindia.org> and make a small donation to hel

# Features

- [Important Notice](#important-notice)
- [GitHub Stats Card](#github-stats-card)
- [GitHub Extra Pins](#github-extra-pins)
- [Top Languages Card](#top-languages-card)
Expand All @@ -94,12 +93,7 @@ Visit <https://indiafightscorona.giveindia.org> and make a small donation to hel
- [Language Card Exclusive Options](#language-card-exclusive-options)
- [Wakatime Card Exclusive Option](#wakatime-card-exclusive-options)
- [Deploy Yourself](#deploy-on-your-own-vercel-instance)
- [Disable rate limit protections](#disable-rate-limit-protections)

# Important Notice

> **Warning**
> Since the GitHub API only [allows 5k requests per hour per user account](https://docs.github.com/en/graphql/overview/resource-limitations), the public Vercel instance hosted on `https://github-readme-stats.vercel.app/api` could possibly hit the rate limiter (see #1471). Because of this, we have limited the public API to only fetch the first 100 repositories with stars and languages. As a result, for a very active GitHub account, the language, stars and commits results might be off when using the public API. You can disable these rate limit protections by deploying [your own Vercel instance](#deploy-on-your-own-vercel-instance), so in that case, you will have more accurate results and do not have to worry about downtime! :rocket:
- [Keep your fork up to date](#keep-your-fork-up-to-date)

# GitHub Stats Card

Expand Down Expand Up @@ -360,7 +354,7 @@ Use [show_owner](#customization) variable to include the repo's owner username
The top languages card shows a GitHub user's most frequently used top language.

> **Note**
> Top Languages does not indicate my skill level or anything like that; it's a GitHub metric to determine which languages have the most code on GitHub. It is a new feature of github-readme-stats.\_
> Top Languages does not indicate my skill level or anything like that; it's a GitHub metric to determine which languages have the most code on GitHub. It is a new feature of github-readme-stats.
### Usage

Expand Down Expand Up @@ -504,8 +498,15 @@ By default, GitHub does not lay out the cards side by side. To do that, you can

## Deploy on your own Vercel instance

As explained [above](#important-notice), the GitHub API only [allows 5k requests per hour per user account](https://docs.github.com/en/graphql/overview/resource-limitations), the public Vercel instance hosted on `https://github-readme-stats.vercel.app/api` could possibly hit the rate limiter (see #1471). Because of this, we have limited the public API to only fetch the first 100 repositories with stars and languages. As a result, for a very active GitHub account, the language, stars and commits results might be off when using the public API. You can disable these [rate limit protections](#disable-rate-limit-protections) using Vercel environment variables when you deploy [your own Vercel instance](#deploy-on-your-own-vercel-instance), so in that case, you will have more accurate results and do not have to worry about downtime! Click on [the deploy button](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats) and follow the video or step-to-step guides below to get started! :rocket:
#### [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107)

> **Warning**
> If you are on the [hobby (i.e. free)](https://vercel.com/pricing) Vercel plan, please make sure you change the `maxDuration` parameter in the [vercel.json](https://github.com/anuraghazra/github-readme-stats/blob/master/vercel.json) file from `30` to `10` (see [#1416](https://github.com/anuraghazra/github-readme-stats/issues/1416#issuecomment-950275476) for more information).
Since the GitHub API only allows 5k requests per hour, my `https://github-readme-stats.vercel.app/api` could possibly hit the rate limiter. If you host it on your own Vercel server, then you do not have to worry about anything. Click on the deploy button to get started!

> **Note**
> Since [#58](https://github.com/anuraghazra/github-readme-stats/pull/58), we should be able to handle more than 5k requests and have fewer issues with downtime :grin:.
[![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats)

> **Warning**
Expand Down

0 comments on commit a79624e

Please sign in to comment.