{"id":18540016,"url":"https://github.com/florianjs/js-click-counter","last_synced_at":"2026-04-26T20:31:50.841Z","repository":{"id":200645507,"uuid":"275378646","full_name":"florianjs/JS-Click-Counter","owner":"florianjs","description":"JCC is a simple but yet useful Click Counter written in JS. Data are stored with the Realtime Firebase Database.","archived":false,"fork":false,"pushed_at":"2020-06-27T13:52:09.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T18:37:35.685Z","etag":null,"topics":["axios","click","counter","firebase","javascript","tracker"],"latest_commit_sha":null,"homepage":"https://icesofty.github.io/JS-Click-Counter","language":"JavaScript","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/florianjs.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}},"created_at":"2020-06-27T13:33:45.000Z","updated_at":"2021-06-04T13:05:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1f9e58b-fd47-4ac6-adf1-d608263de396","html_url":"https://github.com/florianjs/JS-Click-Counter","commit_stats":null,"previous_names":["icesofty/js-click-counter","florianjs/js-click-counter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/florianjs/JS-Click-Counter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianjs%2FJS-Click-Counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianjs%2FJS-Click-Counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianjs%2FJS-Click-Counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianjs%2FJS-Click-Counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florianjs","download_url":"https://codeload.github.com/florianjs/JS-Click-Counter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianjs%2FJS-Click-Counter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32312227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["axios","click","counter","firebase","javascript","tracker"],"created_at":"2024-11-06T19:52:10.177Z","updated_at":"2026-04-26T20:31:50.814Z","avatar_url":"https://github.com/florianjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![JS x Firebase](https://i.imgur.com/yul6hNy.png)\n\n# Click Counter\n\nJCC (JS Click Counter) is a simple and easy to use click counter.\n\nLet your visitors share a like on your website, keep track of downloads and count how many time a link has been clicked with a single lightweight JS file.\n\n## Install\n\n```html\n\u003cscript src=\"love-btn.js\" defer\u003e\u003c/script\u003e\n```\n\n**JCC use Axios**\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js\" defer\u003e\u003c/script\u003e\n```\n\n```html\n\u003c!-- YOURFILE.html --\u003e\n\u003cbutton\n  id=\"love-btn\"\n  class=\"p-4 my-4 bg-gray-800 shadow-md rounded-md text-2xl w-64 focus:outline-none hover:bg-white hover:text-gray-900\"\n\u003e\n  Send some ❤️\n\u003c/button\u003e\n\n\u003ch2 id=\"love-counter\" class=\"text-xl font-bold\"\u003e\u003c/h2\u003e\n```\n\n## Firebase Settings\n\n**JCC work better with Firebase Realtime Database.**\n\n1 - Create a Firebase account\nhttps://firebase.google.com/\n\n2 - Add a New Project to Firebase\n\n3 - Create a new Realtime Database\n\nAdd two childs to your Database :\n\n```\nyour-project\n|\n|--firstChild\n|   |\n|   |--counter: 0 // For your \"love\" counter\n|\n|--secondChild\n    |\n    |--trackDownloads: 0 // For your \"Downloads\" counter\n```\n\nEdit your .js file with your own informations :\n\n```js\n// If you want to add a \"love\" counter\nconst firesbase = \"https://your-project.firebaseio.com/firstChild.json\";\n\n// If you want to add a \"Downloads\" counter\nconst firesbaseDownload =\n  \"https://your-project.firebaseio.com/secondChild.json\";\n```\n\n## Recommanded Firebase rules\n\n```json\n{\n  \"rules\": {\n    \"firstChild\": {\n      \".read\": true,\n      \".write\": \"data.exists() \u0026\u0026 newData.exists()\",\n      \"counter\": {\n        \".validate\": \"newData.val() == data.val() + 1\"\n      }\n    },\n\n    \"secondChild\": {\n      \".read\": true,\n      \".write\": \"data.exists() \u0026\u0026 newData.exists()\",\n      \"trackDownloads\": {\n        \".validate\": \"newData.val() == data.val() + 1\"\n      }\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorianjs%2Fjs-click-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorianjs%2Fjs-click-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorianjs%2Fjs-click-counter/lists"}