{"id":13623159,"url":"https://github.com/pajecawav/ghloc-web","last_synced_at":"2025-04-15T14:32:09.894Z","repository":{"id":42664561,"uuid":"429583001","full_name":"pajecawav/ghloc-web","owner":"pajecawav","description":"Count lines of code in a GitHub repository","archived":false,"fork":false,"pushed_at":"2024-10-30T00:23:47.000Z","size":1215,"stargazers_count":129,"open_issues_count":6,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T02:50:15.416Z","etag":null,"topics":["cloc","count-lines-of-code","github","lines-of-code"],"latest_commit_sha":null,"homepage":"https://ghloc.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pajecawav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-18T21:20:21.000Z","updated_at":"2024-10-26T23:35:28.000Z","dependencies_parsed_at":"2023-02-19T00:00:57.794Z","dependency_job_id":"455e895a-a722-4f4b-8989-79619a15f3cc","html_url":"https://github.com/pajecawav/ghloc-web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajecawav%2Fghloc-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajecawav%2Fghloc-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajecawav%2Fghloc-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pajecawav%2Fghloc-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pajecawav","download_url":"https://codeload.github.com/pajecawav/ghloc-web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223677469,"owners_count":17184476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloc","count-lines-of-code","github","lines-of-code"],"created_at":"2024-08-01T21:01:28.746Z","updated_at":"2025-04-15T14:32:09.888Z","avatar_url":"https://github.com/pajecawav.png","language":"TypeScript","funding_links":[],"categories":["github"],"sub_categories":[],"readme":"# ghloc-web\n\n![build status](https://github.com/pajecawav/ghloc-web/actions/workflows/ci.yml/badge.svg)\n[![lines count](https://img.shields.io/endpoint?url=https://ghloc.vercel.app/api/pajecawav/ghloc-web/badge?filter=.ts$,.tsx$)](https://ghloc.vercel.app/pajecawav/ghloc-web?filter=.ts$,.tsx$)\n\nA [website](https://ghloc.vercel.app/) to display GitHub repository info:\n\n-   Total repo size\n-   Repo health calculated by GitHub (`README.md`, license, etc)\n-   Repo commit activity for the past year\n-   Bundle size of an `npm` package\n-   Total lines of code by file extension (provided by [ghloc](https://github.com/subtle-byte/ghloc))\n\n[![Screenshot](https://user-images.githubusercontent.com/18193831/199794714-a4c7d8c1-17c3-4be9-8de4-dc0fb745ea2d.png)](https://ghloc.vercel.app/facebook/react)\n\n## Addons\n\nYou can use a [user script](https://gist.github.com/pajecawav/70ffe72bf4aa0968aa9f97318976138f) to add a direct link to repo's ghloc page. Can be installed with [Tampermonkey](https://www.tampermonkey.net/).\n\nAlso [Firefox addon](https://addons.mozilla.org/ru/firefox/addon/github-lines-of-code/) is available. It provides LOCs stats dropdown directly on project's GitHub page and a direct link to repo's ghloc page. Source code available [here](https://github.com/pajecawav/ghloc-extension/).\n\n## Badges\n\nYou can use [shields.io](https://shields.io) to embed badges into your README. Navigate to the\n[endpoint badge docs](https://shields.io/badges/endpoint-badge) and enter the following to the `url`\nfield:\n\n```\nhttps://ghloc.vercel.app/api/OWNER/REPO/badge\n```\n\nThen you can preview your badge by clicking \"Execute\" and copy the full badge URL generated by shields.io which will look something like this:\n\n```\nhttps://img.shields.io/endpoint?url=https://ghloc.vercel.app/api/OWNER/REPO/badge\n```\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/pajecawav/ghloc-web/assets/18193831/b5057889-9499-4296-88f3-fe0b40150cbf\"\u003e\n\u003c/p\u003e\n\nYou can also optionally add an optional `filter` search param. For example the badge at the top of\nthis README has the following URL and only counts files with `.ts` or `.tsx` extension:\n\n```\nhttps://img.shields.io/endpoint?url=https://ghloc.vercel.app/api/pajecawav/ghloc-web/badge?filter=.ts$,.tsx$\n```\n\nTo humanize LOC count you can add `format=human` to search params. So to a produce badge like [![lines\ncount](https://img.shields.io/endpoint?url=https://ghloc.vercel.app/api/pajecawav/ghloc-web/badge?format=human)](https://ghloc.vercel.app/pajecawav/ghloc-web)\nyou can use following URL:\n\n```\nhttps://img.shields.io/endpoint?url=https://ghloc.vercel.app/api/pajecawav/ghloc-web/badge?format=human\n```\n\n## Development\n\nYou can start a dev server by running following commands:\n\n```bash\ngit clone https://github.com/pajecawav/ghloc-web.git\ncd ghloc-web\npnpm install\npnpm dev\n```\n\nThen navigate to [http://localhost:3000](http://localhost:3000)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpajecawav%2Fghloc-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpajecawav%2Fghloc-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpajecawav%2Fghloc-web/lists"}