Mochi
Self-hosted analytics for Discord bots: command usage, server growth, and bot health in one dashboard. You run it, you own the data.
Features
- Privacy-friendly — raw user ids are hashed server-side with a per-bot salt and never stored.
- Command analytics — usage counts, success rate, latency, and unique-user metrics.
- Growth tracking — guild joins, leaves, and churn over time, with previous-period comparison.
- Custom events — attach your own metadata for anything the built-in events don’t cover, and explore it per event.
- Error tracking — error events, failing commands, and affected users.
- Health dashboard — per-shard status, gateway ping, and uptime.
- Alerts & digests — Discord webhook alerts for downtime, error spikes, and server drops, plus a weekly summary.
- Realtime activity feed — watch events land as they happen.
- Sharing & embeds — public read-only dashboards, README badges, and embeddable widgets.
- Exports and a Stats API — pull your numbers out
as CSV, JSON, or straight into a
/statscommand. - Per-bot controls — API keys, retention settings, and salt rotation.
How it works
A bot sends events to your Mochi instance through one of the SDKs (or the raw Ingest API). Mochi stores them in ClickHouse, hashes user ids so you never hold raw identifiers, and renders everything in a Next.js dashboard.
Next steps
License
The Mochi server is licensed under AGPL-3.0-or-later. The SDKs are
Apache-2.0. The Mochi name, logos, and branding are not covered by these
licenses and may not be used to imply endorsement or to operate a confusingly
similar hosted service.
Last updated on