{"id":37088196,"url":"https://github.com/statloc/core","last_synced_at":"2026-01-14T10:50:09.103Z","repository":{"id":318553796,"uuid":"1065334306","full_name":"statloc/core","owner":"statloc","description":"[pre-released] ✨📊 Go package for collecting project statistic (by files, components, contributors and more). Core package for @statloc. Used by CLI.","archived":false,"fork":false,"pushed_at":"2025-10-31T01:30:11.000Z","size":81,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T10:19:08.737Z","etag":null,"topics":["core","go","go-library","open-source","package","statistics"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/statloc/core","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statloc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-27T14:11:53.000Z","updated_at":"2025-10-23T21:16:29.000Z","dependencies_parsed_at":"2025-10-07T22:19:45.418Z","dependency_job_id":"d73bf7c4-87c2-42c1-af5d-163d9078ef84","html_url":"https://github.com/statloc/core","commit_stats":null,"previous_names":["statloc/core"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/statloc/core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statloc%2Fcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statloc%2Fcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statloc%2Fcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statloc%2Fcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statloc","download_url":"https://codeload.github.com/statloc/core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statloc%2Fcore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["core","go","go-library","open-source","package","statistics"],"created_at":"2026-01-14T10:50:08.094Z","updated_at":"2026-01-14T10:50:09.095Z","avatar_url":"https://github.com/statloc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# statloc core\n\n\u003cdiv\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/statloc/core?sort=semver\u0026display_name=release\u0026style=flat-square\u0026label=latest%20release\u0026color=purple\"\u003e\n    \u003ca href=\"https://github.com/statloc/core/blob/master/go.mod\"\u003e\u003cimg src=\"https://img.shields.io/badge/go_version-1.24%20|%201.25-purple?style=flat-square\u0026label=go%20version\u0026color=purple\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/statloc/core/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-coffeeware-purple?style=flat-square\u0026label=license\u0026color=purple\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/statloc/core/stargazers/\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/statloc/core?style=flat-square\u0026label=stars\u0026color=purple\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/statloc/core/forks/\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/statloc/core?style=flat-square\u0026color=purple\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/statloc/core/actions/workflows/check.yml/\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/statloc/core/check.yml?branch=master\u0026style=flat-square\u0026label=checks\u0026color=purple\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n### ✏️ About\n- Go package for collecting project statistic (lines of code, methods, files, components, etc.)\n- Core package for @statloc\n- Used both by server and CLI\n\n### ⚡ Installation\n```shell\ngo get github.com/statloc/core\n```\n\n### 📝 Sample usage\n```go\npackage main\n\nimport (\n    \"github.com/statloc/core\"\n    \"fmt\"\n)\n\nfunc main() {\n    stats := core.GetStatistics(\"/path/to/project\")\n\n    result := = fmt.Sprintf(\n        `Statistics(total):\nlines of code: %d\nfiles: %d`,\n        stats.Total.LOC,\n        stats.Total.Files,\n    )\n\n    fmt.Println(results)\n}\n\n```\n\n### 🤝 Contributing\nFollow our [guide](https://github.com/statloc/core/blob/master/CONTRIBUTING.md) to contribute to this project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatloc%2Fcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatloc%2Fcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatloc%2Fcore/lists"}