microsoft/clarity
A behavioral analytics library that uses dom mutations and user interactions to generate aggregated insights. observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2316
- days_rel: n/a
- days_push: 9
- n_releases_24m: 0
Adoption not part of the score
2722 stars · 280 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Microsoft Clarity is an open-source behavioral analytics library written in TypeScript that tracks DOM mutations and user interactions to generate session replays and heatmaps. It powers Microsoft's hosted Clarity product and emphasizes privacy (data masking) and performance.
Use cases
- record and replay user sessions on my website
- generate heatmaps of where users click and scroll
- understand how users navigate and interact with my site
- self-host behavioral analytics with privacy masking
- debug user experience issues by watching real sessions
- capture live user interactions with a browser devtools extension
When to choose
- you need privacy-first session replay and heatmap analytics you can inspect or self-host
- you want the same instrumentation code that powers Microsoft's hosted Clarity product
- you need lightweight client-side tracking that works across modern browsers and devices
When to avoid
- you need a turnkey hosted dashboard with AI insights - use clarity.microsoft.com instead of the raw library
- you need server-side or backend analytics rather than client-side user behavior
- you need full-featured product analytics like funnels and cohorts out of the box - the open-source repo provides instrumentation, decode, and visualization packages rather than a complete platform
Facets
library · maturity active
analytics monitoring developer-tools analytics web-development frontend privacy browser session-replay heatmap behavioral-analytics user-experience dom-mutation-tracking privacy-first product-analytics web-server nodejs typescript
10 sources
- readme: https://github.com/microsoft/clarity · fetched 2026-08-28 · 07a507d05bde
- homepage: https://clarity.microsoft.com · fetched 2026-08-29 · 958a35368177
- site_page: https://docs.microsoft.com/en-us/clarity · fetched 2026-08-29 · f80c0391b64a
- site_page: https://clarity.microsoft.com/session-recordings · fetched 2026-08-29 · d47b93e92715
- site_page: https://clarity.microsoft.com/heatmaps · fetched 2026-08-29 · 0371012b0185
- site_page: https://clarity.microsoft.com/copilot · fetched 2026-08-29 · 544ab1b34748
- site_page: https://clarity.microsoft.com/ai-visibility · fetched 2026-08-29 · 44d4fb95e373
- site_page: https://clarity.microsoft.com/brand-agents · fetched 2026-08-29 · 1e34fc671f82
- site_page: https://clarity.microsoft.com/integrations · fetched 2026-08-29 · b7a23c1dbea3
- site_page: https://clarity.microsoft.com/mobile-apps · fetched 2026-08-29 · c66777b58017
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| microsoft/clarity | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="microsoft/clarity")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem