Say Goodbye to Google Analytics: Meet Glance, a Single-Binary, Svelte 5 + SQLite Self-Hosted Solution
说明与用途
Glance 是一个自托管的 Web 分析平台,使用单个 Go 二进制文件和 SQLite 数据库,提供实时数据,无需 Cookie 或复杂基础设施,易于部署并完全掌控数据。
问题
Developers and indie hackers need real‑time web analytics without heavy tracking scripts, cookie banners, or complex database clusters.
结果
Glance delivers privacy‑respecting, real‑time web analytics with zero maintenance, no cookie banners, and minimal server footprint, enabling developers to self‑host analytics on a single VPS.
工作流
- 1. Pull the Glance Docker image or download the Go binary.
- 2. Run the container with a docker‑compose file, exposing port 8081 and mounting a data volume.
- 3. Access http://localhost:8081, create a website profile, and obtain the generated glance.js script tag.
- 4. Add the script tag to the
<head>of your site with the data-site attribute. - 5. Glance.js posts events to the backend, which queues them in memory and batches writes to SQLite.
- 6. View real‑time analytics in the Svelte 5 dashboard, including pageviews, bounce rates, and geo heatmaps.
证据
Glance is a privacy‑first, self‑hosted web analytics platform packaged into a single Go binary and SQLite database, complete with a stunning Svelte 5 dashboard.
It’s a zero‑maintenance, cookieless web analytics platform that runs entirely on your own infrastructure.
The lightweight tracking script (glance.js) fires a quick POST request to the Go backend… The HTTP request immediately returns a 202 Accepted status…
- 记录日期: 2026-09-15T06:45:27.262Z