{"id":13500808,"url":"https://github.com/chrishunt/favcount","last_synced_at":"2026-03-08T05:32:01.110Z","repository":{"id":10122193,"uuid":"12191645","full_name":"chrishunt/favcount","owner":"chrishunt","description":"Enhance your useless favicon with FavCount technology","archived":false,"fork":false,"pushed_at":"2015-04-11T15:50:48.000Z","size":526,"stargazers_count":181,"open_issues_count":0,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-01-23T05:41:32.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://chrishunt.co/favcount","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/chrishunt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-18T07:02:13.000Z","updated_at":"2025-08-22T12:01:38.000Z","dependencies_parsed_at":"2022-09-05T06:01:32.568Z","dependency_job_id":null,"html_url":"https://github.com/chrishunt/favcount","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/chrishunt/favcount","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishunt%2Ffavcount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishunt%2Ffavcount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishunt%2Ffavcount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishunt%2Ffavcount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrishunt","download_url":"https://codeload.github.com/chrishunt/favcount/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrishunt%2Ffavcount/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30246724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-07-31T22:01:15.014Z","updated_at":"2026-03-08T05:32:01.082Z","avatar_url":"https://github.com/chrishunt.png","language":"JavaScript","readme":"# [favcount.js](http://chrishunt.co/favcount)\n\nEnhance your useless favicon with **FavCount\u0026trade;** technology.\n\n[chrishunt.co/favcount](http://chrishunt.co/favcount)\n\n## Usage\n\nLoad up `favcount.js` in your HTML.\n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003clink rel='icon' type='image/png' href='path/to/favicon.ico'\u003e\n  \u003c/head\u003e\n\n  \u003cbody\u003e\n    ...\n    \u003c!-- bottom of body --\u003e\n    \u003cscript src='favcount.js' type='text/javascript'\u003e\u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nCreate and use a `Favcount` in your JavaScript.\n\n```javascript\nvar favicon = new Favcount('path/to/favicon.ico');\n\nfavicon.set(10);\n```\n\nIf you want to make that icon really pop, change it out to something else or\nadjust the opacity.\n\n```javascript\nfavicon.icon = 'path/to/different/icon.ico';\nfavicon.opacity = 0.5;\n\nfavicon.set();\n```\n\n## Example\n\nHave a look at the favicon for the [home page](http://chrishunt.co/favcount).\nNotice how amazing it is? Here's the code.\n\n```javascript\nvar favicon = new Favcount('icons/blue-dot.ico');\n\nfunction setCount(count) {\n  if (count \u003e 99) { count = 1 };\n\n  favicon.set(count);\n\n  setTimeout(function() {\n    setCount(count + 1);\n  }, 500);\n}\n\nsetCount(1);\n```\n\n## License\n\n[MIT License](https://github.com/chrishunt/favcount/blob/master/LICENSE)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrishunt%2Ffavcount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrishunt%2Ffavcount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrishunt%2Ffavcount/lists"}