Valdi lets teams build mobile and desktop UIs from declarative TypeScript that compiles to native views on iOS, Android, and macOS without web views or JavaScript bridges.
Overview
Valdi is a cross-platform UI framework aimed at balancing developer speed with native runtime performance. You describe interfaces in declarative TypeScript (TSX), and the toolchain compiles them into platform-native views on iOS, Android, and macOS rather than rendering through web views or bridge layers.
The stack emphasizes performance-oriented mechanics such as a C++ layout engine on the main thread, view recycling and pooling, incremental component re-renders, and viewport-aware inflation for scrolling. It supports hot reload across targets, VSCode debugging with breakpoints and profiling, flexbox layouts with RTL, worker threads, native animations, gesture handling, and a built-in component testing framework.
Adoption can be gradual: Valdi components can embed into existing UIKit or Android hierarchies, native views can sit inside Valdi layouts, and polyglot modules let you bind C++, Swift, Kotlin, or Objective-C to TypeScript. TypeScript interfaces can generate Kotlin, Objective-C, and Swift bindings for bidirectional data and callbacks, including protobuf-oriented serialization.
The framework has been used in Snap production applications and ships example apps covering navigation, shared state, CLI-style apps, benchmarks, and runtime-described UI scenarios. Build integration includes Bazel for reproducible incremental builds.
Key features
- TypeScript TSX declarative UI
- Compiles to native iOS Android macOS views
- Hot reload without full recompile
- View recycling and incremental renders
- C++ flexbox layout engine
- Embed Valdi in native apps and vice versa
- Polyglot modules with type-safe bindings
- VSCode debugging and component tests
Use cases
- Shared UI across iOS Android and macOS
- Embedding UI in existing native apps
- Performance-sensitive scrolling interfaces
- Background work via worker threads
- Prototype UIs with example app templates