Built something? We create video reels & spotlights for GitHub projects.Promote your project →
square
Home / Kotlin / leakcanary

square/leakcanary

A memory leak detection library for Android.

Kotlin ◇ android Apache-2.0
★30KSTARS
⑂4KFORKS
!134ISSUES
🏆#325GLOBAL RANK
🔥1DAYS TRENDING
🚀
Maintainer Growth Kit for leakcanary

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 square/leakcanary
CSV

Momentum

+750

STARS · LAST 30 DAYS

25

PER DAY

#3

MOST-STARRED Kotlin

Window7 days30 days90 days
Stars gained+175+750+2.3K
Per day252525
Forks gained+20+80+200

leakcanary gained 750 stars in the last 30 days, about 25 a day, and now has 30K. It is about 11 years old and has averaged roughly 2.7K stars a year. It ranks #3 among Kotlin repositories and #325 across all languages on GitHubRepo.

Trending Record

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

💡 Overview

leakcanary is an open-source project written in Kotlin: A memory leak detection library for Android.

Engineered for speed, consistency, and developer ease, it solves common hurdles in android, java, kotlin. 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 Kotlin 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
$ git clone https://github.com/square/leakcanary.git
cd leakcanary

⚙ System Requirements

Platforms

  • • macOS
  • • Linux
  • • Windows

Runtime & Dependencies

JDK 17+, Kotlin compiler >= 1.9

Architecture

x86_64, ARM64 (Apple Silicon & Graviton)

🧠 How It Works

leakcanary coordinates its core functionality through a modular Kotlin 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 leakcanary into Kotlin 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 Apache-2.0 license.

🚀 Getting Started

1

Install leakcanary using your package manager: `git clone https://github.com/square/leakcanary.git`

2

Initialize your project workspace or configuration file for leakcanary.

3

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

4

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

👍 Strengths

Active community backing with 30,000 GitHub stars and verified adoption.
Permissive open-source distribution under the Apache-2.0 license.
Built in Kotlin 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 Kotlin 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

M
PhilJay/MPAndroidChart ★ 38.2K Kotlin

A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.

Compare ↗
L
librepods-org/librepods ★ 30K Kotlin

AirPods liberated from Apple's ecosystem.

Compare ↗
S
JunkFood02/Seal ★ 29.3K Kotlin

🦭 Video/Audio Downloader for Android, based on yt-dlp

Compare ↗
M
mihonapp/mihon ★ 23.8K Kotlin

Free and open source manga reader for Android

Compare ↗

👥 Who Should Use This

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

🏆 Nearby in the Rankings

square/leakcanary is currently ranked #325 by stars across every repository tracked on GitHubRepo. These are adjacent projects:

RankRepositoryLanguageStarsAction
#320 ComposioHQ/composio TypeScript ★ 30.3K Compare ↗
#321 chinabugotech/hutool Java ★ 30.3K Compare ↗
#322 better-auth/better-auth TypeScript ★ 30.1K Compare ↗
#323 librepods-org/librepods Kotlin ★ 30K Compare ↗
#324 sampotts/plyr JavaScript ★ 30K Compare ↗
#325 square/leakcanary This Project Kotlin ★ 30K
#326 decolua/9router JavaScript ★ 29.9K Compare ↗
#327 apolloconfig/apollo Java ★ 29.8K Compare ↗
#328 langchain-ai/deepagents Python ★ 29.8K Compare ↗
#329 simstudioai/sim TypeScript ★ 29.7K Compare ↗
#330 micro-editor/micro Go ★ 29.6K Compare ↗

Frequently Asked Questions

What does leakcanary do? +

A memory leak detection library for Android.

What language is leakcanary written in? +

The primary language is Kotlin. Topics include: android, java, kotlin, kotlin-android, leak-canary.

Is leakcanary actively maintained? +

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

How many stars does leakcanary have? +

leakcanary has 30,000 stars and 3,991 forks on GitHub.

How does leakcanary rank among GitHub repositories? +

With 30,000 stars, square/leakcanary is ranked #325 globally across all repositories tracked on GitHubRepo and #3 among Kotlin projects.

What license is leakcanary distributed under? +

The repository reports a Apache-2.0 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.