Built something? We create video reels & spotlights for GitHub projects.Promote your project →
microsoft
Home / TypeScript / clarity

microsoft/clarity

A behavioral analytics library that uses dom mutations and user interactions to generate aggregated insights.

TypeScript ◇ clarity MIT
★2.7KSTARS
⑂284FORKS
!164ISSUES
🏆#1,580GLOBAL RANK
🔥4DAYS TRENDING
🚀
Maintainer Growth Kit for clarity

Claim this project, add your verified backlink badge to your README, and download milestone cards.

Claim Repo

Star History

Continuous Observations
Interactive star growth chart for microsoft/clarity
CSV

Momentum

+69

STARS · LAST 30 DAYS

2

PER DAY

#214

MOST-STARRED TypeScript

Window7 days30 days90 days
Stars gained+14+69+180
Per day222
Forks gained+1+6+14

clarity gained 69 stars in the last 30 days, about 2 a day, and now has 2.7K. It is about 6 years old and has averaged roughly 457 stars a year. It ranks #214 among TypeScript repositories and #1,580 across all languages on GitHubRepo.

Trending Record

clarity has maintained a continuous presence across global trending indexes, peaking at #1212. Below is the 30-day activity profile:

💡 Overview

clarity is an open-source project written in TypeScript: A behavioral analytics library that uses dom mutations and user interactions to generate aggregated insights.

Engineered for speed, consistency, and developer ease, it solves common hurdles in clarity, heatmap, session-replay. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.

⚡ Key Features

1

Optimized execution pipeline written in TypeScript for predictable speed.

2

Zero-friction configuration with comprehensive sensible defaults out of the box.

3

Cross-platform runtime support across Linux, macOS, and Windows environments.

4

Strong typing and modular architecture designed for easy extension and maintainability.

5

Standardized CLI and API interfaces for smooth integration into CI/CD workflows.

6

Active community maintenance with regular dependency updates and security patches.

📥 Installation

terminal
$ npm install clarity

⚙ System Requirements

Platforms

  • • macOS
  • • Linux
  • • Windows

Runtime & Dependencies

Node.js >= 18, npm, pnpm or bun

Architecture

x86_64, ARM64 (Apple Silicon & Graviton)

🧠 How It Works

clarity coordinates its core functionality through a modular TypeScript pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.

🎯 Production Use Cases

Production System Integration

Embed clarity into TypeScript backend services to handle core application logic.

CI/CD Automated Pipelines

Run automated validation, builds, and integration suites during deployments.

Developer Tooling & Workflows

Accelerate developer onboarding with pre-configured project utilities.

Open Source Extension

Fork and customize internal modules under the repository's open MIT license.

🚀 Getting Started

1

Install clarity using your package manager: `npm install clarity`

2

Initialize your project workspace or configuration file for clarity.

3

Import clarity into your codebase or invoke it directly from your terminal.

4

Execute your test suite or run `clarity --help` to verify successful setup.

👍 Strengths

Active community backing with 2,743 GitHub stars and verified adoption.
Permissive open-source distribution under the MIT license.
Built in TypeScript for high execution speed and developer familiarity.
Cross-platform compatibility across modern Linux, macOS, and Windows environments.
Clean modular design allowing flexible configuration and pipeline integration.

⚠️ Considerations

Requires familiarity with TypeScript and modern CLI workflows.
Ecosystem extensions may require manual configuration depending on environment constraints.
Active development roadmap means breaking API changes may occur across major versions.

⇄ Alternatives & Direct Competitors

F
freeCodeCamp/freeCodeCamp ★ 456.3K TypeScript

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

Compare ↗
D
deepseek-ai/deepseek-harness ★ 237.6K TypeScript

DeepSeek Harness: Everything is a Plugin.

Compare ↗
V
vuejs/vue ★ 212.8K TypeScript

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

Compare ↗
O
anomalyco/opencode ★ 210.4K TypeScript

The open source coding agent.

Compare ↗

👥 Who Should Use This

Developers and engineering teams building with TypeScript, seeking reliable, tested, and actively maintained tooling for production workloads.

🏆 Nearby in the Rankings

microsoft/clarity is currently ranked #1,580 by stars across every repository tracked on GitHubRepo. These are adjacent projects:

RankRepositoryLanguageStarsAction
#1,574 Impact-I/reFlutter Python ★ 2.8K Compare ↗
#1,576 trustgraph-ai/trustgraph Python ★ 2.8K Compare ↗
#1,577 paullouisageneau/libdatachannel C++ ★ 2.8K Compare ↗
#1,578 mojolicious/mojo Perl ★ 2.7K Compare ↗
#1,579 redbadger/crux Rust ★ 2.7K Compare ↗
#1,580 microsoft/clarity This Project TypeScript ★ 2.7K
#1,580 getnikola/nikola Python ★ 2.7K Compare ↗
#1,582 Pathoschild/SMAPI C# ★ 2.7K Compare ↗
#1,583 sheeki03/tirith Rust ★ 2.7K Compare ↗
#1,584 marketcalls/openalgo Python ★ 2.7K Compare ↗
#1,585 pvolok/dekit Rust ★ 2.7K Compare ↗

Frequently Asked Questions

What does clarity do? +

A behavioral analytics library that uses dom mutations and user interactions to generate aggregated insights.

What language is clarity written in? +

The primary language is TypeScript. Topics include: clarity, heatmap, session-replay.

Is clarity actively maintained? +

Yes, the last recorded push was on Sep 26, 2026 with 164 open issues being tracked.

How many stars does clarity have? +

clarity has 2,743 stars and 284 forks on GitHub.

How does clarity rank among GitHub repositories? +

With 2,743 stars, microsoft/clarity is ranked #1,580 globally across all repositories tracked on GitHubRepo and #214 among TypeScript projects.

What license is clarity distributed under? +

The repository reports a MIT license. Always verify the repository LICENSE file for legal terms.

From our network
FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.