{"id":20046989,"url":"https://github.com/flatypus/pixel","last_synced_at":"2025-05-05T10:31:11.637Z","repository":{"id":208191603,"uuid":"721020192","full_name":"flatypus/pixel","owner":"flatypus","description":"A simple pixel view tracker. Created with elysia + bun + react + drizzle + postgresql","archived":false,"fork":false,"pushed_at":"2024-07-24T13:50:58.000Z","size":1209,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T21:08:00.669Z","etag":null,"topics":["analytics","google-analytics","pixel","pixel-track","pixel-tracker","views"],"latest_commit_sha":null,"homepage":"https://view.flatypus.me","language":"TypeScript","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/flatypus.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}},"created_at":"2023-11-20T07:37:20.000Z","updated_at":"2024-07-24T13:51:02.000Z","dependencies_parsed_at":"2024-04-11T19:58:22.053Z","dependency_job_id":"b8452092-aadf-4618-9bb7-641fb4e73cbe","html_url":"https://github.com/flatypus/pixel","commit_stats":null,"previous_names":["flatypus/pixel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flatypus%2Fpixel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flatypus%2Fpixel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flatypus%2Fpixel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flatypus%2Fpixel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flatypus","download_url":"https://codeload.github.com/flatypus/pixel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252480416,"owners_count":21754773,"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","google-analytics","pixel","pixel-track","pixel-tracker","views"],"created_at":"2024-11-13T11:32:31.740Z","updated_at":"2025-05-05T10:31:11.632Z","avatar_url":"https://github.com/flatypus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pixel\n\n[A simple pixel view tracker.](https://view.flatypus.me)\n\n## How it works\n\nWhen a website is visited, the browser needs to request media from outside sources. This project serves a 1x1 transparent pixel image at a specific route, such that when the browser requests the image, the server can log the request and track the view. By using a unique id in the route, the server can track views for different pages:\n\nEmbed `\u003cimg src=\"https://pixel.flatypus.me/[id]\"\u003e` to start tracking that id. You could also embed `![](https://pixel.flatypus.me/[id]?type=tracker)` in a .md to track on markdown pages, such as this one.\n\nTo view statistics, go to `https://view.flatypus.me/[id]` to view stats.\n\nBut how would you know who or what website is requesting the image? Simple: on each request, it includes a `Referer` header, which tells the server where the request is coming from. I log that site, and allows you to sort the stats by the route.\n\nYou could even go a step further! By specifically adding `\u003cimg src=\"https://pixel.flatypus.me/[id]\" referrerpolicy=\"unsafe-url\"\u003e` to your page, you'll also be able to get the specific full URL, including sorting by paths, of the page that requested the image.\n\n![](https://pixel.flatypus.me/a16be4b2-ae3b-40f7-a946-8c8eaf540670?type=tracker)\n![lam](https://github.com/flatypus/pixel/assets/68029599/0f0aea02-4a2c-43d4-8292-7ee795b45add)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflatypus%2Fpixel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflatypus%2Fpixel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflatypus%2Fpixel/lists"}