Lynx: ByteDance’s UI Framework Goes Open Source

TribeNews
By TribeNews 4 Views Add a Comment
2 Min Read

Lynx, a cross-platform UI framework developed by ByteDance, was made open-source by its development team on March 5. The framework aims to help web developers leverage their existing skills to build native interfaces for both mobile and web platforms simultaneously. Already deployed in applications like TikTok, the framework boasts high-performance capabilities, a multi-functional rendering engine, and a modern Rust-based toolchain.

The framework embraces familiar web development paradigms, supporting CSS animations, selectors, and variables to ensure flexible and modern interface customization. Its most distinctive architectural decision involves splitting user scripts across two independent runtimes:

- Advertisement -

A main thread runtime driven by the PrimJS engine, handling high-priority events

A background runtime ensuring low-load and non-blocking main thread operations

- Advertisement -

SEE ALSO: ByteDance Unveils Trae AI IDE for Chinese Developers

Lynx has two performance highlights:

- Advertisement -

Instant First-Frame Rendering (IFR): By briefly blocking the main thread, Lynx ensures the first frame is completely rendered, providing an immediate response user experience.

Main Thread Script (MTS): A static-scheduled code segment handling high-priority events and gestures, enabling native-like interaction feel.

Originally developed by ByteDance’s engineering team, Lynx has received significant support from TikTok. The platform has backed the framework’s open-source release, providing financial, technical, and community support.

- Advertisement -

The framework is particularly suited for diverse, rich-interaction scenarios, offering web developers a powerful tool to create cross-platform interfaces with a single codebase.

Sign up today for 5 free articles monthly!

Leave a Comment
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected & This Is Prohibited!!!

We have detected that you are using extensions to block ads and you are also not using our official app. Your Account Have been Flagged and reported, pending de-activation & All your earning will be wiped out. Please turn off the software to continue

You cannot copy content of this app