{"id":21758490,"url":"https://github.com/skarlso/effrit","last_synced_at":"2025-09-10T14:08:44.530Z","repository":{"id":57505522,"uuid":"181749328","full_name":"Skarlso/effrit","owner":"Skarlso","description":"Go Efferent and Afferent package metric calculator.","archived":false,"fork":false,"pushed_at":"2024-03-14T06:39:49.000Z","size":932,"stargazers_count":35,"open_issues_count":3,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-20T13:01:04.759Z","etag":null,"topics":["go","golang","metrics"],"latest_commit_sha":null,"homepage":null,"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/Skarlso.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":"2019-04-16T18:59:04.000Z","updated_at":"2024-11-23T11:25:56.000Z","dependencies_parsed_at":"2024-03-14T07:37:27.298Z","dependency_job_id":"7767f762-bf1c-4628-9aff-6213ec55c58a","html_url":"https://github.com/Skarlso/effrit","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Skarlso/effrit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skarlso%2Feffrit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skarlso%2Feffrit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skarlso%2Feffrit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skarlso%2Feffrit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Skarlso","download_url":"https://codeload.github.com/Skarlso/effrit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skarlso%2Feffrit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274475713,"owners_count":25292464,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","golang","metrics"],"created_at":"2024-11-26T11:21:54.272Z","updated_at":"2025-09-10T14:08:44.470Z","avatar_url":"https://github.com/Skarlso.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Ifrit](./img/ifrit.png)\n\n# Effrit\n\n[![Build Status](https://travis-ci.org/Skarlso/effrit.svg?branch=master)](https://travis-ci.org/Skarlso/effrit)\n\nGo Efferent and Afferent package metric calculator.\n\nMetrics calculated currently by this package:\n\n- [x] Instability metric\n- [x] Abstractness metric\n- [x] Distance from main sequence metric\n\nAll metrics are now supported and calculated accordingly.\n\n# Description of these metrics\n\nhttps://en.wikipedia.org/wiki/Software_package_metrics\n\nPlease see Robert Cecil Martin's Clean Architecture book on details describing those metrics.\n\nIn terms of what this tool is doing, please refer to this post: [Efferent and Afferent Metrics in Go](https://skarlso.github.io/2019/04/21/efferent-and-afferent-metrics-in-go/).\n\n# Usage on Effrit\n\nHere is an example of running this tool on this very project:\n\n![screenshot](./img/effrit_package.png)\n\n# Package Data\n\nEffrit now dumps data as JSON file into the project root directly. Until I finish the CGUI for effrit, this data can be processed by any other tool. Example using Effrit project:\n\n```json\n{\n   \"packages\":[\n      {\n         \"Name\":\"effrit\",\n         \"FullName\":\"github.com/Skarlso/effrit\",\n         \"Imports\":[\n            \"github.com/Skarlso/effrit/cmd\"\n         ],\n         \"ImportCount\":1,\n         \"DependedOnByCount\":0,\n         \"DependedOnByNames\":null,\n         \"Stability\":1,\n         \"Abstractness\":0,\n         \"DistanceFromMedian\":0,\n         \"Dir\":\"/Users/hannibal/goprojects/effrit\",\n         \"GoFiles\":[\n            \"main.go\"\n         ]\n      },\n      {\n         \"Name\":\"cmd\",\n         \"FullName\":\"github.com/Skarlso/effrit/cmd\",\n         \"Imports\":[\n            \"github.com/Skarlso/effrit/pkg\"\n         ],\n         \"ImportCount\":1,\n         \"DependedOnByCount\":1,\n         \"DependedOnByNames\":[\n            \"github.com/Skarlso/effrit\"\n         ],\n         \"Stability\":0.5,\n         \"Abstractness\":0.5,\n         \"DistanceFromMedian\":0,\n         \"Dir\":\"/Users/hannibal/goprojects/effrit/cmd\",\n         \"GoFiles\":[\n            \"root.go\",\n            \"scan.go\"\n         ]\n      },\n      {\n         \"Name\":\"pkg\",\n         \"FullName\":\"github.com/Skarlso/effrit/pkg\",\n         \"Imports\":[\n\n         ],\n         \"ImportCount\":0,\n         \"DependedOnByCount\":1,\n         \"DependedOnByNames\":[\n            \"github.com/Skarlso/effrit/cmd\"\n         ],\n         \"Stability\":0,\n         \"Abstractness\":0.3,\n         \"DistanceFromMedian\":0.7,\n         \"Dir\":\"/Users/hannibal/goprojects/effrit/pkg\",\n         \"GoFiles\":[\n            \"packages.go\",\n            \"scan.go\"\n         ]\n      }\n   ]\n}\n```\n\n# Contributions\n\nAre always welcomed!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskarlso%2Feffrit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskarlso%2Feffrit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskarlso%2Feffrit/lists"}