Valdi 1.0 : Nine Years of Native UI at Snap Scale

Valdi 1.0 : Nine Years of Native UI at Snap Scale

Today we're excited to share Valdi 1.0!
Valdi is Snap’s cross-platform UI framework. We’ve been developing it internally for almost nine years, and today it is used across a range of UI surfaces in our Android and iOS apps. Valdi is used to render UI in critical areas such as Ads, Search, Profile, and Memories.
In November 2025, we open-sourced Valdi in beta. The framework itself was already used in production inside Snap for years; what was new for us was learning how to run a project of this size in the open. At the time of writing, the community response has been encouraging: the repo has more than 16k stars, more than 500 forks, and contributions from developers outside Snap.
A year later, we’re ready to make a stronger commitment. Valdi 1.0 brings stable APIs, robust developer tools, and a streamlined contribution process.
With Valdi, developers write a module once in TypeScript and compile it to native views on iOS, Android, and MacOS. Web support is available in beta, and Linux is on the way. For UI rendering, Valdi does not rely on WebViews or a traditional JavaScript-to-native bridge. It supports native rendering, incremental adoption, and production use at Snap scale.

Responsive UI at Scale
Valdi was developed in response to production requirements at Snap. It supports high-scale mobile UI surfaces with requirements for responsiveness, reliability, and native interaction patterns.
Over the years, that has made Valdi a practical foundation for a range of user-facing product surfaces at Snap. It lets teams share UI logic across platforms while still rendering through native platform views. And because adoption happens view by view, teams can introduce Valdi incrementally instead of rewriting entire apps.

What Valdi Is
The Valdi architecture is built on three primary pillars: the compiler, the runtime, and the module system.
The compiler is responsible for transforming your TypeScript modules into a .valdimodule archive, along with the necessary native bindings for both iOS and Android. Rather than relying on a virtual DOM diffing approach, TSX is converted into an imperative renderer. This stack-based incremental model batches all UI updates into a single binary request to the native layer. Beyond bundling, the compiler manages image processing, localization, and source maps, with the capability to compile JavaScript into QuickJS bytecode specifically for Android.
At the core of the framework is a C++ runtime for mobile and desktop environments, with a tailored implementation for Web. This runtime hosts the JavaScript engine—utilizing QuickJS or Hermes on Android and Linux, and JavaScriptCore on iOS and macOS—integrated with the Yoga layout engine for flexbox support. Elements are mapped directly to native platform views, such as UIKit or Android Views, so UI is rendered using native platform views. To minimize overhead, the system uses interned strings and 128-bit variants for boundary-crossing values, while delta-serialization ensures that only modified attributes are transmitted to the native layer.
Application composition is handled through the module system, where each module serves as an independent unit containing its own source, assets, and dependencies. These modules, which compile into their own .valdimodule files, support lazy loading so unused features can be deferred, helping limit their impact on cold-start time. The system is also polyglot by design; developers define interfaces in TypeScript using annotations, allowing for native implementations in Swift, Kotlin, or C++ while the compiler automatically generates the required typed bindings. For example, you can implement a shared UI or business logic in Valdi Typescript, and call a Swift or Kotlin function that executes it and returns the data or instantiated View. Similarly, you can implement a low level performance-sensitive algorithm in C++, then call it from Typescript and return the data back to your Valdi view or business logic.
This architecture also supports a streamlined developer workflow. Hot reload unloads a module and its dependents to insert the updated version without requiring an app restart. In practice, this means moving from an edit to seeing the result on a physical device can take under a second, depending on the change and development environment.
Incremental by Design
One of Valdi’s most important design choices is that it doesn’t require an all-or-nothing migration.
You can adopt Valdi view by view or screen by screen in an existing app, or build an entire app in Valdi from the ground up. Valdi is also designed to interoperate with native code. When you need to reach a platform API, reuse existing native code, or hand-tune a hot path, it's easy to drop down to native: you declare the interface in TypeScript, implement it in Swift/Kotlin/C++, and Valdi generates the typed bindings.
What’s in the Open Source Repo
The open source repository includes the core components and tooling for building Valdi applications at scale. This encompasses the core framework—the compiler, runtime, layout engine, and module system—alongside Bazel build rules for modules, applications, and standalone binaries. We’ve also included documentation and example apps to help developers get started.
The CLI serves as the primary entry point for developers. You can install it via npm install -g @snap/valdi. From there, valdi dev_setup configures your local environment, while valdi bootstrap initializes a fresh project. Deploying to a simulator or physical device is handled by valdi install <ios|android>, and valdi hotreload pushes code changes to a running development session without a full app restart.
Beyond basic deployment, the CLI provides integrated developer tooling for deeper debugging. Using valdi inspect, you can connect to a live session to traverse the element tree and inspect and debug layout issues directly on device. For performance-sensitive work, valdi profile allows you to capture and analyze detailed runtime traces.
We also provide AI-assisted developer workflows. The CLI includes a set of AI skills, accessible via valdi skills --help, which provide structured prompts intended to give compatible AI coding tools context about the framework’s architecture.
What 1.0 Means
1.0 is a public commitment around the technology we already rely on in production.
A stable public API. It covers the TypeScript APIs exported from Valdi’s core modules and the Bazel rules and macros, such as valdi_module. Experimental APIs, and the Web target while it’s in beta, are outside that promise.
An API support promise. Before we remove or change a public API in a major release, we deprecate it in a minor release, with a warning where we can and a note on what to use instead. It stays available for at least one minor release and 90 days. Security fixes are the exception.
Platform Support
Client target support tiers:
Fully supported: iOS, Android, and MacOS.
Beta: Web. Web is a work in progress APIs and behavior may change, and bugs are fixed on a best-effort basis.
Development:
Linux. Check out the RFC for more info.
Terminal UI (TUI). See RFC.
Frameworks will not graduate to fully supported until they reach feature parity with Android and iOS.
Contributing and Getting Support
Since launch, we’ve been surprised and encouraged by the enthusiasm around Valdi. The project is already better because people outside Snap are filing issues, opening pull requests, and helping shape what the framework becomes.
If you’re interested in contributing or staying updated on our progress, join the conversation through these channels:
GitHub Issues: for bug reports, feature requests, and sharing technical feedback
GitHub Discussions: for asking questions, exploring new ideas, and project show-and-tell
RFC - for proposing larger changes (though drop us a note in Discussions first so we can let you know if you’re headed in the right direction).
Get Started
Install the CLI:
Then set up your environment, bootstrap a new app, and install it on iOS:
From there, you can explore the docs and example apps in the repo.
We’re excited to see what y’all’ll build!