joeyespo / grip

Preview GitHub README.md files locally before committing them.
MIT License
6.42k stars 422 forks source link

GitHub API Rate Limit #381

Open jstnbr opened 4 months ago

jstnbr commented 4 months ago

With basic auth still hit an hourly rate limit. Does grip hit their API on every refresh just to make sure styles are up-to-date? What if I refresh 20 seconds later, I don't think the API changed much.

Is there a way to just use the last version of the styles it fetched? Maybe an --offline flag? Could run grip offline and use whatever styles it grabbed last - no more rate limit.

Is that possible?

Note, I did read this and that's why I wonder if it hits their API on every refresh.

Grip strives to be as close to GitHub as possible. To accomplish this, grip uses GitHub's Markdown API so that changes to their rendering engine are reflected immediately without requiring you to upgrade grip. However, because of this you may hit the API's hourly rate limit. If this happens, grip offers a way to access the API using your credentials to unlock a much higher rate limit.

Screen Shot 2024-02-24 at 9 40 37 AM
seandotcom commented 3 months ago

Having this issue as well, even when using credentials / tokens. Seems to have been this way for a day+ now.