{"id":19007044,"url":"https://github.com/hi019/better-view-counter","last_synced_at":"2025-04-22T19:25:16.588Z","repository":{"id":64302341,"uuid":"297107998","full_name":"hi019/better-view-counter","owner":"hi019","description":"A README Badge for displaying your (unique) repositories views","archived":false,"fork":false,"pushed_at":"2021-12-06T00:19:29.000Z","size":4719,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-16T08:14:27.880Z","etag":null,"topics":["badge","badge-generator","counter","fiber-framework","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hi019.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-20T15:40:44.000Z","updated_at":"2024-10-31T21:03:36.000Z","dependencies_parsed_at":"2023-01-15T09:45:19.823Z","dependency_job_id":null,"html_url":"https://github.com/hi019/better-view-counter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi019%2Fbetter-view-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi019%2Fbetter-view-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi019%2Fbetter-view-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi019%2Fbetter-view-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hi019","download_url":"https://codeload.github.com/hi019/better-view-counter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250307303,"owners_count":21409065,"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":["badge","badge-generator","counter","fiber-framework","golang"],"created_at":"2024-11-08T18:35:50.452Z","updated_at":"2025-04-22T19:25:16.566Z","avatar_url":"https://github.com/hi019.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](http://counter.gofiber.io/badge/hi019/better-view-counter)\n\n## Usage\nbetter-view-counter generates a view count badge for your repository's README. It supports a custom label and unique views only. To use it, first download the [latest release](https://github.com/hi019/better-view-counter/releases). And then embed the svg like this: `![](https://yourdomain.com/badge/YOUR_USERNAME/YOUR_REPO)`\n\n\n## Why another view counter?\nWhen assessing other view conuters, we found they were capped at a limited number of requests per hour before the badge returned an error. This is not ideal for high-traffic repositories. Through [Fiber](https://gofiber.io), *better-view-counter* can handle about 30-40k requests per second with no cap on a 1 core vps. Memory usage also stays under 25mb during benchmarks.\n\n## Building \nTo build,\n1. Clone project, cd into directory\n2. `go build`\n3. Result will be `./viewcounter`\n\n## Benchmarks\nOn a 1 core VPS:\n\n```\n./bombardier -c 750 -n 1000000 http://127.0.0.1:3000/badge/demo/demo\nStatistics        Avg      Stdev        Max\n  Reqs/sec     38462.53    4243.36   47245.98\n  Latency       19.50ms   105.75ms      7.57s\n  HTTP codes:\n    1xx - 0, 2xx - 1000000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:    52.80MB/s\n```\n\nMemory usage under 25mb.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhi019%2Fbetter-view-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhi019%2Fbetter-view-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhi019%2Fbetter-view-counter/lists"}