facebook/litho

A declarative framework for building efficient UIs on Android.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

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

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.

Repository Insights (GitGenius)

Median issue/PR response: 12.7 hours
Mean response time: 32.8 days
90th percentile: 30.7 days
Tracked items: 11

Most active contributors

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.

According to GitGenius activity tracking, the repository shows moderate engagement patterns with a median issue and pull request response latency of 12.7 hours, though the mean response time of 787.8 hours indicates occasional delays on some items. The most active contributors tracked include astreet with 6 recorded events, zielinskimz with 4 events, and philadelphia with 3 events. The repository maintains connections with other open-source projects through overlapping contributors, including apache/beam, oracle/graal, and decolua/9router, suggesting cross-pollination of ideas and practices across these communities.

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.

litho
by
facebookfacebook/litho

Repository Details

Fetching additional details & charts...