Skip to content

feat: add ability to skip fetching all stargazers #15

@anuraghazra

Description

@anuraghazra

As pointed out in this tweet, if you have many stars fetching all the content takes quite a while, and it could also hit a rate limit on github API.

And for a 15sec video maybe it won't even be that noticeable if say we try to render all unique 60k stargazers,
Instead we can add a flag or a "maxFetchCount" param to limit the fetch and after a while the video can just loop over or randomly pick stargazers in the middle to pad out the 15sec.


For this to work I think a better approach would be:

Say I have 50k stars:

  • We fetch first 10k stargazers
  • Pad out the middle with random stargazers
  • We fetch last 10k stargazers

We put these first/last stargazers as is so that the order is accurate in the video, and in the middle we can pad the stargazers by randomly picking stargazers.

LMK if this is something you will be interested in or you think it's worth adding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions