{"id":26253959,"url":"https://github.com/2mal3/nano-analytics","last_synced_at":"2026-04-26T17:31:09.449Z","repository":{"id":241699025,"uuid":"789723036","full_name":"2mal3/nano-analytics","owner":"2mal3","description":"An extremely lightweight and privacy-preserving analytics platform for self-hosting.","archived":false,"fork":false,"pushed_at":"2025-04-25T09:10:58.000Z","size":3184,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T04:29:58.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2mal3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-21T11:32:38.000Z","updated_at":"2025-04-25T09:11:01.000Z","dependencies_parsed_at":"2024-07-10T17:15:29.779Z","dependency_job_id":"f66f2dd6-01c4-41f8-b57c-f446602cd59b","html_url":"https://github.com/2mal3/nano-analytics","commit_stats":null,"previous_names":["2mal3/nano-analytics"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/2mal3/nano-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2mal3%2Fnano-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2mal3%2Fnano-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2mal3%2Fnano-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2mal3%2Fnano-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2mal3","download_url":"https://codeload.github.com/2mal3/nano-analytics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2mal3%2Fnano-analytics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32307010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T17:23:19.671Z","status":"ssl_error","status_checked_at":"2026-04-26T17:23:19.195Z","response_time":129,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-03-13T18:18:47.035Z","updated_at":"2026-04-26T17:31:09.432Z","avatar_url":"https://github.com/2mal3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nano-analytics\n\nAn extremely lightweight and privacy-preserving analytics platform for self-hosting. It's easy to set up and integrate into your services to anonymously track device, browser, country, date, and your own custom user actions. The statistics are then easily accessible through a web UI.\nThe main idea of this application is based on [this](https://herman.bearblog.dev/how-bear-does-analytics-with-css/) very interesting article from Herman's blog.\n\nThe statistics can be viewed at the `http://\u003cserver address\u003e/stats` url with the correct credentials.\n\n## Setup The Server\n\nI highly recommend using Docker (image: `ghcr.io/2mal3/nano-analytics:latest`).\n\n### Required Configuration\n\n- environment (env) variable: `ADMIN_USERNAME` (default `admin`)\n- env variable: `ADMIN_PASSWORD_HASH` (bcrypt hash of the password, can be generated ith `mkpasswd -m bcrypt \"\u003cpassword\u003e\"`)\n- forward port `1323`\n- volume for `/app/database`\n\n## Integration Into Your App\n\nSomehow call the URL `http[s]://\u003cserver address\u003e/track/\u003cyour application identifier\u003e[?action=\u003ca special action\u003e\u0026referrer=\u003cthe website referrer\u003e]` from the client. Where the application identifier and the action can be any string of your choice.\n\nFor example, a website could do this with the following css class:\n\n```css\nbody:hover {\n    border-image: url(\"\u003curl\u003e\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2mal3%2Fnano-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2mal3%2Fnano-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2mal3%2Fnano-analytics/lists"}