{"id":26780603,"url":"https://github.com/kaihendry/lesshero","last_synced_at":"2025-04-19T10:58:30.854Z","repository":{"id":59911282,"uuid":"540021219","full_name":"kaihendry/lesshero","owner":"kaihendry","description":"Highlight refactors and efforts to keep code base lean","archived":false,"fork":false,"pushed_at":"2025-01-29T07:22:08.000Z","size":162,"stargazers_count":18,"open_issues_count":4,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-23T22:13:43.635Z","etag":null,"topics":["chart","code-analysis","complexity-measures","git","sloc","toxicity"],"latest_commit_sha":null,"homepage":"","language":"Go","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/kaihendry.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":"2022-09-22T14:27:31.000Z","updated_at":"2025-01-09T20:02:29.000Z","dependencies_parsed_at":"2024-06-21T08:40:06.930Z","dependency_job_id":"e5090b47-69a0-4ed1-8d79-f0b1fd133614","html_url":"https://github.com/kaihendry/lesshero","commit_stats":{"total_commits":91,"total_committers":4,"mean_commits":22.75,"dds":"0.13186813186813184","last_synced_commit":"3fc1539f9cdcb1b961f576535dfc773aad7d53d1"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaihendry%2Flesshero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaihendry%2Flesshero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaihendry%2Flesshero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaihendry%2Flesshero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaihendry","download_url":"https://codeload.github.com/kaihendry/lesshero/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246150451,"owners_count":20731419,"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":["chart","code-analysis","complexity-measures","git","sloc","toxicity"],"created_at":"2025-03-29T07:17:15.769Z","updated_at":"2025-03-29T07:17:16.311Z","avatar_url":"https://github.com/kaihendry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Less Hero!\n\n[![Less Hero explainer](http://img.youtube.com/vi/Zlsq9B6KdB0/0.jpg)](http://www.youtube.com/watch?v=Zlsq9B6KdB0 \"Highlighting less code\")\n\nDemo: https://kaihendry.github.io/lesshero/\n\n## Goal: Highlight efforts to reduce bloat\n\nIt's important for your health to **watch your weight**.\n\nSame for code.\n\nAim of this project is to celebrate those who refactor and put code on\na diet!\n\n## Install\n\nAssuming you have a Go runtime installed:\n\n    go install github.com/kaihendry/lesshero@latest\n\n## Usage\n\n`lesshero -b` will show source code additions over time in a chart in your browser.\n\nExplicit usage:\n\n    lesshero /path/to/a/full/git/checkout \u003e sloc.jsonl\n    cat sloc.jsonl | lesshero -o chart.html\n\n### Docker\n\n    docker run -v $(pwd):/repo hendry/lesshero -o /repo/chart.html /repo\n\n## Related projects to help track code complexity\n\n- https://github.com/boyter/scc\n- https://github.com/kaihendry/graphsloc\n\n## Create a SLOC chart via a GitHub action\n\nFirst you need to enable Github Pages with the source of **Github Actions**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaihendry%2Flesshero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaihendry%2Flesshero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaihendry%2Flesshero/lists"}