Skip to content

Anonymous usage statistics for the hub: launch and heartbeat - #5

Merged
Feargin merged 1 commit into
mainfrom
stats-heartbeat
Oct 10, 2026
Merged

Feargin merged 1 commit into
mainfrom
stats-heartbeat

Conversation

@Feargin

@Feargin Feargin commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • New module src-tauri/src/stats.rs: a launch event at startup, then a heartbeat every 5 minutes while the app runs, to POST https://hub.proanima.net/v1/sketchover/events. The hub counts who is online from the heartbeat.
  • New setting Send anonymous usage statistics (11 languages), on by default, including for existing settings files.
  • Only the random install_id, the app version, the OS (darwin for macOS, as in update checks) and the architecture are sent. Debug builds send nothing.
  • reqwest and rustls use the same versions and features as tauri-plugin-updater: no new packages in Cargo.lock.
  • Both READMEs, ROADMAP, CLAUDE.md, CHANGELOG [0.3.0].

Checked

  • npm run check, npm test, cargo fmt, cargo clippy --all-targets -D warnings, cargo test — clean.
  • A client with this TLS setup reached https://hub.proanima.net/health (200).
  • npm start builds and launches the app.

The hub already accepts heartbeat (ProAnima/pas-Hub main).

🤖 Generated with Claude Code

Настройка «Отправлять анонимную статистику» включена по умолчанию.
Уходят только install_id, версия, система и архитектура; по пульсу
хаб считает онлайн. Отладочная сборка ничего не шлёт. reqwest и rustls —
те же, что у плагина обновлений, новых пакетов нет.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Feargin
Feargin merged commit 5b4e9d2 into main Oct 10, 2026
8 checks passed
@Feargin
Feargin deleted the stats-heartbeat branch October 10, 2026 21:03
@Feargin Feargin changed the title Анонимная статистика в хаб: запуск и пульс Anonymous usage statistics for the hub: launch and heartbeat Oct 10, 2026
Feargin added a commit that referenced this pull request Oct 10, 2026
Anonymous usage statistics for the hub: launch and heartbeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant