Valdi 1.0: Snap’s Native UI Framework Is Stable

Valdi 1.0 logo, Snap's cross-platform native UI framework

Snap has shipped Valdi 1.0, the first stable release of its cross-platform UI framework, after almost nine years of internal development. A single TypeScript codebase becomes real native views on Apple and Android devices and on the Mac. Nothing runs through a WebView or a classic JavaScript bridge.

A beta went public in November 2025. The GitHub repository has since passed 16,000 stars and 500 forks, and people who don’t work at Snap have sent code in.

Where Snap already uses it

Valdi 1.0 isn’t a new experiment. The framework has run in production inside Snap’s Android and iOS apps for years, drawing screens such as Ads, Search, Profile and Memories. Those areas demand quick responses and native-feeling interaction, and the framework was shaped by that.

Interface logic is shared between platforms, while the pixels still come from each platform’s own views. An existing app can move over one piece at a time, so no big-bang rewrite is needed. Starting a new app entirely in Valdi is also possible.

Valdi logo
Image: eng.snap.com

How the framework is put together

Valdi rests on a compiler, a runtime and a module system.

The compiler packages each TypeScript module as a .valdimodule file and produces native bindings for both mobile platforms. There’s no virtual DOM diffing. Instead, TSX is converted into imperative rendering code that gathers every UI change into one binary call to the native side. Images, translations and source maps are also handled there, and on Android JavaScript can be turned into QuickJS bytecode.

A C++ runtime serves mobile and desktop, and the web gets its own version. It embeds a JavaScript engine: JavaScriptCore on Apple platforms, QuickJS or Hermes elsewhere. Flexbox layout comes from Yoga, and each element maps directly to a UIKit or Android view. Two tricks cut overhead at the native boundary: interned strings, and 128-bit variant values. Only attributes that changed get sent across.

A module bundles its own code, assets and dependencies. Because modules load lazily, features nobody has opened yet don’t slow a cold start.

Dropping down to native code

An interface is declared in TypeScript with annotations and implemented in Swift, Kotlin or C++, and the compiler writes the typed bindings. Shared logic can live in TypeScript and call a Swift function that hands back data or a ready view. A speed-critical algorithm can go the other way: written in C++, called from TypeScript.

Hot reload swaps in an updated module, along with anything depending on it, while the app keeps running. Snap says seeing an edit on a real phone can take less than a second, though that varies with the change and the setup.

Tooling in the repository

The open source repo holds the whole framework (compiler, runtime, layout and modules) plus Bazel rules for building modules, apps and standalone binaries. It also has documentation and sample apps.

  • The CLI installs from npm as @snap/valdi.
  • valdi dev_setup configures the local environment and valdi bootstrap starts a new project.
  • valdi install deploys to an iOS or Android simulator or device, and valdi hotreload pushes changes to a running session.
  • valdi inspect attaches to a running session so you can browse the element tree and chase layout bugs on the device.
  • valdi profile captures runtime traces.

The CLI also bundles AI skills, listed through valdi skills –help. These are prompts that brief AI coding assistants on how the framework works.

What the Valdi 1.0 promise covers

Stability applies to the public TypeScript APIs exported by the core modules and to the Bazel rules and macros, valdi_module among them. Anything marked experimental is excluded, as is the web target until it leaves beta.

Snap also published a deprecation policy. A public API slated for removal or change in a major version is first deprecated in a minor one, with a warning where feasible and a pointer to the replacement. It then remains for a minimum of one minor release and 90 days. Security fixes can bypass that window.

Platform support and what comes next

Full support covers iOS, Android and macOS. The web target is a beta: expect changing APIs, with fixes made when time allows. Linux and a terminal UI are still in development, each with a public RFC, and neither will be called fully supported before matching Android and iOS feature for feature.

With Valdi 1.0 out, Snap points developers to GitHub Issues for bugs and feature requests and GitHub Discussions for questions. Larger changes go through the RFC process, though Snap asks contributors to raise them in Discussions first.

Source: eng.snap.com

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.