ElementaryUI – Swift, in the Browser

Hacker News Top Tools

Summary

ElementaryUI 是一个开源框架,让开发者能通过 WebAssembly 在浏览器中原生运行声明式 Swift 应用,并提供类似 SwiftUI 的 API、内置响应式状态管理以及小巧的 kB 级 WASM 包体积。

No content available
Original Article
View Cached Full Text

Cached at: 10/30/26, 03:09 AM

# ElementaryUI - Swift, in the browser. Source: [https://elementary.codes/](https://elementary.codes/) [Skip to content](https://elementary.codes/#VPContent) ## ElementaryUISwift, in the browser\. ![](https://elementary.codes/elementary-logo.svg) - 🌐 Run declarative Swift applications natively in the browser with WebAssembly - 🎨 ## SwiftUI\-inspired APIs Familiar and intuitive syntax for building web UIs - 💫 ## Built\-in Reactivity Automatic state management with @State, @Environment, and @Reactive - 📦 ## Tiny Binaries Full Embedded Swift support means kB\-sized wasm bundles instead of MB - ✨ ## Magical Animations Powerful CSS\-based animation system including automatic FLIP transitions - 🚀 ## Vite\-Powered Development Fast dev server with hot reload for rapid iteration swift ``` @View struct LoveCounter { @State var count = 1 var body: some View { p { String(repeating: "❤️", count: count) } if count < 10 { button { "More Love" } .onClick { count += 1 } } else { p { "Enough love for you!" } button { "Less Love" } .onClick { count = 1 } } } } ``` --- Thank you to everyone supporting this open‑source project financially\. Please consider joining them by[sponsoring ElementaryUI](https://github.com/sponsors/sliemeobn)\.

Similar Articles

Bonsai: Janestreet's UI Library

Hacker News Top

Bonsai is Jane Street's open-source UI library for building reactive web applications in OCaml, featuring composable state, incremental rendering, and a templating language.

EditUI

Product Hunt

EditUI 是一个免费开源的 Chrome 扩展,让用户在实际运行的网页上直接点击 UI 元素并留下修改指令,然后批量发送给 Claude Code 等编码代理执行更改,无需配置仓库或后端。