{"id":16644157,"url":"https://github.com/devxprite/visit-counter","last_synced_at":"2025-10-30T12:30:30.380Z","repository":{"id":113715738,"uuid":"532956068","full_name":"devxprite/visit-counter","owner":"devxprite","description":"Easy way to know how many visitors are viewing your Github, Website","archived":false,"fork":false,"pushed_at":"2023-03-18T15:27:48.000Z","size":390,"stargazers_count":18,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T08:31:50.388Z","etag":null,"topics":["counter","hacktoberfest","hit-counter","nodejs","sc","scss","view-counter","visit-count","visit-counter"],"latest_commit_sha":null,"homepage":"https://visit-counter.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devxprite.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-09-05T15:21:45.000Z","updated_at":"2025-01-16T16:13:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"f77ba121-8dd3-4ade-96a8-ac4e85bc1738","html_url":"https://github.com/devxprite/visit-counter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxprite%2Fvisit-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxprite%2Fvisit-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxprite%2Fvisit-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxprite%2Fvisit-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devxprite","download_url":"https://codeload.github.com/devxprite/visit-counter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238961336,"owners_count":19559468,"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":["counter","hacktoberfest","hit-counter","nodejs","sc","scss","view-counter","visit-count","visit-counter"],"created_at":"2024-10-12T08:10:35.412Z","updated_at":"2025-10-30T12:30:29.995Z","avatar_url":"https://github.com/devxprite.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://visit-counter.vercel.app/\"\u003e\n        \u003cimg src=\"https://visit-counter.vercel.app/counter.png?page=https%3A%2F%2Fgithub.com%2FdevXprite%2Fvisit-counter\u0026s=70\u0026c=00ff00\u0026bg=00000000\u0026no=3\u0026ff=digii\" alt=\"visits\"\u003e\n    \u003c/a\u003e\n    \u003ch2 align=\"center\"\u003eVisit Counter\u003c/h2\u003e\n    \u003cp\u003eEasy way to know how many visitors are viewing your Github, Website\u003c/p\u003e \u003cbr\u003e\n\u003c/div\u003e\n\n## Reference for Image\n\n\n| query | Usage                                       | Default     | Example                                                                      |\n| ----- | ------------------------------------------- | ----------- | ---------------------------------------------------------------------------- |\n| page  | It can be your username or your website url |             | https://visit-counter.vercel.app/counter.png?page=example.com                |\n| s     | Font size of counter                        | 40          | https://visit-counter.vercel.app/counter.png?page=example.com\u0026s=60           |\n| c     | Color of counter                            | #00ff00     | https://visit-counter.vercel.app/counter.png?page=example.com\u0026c=00ffff       |\n| bg    | Background Color of counter                 | transparent | https://visit-counter.vercel.app/counter.png?page=example.com\u0026bg=000000      |\n| ff    | Font Family                                 | Digital     | https://visit-counter.vercel.app/counter.png?page=example.com\u0026ff=electrolize |\n| no    | No of digits in Counter                     | 2           | https://visit-counter.vercel.app/counter.png?page=example.com\u0026no=6           |\n| tb    | Text to put before count                    | \"\"          | https://visit-counter.vercel.app/counter.png?page=example.com\u0026tb=\"Count: \"   |\n| ta    | Text to put after count                     | \"\"          | https://visit-counter.vercel.app/counter.png?page=example.com\u0026ta=\" visitors\" |\n\n## Getting the Raw Counts\nIf you don't want the PNG file but still want the count to use in something else, you can do a GET request to `/counter`\n\n### Using fetch in javascript\n\n```javascript\nfetch(\"https://visit-counter.vercel.app/counter?page=example.com\")\n  .then(response =\u003e response.text())\n  .then(count =\u003e console.log('counts: ',count));\n```\n\n### Using Requests in Python\n\n```python\nimport requests\n\nurl = \"https://visit-counter.vercel.app/counter?page=example.com\"\nresponse = requests.request(\"GET\", url)\n\nprint(\"counts:\", response.text)\n```\n\n### Using cURL in PHP\n\n```php\n\u003c?php\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n  CURLOPT_URL =\u003e 'https://visit-counter.vercel.app/counter?page=example.com',\n  CURLOPT_RETURNTRANSFER =\u003e true,\n  CURLOPT_HTTP_VERSION =\u003e CURL_HTTP_VERSION_1_1,\n  CURLOPT_CUSTOMREQUEST =\u003e 'GET',\n));\n\n$response = curl_exec($curl);\ncurl_close($curl);\n\necho \"counts: $response\";\n```\n\n## Installation\n1. Get your firebase database URL at [here](https://console.firebase.google.com)\n2. Clone the repo\n    ```bash\n    git clone https://github.com/devXprite/visit-counter\n    ```\n3. Install NPM packages\n    ```bash\n    cd visit-counter\n    npm install\n    ```\n4. Enter your Database URL in `.env`\n   ```bash\n   FIREBASE_DATABASE='YOUR DATABASE URL'\n   ```\n5. Start Server\n   ```bash\n   npm start\n   ```\n\n## Deploy\nClick this button to configure your Project and deploy it to Vercel.\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FdevXprite%2Fvisit-counter\u0026env=FIREBASE_DATABASE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxprite%2Fvisit-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevxprite%2Fvisit-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxprite%2Fvisit-counter/lists"}