{"id":19197955,"url":"https://github.com/flarebyte/anonymous-graph-stats","last_synced_at":"2026-06-16T12:31:32.973Z","repository":{"id":55317003,"uuid":"322824723","full_name":"flarebyte/anonymous-graph-stats","owner":"flarebyte","description":"Anonymous statistics for graph data","archived":false,"fork":false,"pushed_at":"2021-01-10T12:18:42.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T17:09:25.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/flarebyte.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}},"created_at":"2020-12-19T10:49:52.000Z","updated_at":"2021-01-10T12:18:44.000Z","dependencies_parsed_at":"2022-08-14T20:52:07.646Z","dependency_job_id":null,"html_url":"https://github.com/flarebyte/anonymous-graph-stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flarebyte/anonymous-graph-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fanonymous-graph-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fanonymous-graph-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fanonymous-graph-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fanonymous-graph-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flarebyte","download_url":"https://codeload.github.com/flarebyte/anonymous-graph-stats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fanonymous-graph-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34406820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":[],"created_at":"2024-11-09T12:19:41.132Z","updated_at":"2026-06-16T12:31:32.949Z","avatar_url":"https://github.com/flarebyte.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anonymous-graph-stats\n\n\u003e Anonymous statistics for graph objects in Typescript for node.js and browser\n\nGraph stats produces metrics for a small graph object made of nodes, edges and attributes. These metrics are useful for understanding the size and the shape of the graph. The metrics should never contain any private content, but mostly counts of elements. However, these metrics are pretty detailed to reduce ambiguity and facilitate decisions making. A [csv example](test/fixture-graph-alpha-stats-expected.csv) and [json example](test/fixture-graph-alpha-stats-expected.json) based on the following [json input](test/fixture-graph-alpha.json).\n\n## Usage\n\nYou will have to provide a context that expects a list of tags and units:\nOnly these predefined tags and units will be used for stats purpose. \n\n```\nconst defaultCtx = {\n  supportedTags: ['alpha', 'beta', 'delta'],\n  supportedUnits: ['km', 'GBP'],\n};\n```\n\nProduce the stats:\n\n```\nconst statsRows = getStats(defaultCtx, jsonGraph);\nconst csvRows = toCSV(statsRows, ',');\n```\n\n## License\n\nMIT © [2020 Flarebyte - Olivier Huin]()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflarebyte%2Fanonymous-graph-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflarebyte%2Fanonymous-graph-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflarebyte%2Fanonymous-graph-stats/lists"}