{"id":13600357,"url":"https://github.com/changkun/urlstat","last_synced_at":"2025-04-21T02:33:32.242Z","repository":{"id":46575692,"uuid":"335869555","full_name":"changkun/urlstat","owner":"changkun","description":"📈 URL access statistic service","archived":false,"fork":false,"pushed_at":"2024-10-08T18:03:58.000Z","size":1889,"stargazers_count":20,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-07T03:41:33.669Z","etag":null,"topics":["go","golang","pv-systems","url-stats"],"latest_commit_sha":null,"homepage":"https://changkun.de/s/urlstat","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/changkun.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}},"created_at":"2021-02-04T07:08:28.000Z","updated_at":"2024-10-08T18:04:02.000Z","dependencies_parsed_at":"2024-01-14T04:44:29.803Z","dependency_job_id":"4146f39d-9533-4349-9c50-5bf166a969eb","html_url":"https://github.com/changkun/urlstat","commit_stats":{"total_commits":23,"total_committers":4,"mean_commits":5.75,"dds":"0.13043478260869568","last_synced_commit":"59276e347d893ab48a8ed304f05d4254cbd51bbc"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changkun%2Furlstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changkun%2Furlstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changkun%2Furlstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changkun%2Furlstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/changkun","download_url":"https://codeload.github.com/changkun/urlstat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223848012,"owners_count":17213545,"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":["go","golang","pv-systems","url-stats"],"created_at":"2024-08-01T18:00:37.340Z","updated_at":"2024-11-09T15:36:49.477Z","avatar_url":"https://github.com/changkun.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# urlstat\n\n`urlstat` provides basic facility for pv/uv statistic cross websites.\nIt is designed for [blog.changkun.de](https://blog.changkun.de),\n[golang.design/research](https://golang.design/research) and etc.\n\n## Usage\n\n### Plain Mode\n\nAdd the following script to a page:\n\n```html\n\u003cscript async src=\"//changkun.de/urlstat/client.js\"\u003e\u003c/script\u003e\n```\n\nThe script will look for elements with ID `urlstat-site-pv`, `urlstat-site-uv`, `urlstat-page-pv`, and `urlstat-page-uv` and manipulate the information\nif the retrieve succeed. For instance:\n\n```html\n\u003cspan id=\"urlstat-site-pv\"\u003e\u003c!-- info will be inserted --\u003e\u003c/span\u003e\n\u003cspan id=\"urlstat-site-uv\"\u003e\u003c!-- info will be inserted --\u003e\u003c/span\u003e\n\u003cspan id=\"urlstat-page-pv\"\u003e\u003c!-- info will be inserted --\u003e\u003c/span\u003e\n\u003cspan id=\"urlstat-page-uv\"\u003e\u003c!-- info will be inserted --\u003e\u003c/span\u003e\n```\n\nAn example, see https://golang.design/research/zero-alloc-call-sched/\n\n![image](https://user-images.githubusercontent.com/5498964/107117728-9cc01700-687c-11eb-92a3-495a4672717a.png)\n\n\n### GitHub Mode\n\nUse query parameter: `mode=github` and `repo=username/reponame`. For instance:\n\n```\n![](https://changkun.de/urlstat?mode=github\u0026repo=changkun/urlstat)\n```\n\n![](https://changkun.de/urlstat?mode=github\u0026repo=changkun/urlstat)\n\n## License\n\nMIT \u0026copy; 2021 [Changkun Ou](https://changkun.de)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchangkun%2Furlstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchangkun%2Furlstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchangkun%2Furlstat/lists"}