title: Can you get the number of lines of code from a GitHub repository?
body: <p>In a GitHub repository you can see “language statistics”, which displays the <em>percentage</em> of the project that’s written in a language. It doesn’t, however, display how many lines of code the project consists of. Often, I want to quickly get an impression of the scale and complexity of a project, and the count of lines of code can give a good first impression. 500 lines of code implies a relatively simple project, 100,000 lines of code implies a very large/complicated project.</p>
  
  <p>So, is it possible to get the lines of code written in the various languages from a GitHub repository, preferably without cloning it?</p>
  
  <hr>
  
  <p>The question “<a href="https://stackoverflow.com/q/4822471/388916">Count number of lines in a git repository</a>” asks how to count the lines of code in a local Git repository, but:</p>
  
  <ol>
  <li>You have to clone the project, which could be massive. Cloning a project like Wine, for example, takes ages.</li>
  <li>You would count lines in files that wouldn’t necessarily be code, like i13n files.</li>
  <li>If you count <em>just</em> (for example) Ruby files, you’d potentially miss massive amount of code in other languages, like JavaScript. You’d have to know beforehand which languages the project uses. You’d also have to repeat the count for every language the project uses.</li>
  </ol>
  
  <p>All in all, this is potentially far too time-intensive for “quickly checking the scale of a project”.</p>