{"id":40029370,"url":"https://github.com/revotale/lovely-eye","last_synced_at":"2026-01-25T12:02:33.314Z","repository":{"id":331980188,"uuid":"1129927687","full_name":"RevoTale/lovely-eye","owner":"RevoTale","description":"Lovely Eye is a modern, lightweight, privacy-focused analytics. Open-source and designed to self-host. Simpler low-RAM alternative to Umami, Plausible and Matomo.","archived":false,"fork":false,"pushed_at":"2026-01-19T11:13:22.000Z","size":1083,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-19T11:51:55.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RevoTale.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-07T19:30:49.000Z","updated_at":"2026-01-07T20:16:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/RevoTale/lovely-eye","commit_stats":null,"previous_names":["revotale/lovely-eye"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/RevoTale/lovely-eye","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RevoTale%2Flovely-eye","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RevoTale%2Flovely-eye/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RevoTale%2Flovely-eye/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RevoTale%2Flovely-eye/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RevoTale","download_url":"https://codeload.github.com/RevoTale/lovely-eye/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RevoTale%2Flovely-eye/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28646550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2026-01-19T04:06:39.965Z","updated_at":"2026-01-21T23:03:03.129Z","avatar_url":"https://github.com/RevoTale.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lovely Eye\n\nPrivacy-focused web analytics. Self-hosted alternative to Google Analytics, Umami and Plausible. Designed for low resource systems. Written in Go.\n\n![Lovely Eye Logo Banner](./preview.png \"Lovely Eye\")\n\n\u003e [!WARNING]\n\u003e Work in progress\n\n## Features\n\n- **Privacy-first**: no cookies, daily visitor ID rotation\n- **Bot filtering**: excludes crawlers, scrapers, monitoring bots\n- **Lightweight**: low-RAM Docker builds, SQLite or PostgreSQL\n- **Real-time dashboard**: GraphQL API with React UI\n- **Custom events**: track clicks and user interactions\n\n## Quick Start\n\n### Docker (SQLite)\n\n```yaml\nservices:\n  lovely-eye:\n    image: ghcr.io/revotale/lovely-eye:latest\n    ports:\n      - \"8080:8080\"\n    environment:\n      - JWT_SECRET=your-secret-key-min-32-chars\n      # Optional: enable country stats with a MaxMind license key (auto-downloads to /data)\n      - GEOIP_MAXMIND_LICENSE_KEY=your-maxmind-license-key\n    volumes:\n      - lovely-eye-data:/app/data\n      # Optional: mount /data once for both SQLite and GeoIP\n      - ./data:/data\n    restart: unless-stopped\n\nvolumes:\n  lovely-eye-data:\n```\n\n### Docker (PostgreSQL)\n\n```yaml\nservices:\n  lovely-eye:\n    image: ghcr.io/revotale/lovely-eye:latest\n    ports:\n      - \"${PORT:-8080}:8080\"\n    environment:\n      - DB_DRIVER=postgres\n      - DB_DSN=postgres://${POSTGRES_USER:-lovely}:${POSTGRES_PASSWORD:-lovely}@lovely-eye-db:5432/${POSTGRES_DB:-lovely_eye}?sslmode=disable\n      - JWT_SECRET=${JWT_SECRET:?JWT_SECRET is required}\n      - INITIAL_ADMIN_PASSWORD=${INITIAL_ADMIN_PASSWORD}\n      - INITIAL_ADMIN_USERNAME=${INITIAL_ADMIN_USERNAME}\n    depends_on:\n      lovely-eye-db:\n        condition: service_healthy\n    networks:\n      - lovely-eye-net\n    restart: unless-stopped\n\n  lovely-eye-db:\n    image: postgres:18.1-alpine\n    environment:\n      - POSTGRES_USER=${POSTGRES_USER:-lovely}\n      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-lovely}\n      - POSTGRES_DB=${POSTGRES_DB:-lovely_eye}\n    volumes:\n      - lovely-eye-data:/var/lib/postgresql\n    networks:\n      - lovely-eye-net\n    healthcheck:\n      test: [\"CMD-SHELL\", \"pg_isready -U ${POSTGRES_USER:-lovely} -d ${POSTGRES_DB:-lovely_eye}\"]\n      interval: 5s\n      timeout: 5s\n      retries: 5\n    restart: unless-stopped\n\nvolumes:\n  lovely-eye-data:\n\nnetworks:\n  lovely-eye-net:\n\n```\n\n### From Source\n\nRequires Go 1.25+.\n\n```bash\ncd server\ngo run ./cmd/server\n```\n\nServer starts at http://localhost:8080. The first registered user becomes admin. SQLite by default.\n\n## Configuration\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `SERVER_HOST` | `0.0.0.0` | Server bind address |\n| `SERVER_PORT` | `8080` | Server port |\n| `DB_DRIVER` | `sqlite` | `sqlite` or `postgres` |\n| `DB_DSN` | `file:data/lovely_eye.db?cache=shared\u0026mode=rwc` | Database connection string |\n| `JWT_SECRET` | (random) | JWT signing key (min 32 chars, required for production) |\n| `SECURE_COOKIES` | `true` | Use secure cookies (requires HTTPS). Set to `false` for local dev |\n| `ALLOW_REGISTRATION` | `false` | Allow new user registration after first user |\n| `GEOIP_DB_PATH` | `/data/GeoLite2-Country.mmdb` | Path to GeoLite2-Country.mmdb for country stats |\n| `GEOIP_DOWNLOAD_URL` | `https://download.db-ip.com/free/dbip-country-lite.mmdb.gz` | Custom GeoIP download URL (mmdb, gz, or tar.gz) |\n| `GEOIP_MAXMIND_LICENSE_KEY` | - | MaxMind license key for GeoLite2 auto-download |\n\nCountry tracking downloads the GeoLite2 database on demand when at least one site enables it. If the download fails, the dashboard will show the error in site settings.\n\n## Custom Events\n\n```html\n\u003cscript\u003e\n  window.lovelyEye?.track('error', {\n    message: 'Checkout failed',\n    code: 'PAYMENT_DECLINED',\n  });\n\u003c/script\u003e\n```\n\nEvents must be allowlisted in site settings. Unknown event names or fields are ignored.\n\n## Documentation\n\n- [ANALYTICS.md](./ANALYTICS.md) - tracking mechanics\n- [PRIVACY.md](./PRIVACY.md) - privacy handling\n\n## Authentication\n\nJWT tokens in HttpOnly cookies with SameSite settings:\n\n- **HttpOnly**: prevents JavaScript access (XSS protection)\n- **Secure**: HTTPS only in production\n- **SameSite=Strict** (production) or **Lax** (development): prevents CSRF\n\n\n## License\n\nCopyright 2025 RevoTale\n\nLicensed under [AGPL-3.0](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevotale%2Flovely-eye","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevotale%2Flovely-eye","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevotale%2Flovely-eye/lists"}