{"id":18023995,"url":"https://github.com/lete114/visitor-badge","last_synced_at":"2025-03-27T00:30:46.862Z","repository":{"id":41310032,"uuid":"509108342","full_name":"Lete114/visitor-badge","owner":"Lete114","description":"A badge generator service to count visitors of your markdown file.","archived":false,"fork":false,"pushed_at":"2024-09-08T03:57:43.000Z","size":220,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T18:11:24.143Z","etag":null,"topics":["badge","deta","free","mongodb","redis","visitor","visitor-badge"],"latest_commit_sha":null,"homepage":"https://visitor-badge.imlete.cn","language":"HTML","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/Lete114.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-06-30T14:14:15.000Z","updated_at":"2025-03-05T15:15:40.000Z","dependencies_parsed_at":"2024-09-08T04:39:41.595Z","dependency_job_id":"5bafb974-edcf-44e5-869e-3156504ce908","html_url":"https://github.com/Lete114/visitor-badge","commit_stats":{"total_commits":36,"total_committers":1,"mean_commits":36.0,"dds":0.0,"last_synced_commit":"975beb4f31206a0ba4f7c9e9ab26c10f1bb59fa5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fvisitor-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fvisitor-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fvisitor-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fvisitor-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lete114","download_url":"https://codeload.github.com/Lete114/visitor-badge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245760562,"owners_count":20667886,"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","deta","free","mongodb","redis","visitor","visitor-badge"],"created_at":"2024-10-30T07:11:37.979Z","updated_at":"2025-03-27T00:30:46.602Z","avatar_url":"https://github.com/Lete114.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# visitor-badge\n\n![visitor badge](https://visitor-badge.imlete.cn/?id=github.lete114.visitor-badge\u0026type=uv\u0026label=UV)\n![visitor badge](https://visitor-badge.imlete.cn/?id=github.lete114.visitor-badge\u0026label=PV)\n\n\u003e **Warning** Since `Deta` will abandon Deta Cloud and move to Deta Space, the deta.dev domain is temporarily closed to users, please change `visitor_badge.deta.dev` to `visitor-badge.imlete.cn`\n\n\u003e **The example service is currently deployed on the free version of [Deta](https://deta.space), You can visit the [/list](https://visitor-badge.imlete.cn/list) path to see all the statistics**\n\nInspired by [jwenjian/visitor-badge](https://github.com/jwenjian/visitor-badge) written in `Python` (PV stats only)\n\n## Function\n\n- PV (Number of visits)\n- UV (Number of visitors)\n- Multi-database selection (mongodb, redis, deta)\n\n## Deployment\n\n### Deta Free\n\n[![Deploy with Deta](https://deta.space/buttons/dark.svg)](https://deta.space/discovery/@leter/visitorbadge)\n\n### Server\n\n```bash\ngit clone https://github.com/Lete114/visitor-badge.git visitor-badge\n\ncd visitor-badge\n\nnpm run start\n```\n\n### ServerLess\n\nSee the other branches of the repository for details\n\n### Configuration Database\n\nRename the `.env.example` file to `.env` and edit it (just fill in the comments according to the file)\n\n### Use\n\n```markdown\n![visitor badge](https://visitor-badge.imlete.cn/?id=github.lete114.visitor-badge)\n![visitor badge](https://visitor-badge.imlete.cn/?id=github.lete114.visitor-badge\u0026labelColor=f00)\n```\n\n\u003e where `id` is custom and it is not constrained in any way.\n\u003e\n\u003e Here are some suggestions\n\u003e\n\u003e 1.  Specify a user's home page, e.g.: https://github.com/Lete114 using `id=github.lete114`\n\u003e 2.  Specify a user's repository, e.g.: https://github.com/Lete114/visitor-badge using `id=github.lete114.visitor-badge`\n\u003e 3.  Specify the issues in a user's repository, e.g.: https://github.com/Lete114/visitor-badge/issues/1 using `id=github.lete114.visitor-badge.issues.1`\n\u003e 4.  Specify a website, e.g.: https://blog.imlete.cn using `id=blog.imlete.cn`\n\u003e 5.  Specify a page of a website, e.g.: https://blog.imlete.cn/404.html using `id=blog.imlete.cn.404`\n\n| Key        | Default  | Required | Options                                                       | Description                                                                   |\n| ---------- | -------- | -------- | ------------------------------------------------------------- | ----------------------------------------------------------------------------- |\n| id         |          | ✅       |                                                               | Page unique ID                                                                |\n| type       | pv       |          | ['pv', 'uv']                                                  | Statistics type                                                               |\n| label      | visitors |          |                                                               | Custom label (left) name                                                      |\n| labelColor | 555      |          |                                                               | Custom label (left) color (Note: You can leave out the well number `#`)       |\n| color      | 4c1      |          |                                                               | Custom stats (right side) color (Note: You can leave out the well number `#`) |\n| style      | flat     |          | ['plastic', 'flat', 'flat-square', 'for-the-badge', 'social'] | Custom badge style                                                            |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flete114%2Fvisitor-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flete114%2Fvisitor-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flete114%2Fvisitor-badge/lists"}