{"id":24633175,"url":"https://github.com/kidgodzilla/live-counter","last_synced_at":"2026-04-11T13:33:13.959Z","repository":{"id":76902267,"uuid":"299564002","full_name":"kidGodzilla/live-counter","owner":"kidGodzilla","description":"A live mjpeg counter that you can embed in your website","archived":false,"fork":false,"pushed_at":"2024-03-27T05:48:52.000Z","size":99,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T04:43:53.521Z","etag":null,"topics":["counter","express","hit","hit-counter","javascript","live","mjpeg","node"],"latest_commit_sha":null,"homepage":"https://hits.serv.rs/","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/kidGodzilla.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}},"created_at":"2020-09-29T09:12:47.000Z","updated_at":"2022-11-02T08:58:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"812d0430-90ed-44bc-b188-b8f8266612a6","html_url":"https://github.com/kidGodzilla/live-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/kidGodzilla%2Flive-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidGodzilla%2Flive-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidGodzilla%2Flive-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidGodzilla%2Flive-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kidGodzilla","download_url":"https://codeload.github.com/kidGodzilla/live-counter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566927,"owners_count":20473451,"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","express","hit","hit-counter","javascript","live","mjpeg","node"],"created_at":"2025-01-25T08:14:03.776Z","updated_at":"2025-12-31T00:08:02.144Z","avatar_url":"https://github.com/kidGodzilla.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Live Counter\nA live JPEG or [MJPEG](https://en.wikipedia.org/wiki/Motion_JPEG) hit counter that you can embed in your website.\n\n## Demo\n\nView a live demo at: https://hits.serv.rs/\n\n![Counter](https://hitcounter.mr365.co/static/1)\n\n## How it Works\n\n1. Each request serves an image that displays the number of requests made to that specific image.\n2. You can choose either a `live` or `static` image. The `live` image is served as `mjpeg`, a format which can be updated continuously after the page load is complete.\n3. The image can be customized by changing the default font, and colors.\n\n## Installation\n\nYou can install the source for this server by downloading this repository, and running `npm install`.\n\n## Usage\n\nEach instance of the counter you embed on a website should have a unique ID. It can be anything (up to 20 characters) -- we don't pick that for you. It could be something programmatic like `md5(location.hostname)` a GUID, numeral Id (`12345`), or any other url-safe string you like (like `foo%20bar`).\n\n```html\n\u003cimg src=\"http://localhost:5000/live/12345\" height=\"40\" /\u003e\n```\n\n## Customization\n\nYou can customize the widget by passing parameters, like:\n\n```html\n\u003cimg src=\"http://localhost:5000/live/12345?font=Futura\u0026color=black\u0026bg=white\" height=\"40\" /\u003e\n```\n\n## Embedding a static image\n\nIf you don't want to use a live image, you can use a static one, like:\n\n```html\n\u003cimg src=\"http://localhost:5000/static/12345\" height=\"40\" /\u003e\n```\n\n---\n\nInspired by these blog posts: \n\nhttps://underjord.io/live-server-push-without-js.html \n\n[[Discuss on HN]](https://news.ycombinator.com/item?id=24613610)\n\n--\n\nhttps://joshwcomeau.com/react/serverless-hit-counter/ \n\n[[Discuss on HN]](https://news.ycombinator.com/item?id=24617086)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkidgodzilla%2Flive-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkidgodzilla%2Flive-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkidgodzilla%2Flive-counter/lists"}