README проекта с github.com/Snapchat/Valdi. Одним файлом markdown: README.md.
[!NOTE] Valdi 1.0: Valdi has been widely used in Snap's production apps for the last 8 years, and 1.0 is the first stable release. The web target remains in beta. See VERSIONING.md.
Valdi is a cross-platform UI framework that delivers native performance without sacrificing developer velocity. Write your UI once in declarative TypeScript, and it compiles directly to native views on iOS, Android, and macOS—no web views, no JavaScript bridges.
A basic Valdi component:
import { Component } from 'valdi_core/src/Component';
class HelloWorld extends Component {
onRender() {
const message = 'Hello World! 👻';
<view backgroundColor='#FFFC00' padding={30}>
<label color='black' value={message} />
</view>;
}
}
Prerequisites: Node.js 20 or later (22 recommended) and, on macOS, Xcode 26.5 or 27. valdi dev_setup installs the rest. See the Installation Guide.
# Install Valdi CLI
npm install -g @snap/valdi
# One-command setup (installs all dependencies)
valdi dev_setup
# Create your first project
mkdir my_project && cd my_project
valdi bootstrap
valdi install ios # or android
[!TIP] Editor setup: No Valdi-specific extension is needed. See VSCode/Cursor setup to point your editor at the workspace TypeScript version.
The apps/ directory contains runnable examples:
| App | What it shows |
|---|---|
| helloworld | Minimal component — the fastest way to get something on screen |
| navigation_example | Screen navigation patterns |
| managed_context_example | Sharing state across components with managed context |
| valdi_gpt | AI-driven dynamic UI — Valdi rendering UI described at runtime |
| cli_example | Building a Valdi CLI application |
| benchmark | Performance benchmarks |
Valdi is a cross-platform UI framework designed to solve the fundamental problem of cross-platform development: velocity vs. runtime performance. For 8 years, it has powered a large portion of Snap's production apps.
Unlike frameworks that rely on web views or JavaScript bridges, Valdi compiles declaratively rendered TypeScript components into platform-native views. Valdi also includes several other performance advantages:
Learn more in our Performance Optimization Guide.
Valdi eliminates the traditional compile-test-debug cycle that slows native development:
Valdi integrates easily into existing apps - start small and scale as needed:
<custom-view>Valdi generates type-safe bindings between TypeScript and native platforms:
Please follow the contributing guidelines.
Valdi is made available under the MIT License. Third-party software that Valdi includes, and its licenses, are listed in THIRD_PARTY_NOTICES.md.