Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think the GitHub archive project can be of help: <a href="http://www.githubarchive.org/" rel="noreferrer">http://www.githubarchive.org/</a></p> <p>It stores all the public events from the GitHub timeline and exposes them for processing. The events contain info about the repositories, so you should be able to pull the data out of there to fit your use-case.</p> <p>For example, I've just used the following query in the BigQuery console ( <a href="https://bigquery.cloud.google.com/?pli=1" rel="noreferrer">https://bigquery.cloud.google.com/?pli=1</a> ) to find out the number of forks of the joyent/node repository for the date 2012-03-15:</p> <pre><code>SELECT repository_forks, created_at FROM [publicdata:samples.github_timeline] WHERE (repository_url = "https://github.com/joyent/node") AND (created_at CONTAINS "2012-03-15") LIMIT 1 </code></pre> <p>At here are the results:</p> <pre><code>Row forks created_at 1 1579 2012-03-15 07:49:54 </code></pre> <p>Obiously, you would use the BigQuery API to do something similar (extract the data you want, fetch data for a range of dates, etc.).</p> <p>And here is a query for fetching the single largest repository (by forks) for a given date:</p> <pre><code>SELECT repository_forks, repository_url FROM [publicdata:samples.github_timeline] WHERE (created_at CONTAINS "2012-03-15") ORDER BY repository_forks DESC LIMIT 1 </code></pre> <p>Result:</p> <pre><code>Row forks repository_url 1 6341 https://github.com/octocat/Spoon-Knife </code></pre> <p>And here is the query to fetch the top 100 repositories by forks for a given date:</p> <pre><code>SELECT MAX(repository_forks) as forks, repository_url FROM [publicdata:samples.github_timeline] WHERE (created_at CONTAINS "2012-03-15") GROUP BY repository_url ORDER BY forks DESC LIMIT 100 </code></pre> <p>Result:</p> <pre><code>Row forks repository_url 1 6341 https://github.com/octocat/Spoon-Knife 2 4452 https://github.com/twitter/bootstrap 3 3647 https://github.com/mxcl/homebrew 4 2888 https://github.com/rails/rails ... </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload