facebook/litho

A declarative framework for building efficient UIs on Android.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 33 minutes ago
Added to GitGenius on August 8th, 2026
Created on January 27th, 2017
Open Issues & Pull Requests: 115 (+0)
GitHub issues: Enabled
Number of forks: 764
Total Stargazers: 7,778 (+0)
Total Subscribers: 180 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 22.8 hours
Mean response time: 40.1 days
90th percentile: 305.3 days
Tracked items: 9

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 8
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 415 days
Stale 30+ days: 8
Stale 90+ days: 8

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Litho is a declarative framework developed by Facebook for building efficient user interfaces on Android, written primarily in Kotlin. The framework enables developers to construct UI components using a declarative API where they describe layouts based on immutable inputs, allowing the framework to handle the underlying rendering and layout logic automatically.

The framework incorporates several key performance-oriented features. Asynchronous layout capabilities allow Litho to measure and layout UI elements ahead of time without blocking the main UI thread, which is critical for maintaining responsive Android applications. View flattening functionality leverages Yoga, a cross-platform layout engine, to automatically reduce the number of ViewGroup instances in the UI hierarchy, thereby improving rendering performance. Fine-grained recycling enables any component, whether text or image, to be recycled and reused throughout the UI, minimizing memory overhead and improving efficiency.

Getting started with Litho requires initializing SoLoader in the application class and creating components within activities. The framework supports integration with both Gradle and Buck build systems, with comprehensive documentation available at fblitho.com. The project includes a sample application demonstrating practical usage patterns, which can be built and run using either Buck or Gradle commands.

The project maintains an active community presence across multiple platforms. Developers can seek help through StackOverflow using the litho tag, engage in real-time discussion on Gitter, or join the dedicated Facebook Group for announcements and updates. The repository enforces a Code of Conduct for contributors and provides detailed contribution guidelines, coding style documentation, and best practices documentation to maintain code quality and consistency.

Litho is distributed under the Apache 2.0 License, making it freely available for both open-source and commercial use. The framework represents Facebook's approach to solving Android UI development challenges through declarative programming patterns, asynchronous processing, and automatic optimization techniques that reduce boilerplate code while improving application performance.