You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: enable multi-page stars' fetching for private vercel instances
This commit enables multi-page stars' support from fetching on private Vercel
instances. This feature can be disabled on the public Vercel instance by adding
the `FETCH_SINGLE_PAGE_STARS=true` as an env variable in the public Vercel
instance. This variable will not be present when people deploy their own Vercel
instance, causing the code to fetch multiple star pages.
> 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. These limits do not apply when you deploy [your own Vercel instance](#deploy-on-your-own-vercel-instance), so in that case, you do not have to worry about anything! :rocket:
101
+
96
102
# GitHub Stats Card
97
103
98
104
Copy-paste this into your markdown content, and that is it. Simple!
@@ -167,13 +173,13 @@ You can customize the appearance of your `Stats Card` or `Repo Card` however you
167
173
-`border_color` - Card's border color _(hex color)_. Default: `e4e2e2` (Does not apply when `hide_border` is enabled).
168
174
-`bg_color` - Card's background color _(hex color)_**or** a gradient in the form of _angle,start,end_. Default: `fffefe`
169
175
-`hide_border` - Hides the card's border _(boolean)_. Default: `false`
170
-
-`theme` - name of the theme, choose from [all available themes](./themes/README.md). Default: `default` theme.
176
+
-`theme` - name of the theme, choose from [all available themes](./themes/README.md). Default: `default` theme.
171
177
-`cache_seconds` - set the cache header manually _(min: 7200, max: 86400)_. Default: `14400 seconds (4 hours)`.
172
178
-`locale` - set the language in the card _(e.g. cn, de, es, etc.)_. Default: `en`.
173
179
-`border_radius` - Corner rounding on the card. Default: `4.5`.
174
180
175
181
> **Warning**
176
-
> We use caching to decrease the load on our servers (see https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-1271551425). Our cards have a default cache of 4 hours (14400 seconds). Also, note that the cache is clamped to a minimum of 4 hours and a maximum of 24 hours.
182
+
> We use caching to decrease the load on our servers (see <https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-1271551425>). Our cards have a default cache of 4 hours (14400 seconds). Also, note that the cache is clamped to a minimum of 4 hours and a maximum of 24 hours.
177
183
178
184
##### Gradient in bg_color
179
185
@@ -261,7 +267,7 @@ Use [show_owner](#customization) variable to include the repo's owner username
261
267
The top languages card shows a GitHub user's most frequently used top language.
262
268
263
269
> **Note**
264
-
> 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._
270
+
> 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.\_
265
271
266
272
### Usage
267
273
@@ -405,17 +411,14 @@ By default, GitHub does not lay out the cards side by side. To do that, you can
405
411
406
412
## Deploy on your own Vercel instance
407
413
408
-
#### [Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107)
414
+
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. These limits do not apply when you deploy [your own Vercel instance](#deploy-on-your-own-vercel-instance), so in that case, you do not have to worry about anything! Click on the deploy button and follow the video or step-to-step guides below to get started! :rocket:
415
+
416
+
[](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats)
409
417
410
418
> **Warning**
411
419
> 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).
412
420
413
-
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!
414
-
415
-
> **Note**
416
-
> 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:.
417
-
418
-
[](https://vercel.com/import/project?template=https://github.com/anuraghazra/github-readme-stats)
421
+
#### :film_projector:[Check Out Step By Step Video Tutorial By @codeSTACKr](https://youtu.be/n6d4KHSKqGk?t=107)
419
422
420
423
<details>
421
424
<summary><b>:hammer_and_wrench: Step-by-step guide on setting up your own Vercel instance</b></summary>
0 commit comments