Logo Count LOC

Logo Count LOC

UPDATE:
You can choose GitLab repos too for counting lines of code.
Default colors are the same as github.
ADD

API doc (version 0.7.14)

Description
- Tool for counting lines of code from github/gitlab repositories.
- Max Repo size : 500 mb, greater repos will not work.
- File max size for upload 200mb
- You can edit the colors of the segments by clicking on any point of it. Segment will randomly change color as it is clicked.
- Deafult colors are the same as github

- Limit : 1 request every 5 seconds. Once reached subsequent requests will result in error 429 (too many requests) until your quota is cleared.
Endpoint - Get Lines of Code from GitHub repo
This endpoint retrieves LOC from any github repo based on programming language.
http Request : GET https://api.codetabs.com/v1/loc?github=username/reponame
example :
https://api.codetabs.com/v1/loc?github=jolav/betazone
response :
  [{
    "language": "JavaScript",
    "files": 1,
    "lines": 176,
    "blanks": 14,
    "comments": 6,
    "linesOfCode": 156
  },   
  ... more languages
  {
    "language": "Total",
    "files": 8,
    "lines": 921,
    "blanks": 148,
    "comments": 46,
    "linesOfCode": 743
  }] 
        
Endpoint - Get Lines of Code from GitLab repo
This endpoint retrieves LOC from any gitlab repo based on programming language.
http Request : GET https://api.codetabs.com/v1/loc?gitlab=username/reponame
example :
https://api.codetabs.com/v1/loc?gitlab=jolav/codetabs
response :
  [{
    "language": "Go",
    "files": 24,
    "lines": 3062,
    "blanks": 264,
    "comments": 155,
    "linesOfCode": 2643
  }, 
  ... more languages
  {
    "language": "Total",
    "files": 8,
    "lines": 921,
    "blanks": 148,
    "comments": 46,
    "linesOfCode": 743
  }] 
        
Endpoint - Get Lines of Code from an zipped director
This endpoint retrieves LOC from any zipped directory
http Request : POST https://api.codetabs.com/v1/loc
parameter : Form Data
Content-Disposition: form-data; name="inputFile"; filename="yourRarZipFolder.zip"
response : Same as Endpoint - Get Lines of Code from any zipped Project