{"id":21560632,"url":"https://github.com/armanx200/visitor-badge","last_synced_at":"2025-08-26T09:13:54.233Z","repository":{"id":241874328,"uuid":"808070911","full_name":"Armanx200/visitor-badge","owner":"Armanx200","description":"This project provides a simple way to track visits to your GitHub repository using a dynamic badge. Integrate this badge into your README.md file to display visit counts and engage with your audience. 🚀 It works every 5 minutes","archived":false,"fork":false,"pushed_at":"2025-07-11T05:54:33.000Z","size":10375,"stargazers_count":13,"open_issues_count":0,"forks_count":20,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-11T06:29:31.871Z","etag":null,"topics":["analytics","arman-kianian","automation","badge","github","github-actions","metrics","opensource","python","readme-analytics","readme-badge","traffic","visit-tracker","visitor-badge","visitor-count","workflow"],"latest_commit_sha":null,"homepage":"https://github.com/Armanx200","language":null,"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/Armanx200.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-30T10:20:08.000Z","updated_at":"2025-07-11T05:54:36.000Z","dependencies_parsed_at":"2024-05-30T12:57:42.324Z","dependency_job_id":"053f3552-0ab7-44e0-887e-4c3daa434b2d","html_url":"https://github.com/Armanx200/visitor-badge","commit_stats":null,"previous_names":["armanx200/visitor-badge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Armanx200/visitor-badge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Armanx200%2Fvisitor-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Armanx200%2Fvisitor-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Armanx200%2Fvisitor-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Armanx200%2Fvisitor-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Armanx200","download_url":"https://codeload.github.com/Armanx200/visitor-badge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Armanx200%2Fvisitor-badge/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265542404,"owners_count":23785219,"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":["analytics","arman-kianian","automation","badge","github","github-actions","metrics","opensource","python","readme-analytics","readme-badge","traffic","visit-tracker","visitor-badge","visitor-count","workflow"],"created_at":"2024-11-24T09:16:36.178Z","updated_at":"2025-08-26T09:13:54.222Z","avatar_url":"https://github.com/Armanx200.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Visitor Badge Installation Guide 🚀\n\n![Visits](https://img.shields.io/badge/Visits-36155-blue)\n\nWelcome to the `visitor-badge` repository by [Arman Kianian](https://github.com/Armanx200)! This guide will help you set up and use the visitor badge to track visits to your GitHub repository. Let's get started! 🎉\n\n## Prerequisites 📋\n\nBefore you begin, make sure you have:\n\n- A GitHub account\n- A repository where you want to add the visitor badge\n- Basic knowledge of Git and GitHub\n\n## Step-by-Step Installation 🛠️\n\n### 1. Fork the Repository 🍴\n\nFirst, fork the [visitor-badge repository](https://github.com/Armanx200/visitor-badge) to your GitHub account.\n\n### 2. Clone the Repository 📂\n\nNext, clone the forked repository to your local machine:\n\n```bash\ngit clone https://github.com/\u003cyour-username\u003e/visitor-badge.git\ncd visitor-badge\n```\n\n### 3. Set Up the Visit Counter 🚥\n\nEnsure you have a `visits.txt` file in the root of your repository to track the visit count. If it doesn't exist, create it:\n\n```bash\necho \"0\" \u003e visits.txt\n```\n\n### 4. Add the Badge to Your README.md 📝\n\nUpdate your `README.md` file to include the visit badge. Add the following line where you want the badge to appear:\n\n```markdown\n![Visits](https://img.shields.io/badge/Visits-36155-blue)\n```\n\n### 5. Set Up GitHub Actions ⚙️\n\nCreate a workflow file to automate visit count updates. Create a directory `.github/workflows` in your repository if it doesn't already exist, then create a file named `update-visits.yml`:\n\n```yaml\nname: Update Visits\n\non:\n  push:\n    branches:\n      - main\n  schedule:\n    - cron: '*/15 * * * *' # Runs every 15 minutes\n\njobs:\n  update-visits:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v2\n\n      - name: Increment visit counter\n        id: increment\n        run: |\n          if [ ! -f visits.txt ]; then echo \"0\" \u003e visits.txt; fi\n          visits=$(cat visits.txt)\n          visits=$((visits + 1))\n          echo $visits \u003e visits.txt\n          echo \"::set-output name=visits::$visits\"\n\n      - name: Update README.md\n        run: |\n          visits=${{ steps.increment.outputs.visits }}\n          badge=\"![Visits](https://img.shields.io/badge/Visits-36155-blue)\"\n          sed -i 's|!\\[Visits\\](https://img.shields.io/badge/Visits-.*-blue)|'\"$badge\"'|' README.md\n\n      - name: Commit changes\n        run: |\n          git config --global user.name 'github-actions'\n          git config --global user.email 'github-actions@github.com'\n          git add visits.txt README.md\n          git commit -m 'Update visits count'\n          git push\n```\n\n### 6. Commit and Push Your Changes 🚀\n\nCommit and push the changes to your GitHub repository:\n\n```bash\ngit add visits.txt README.md .github/workflows/update-visits.yml\ngit commit -m \"Set up visit tracking workflow\"\ngit push origin main\n```\n\n### 7. Monitor Your Visits 📊\n\nOnce everything is set up, your visit count will be updated automatically every 15 minutes. You can view the visit badge in your `README.md`:\n\n![Visits](https://img.shields.io/badge/Visits-36155-blue)\n\n## Congratulations! 🎉\n\nYou have successfully set up the visitor badge in your repository! Now you can track how many people visit your GitHub project. Happy coding! 💻\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmanx200%2Fvisitor-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmanx200%2Fvisitor-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmanx200%2Fvisitor-badge/lists"}