mogwai is a library for developing graphical interfaces using Rust, primarily targeting web browsers through WebAssembly. Its approach differs from frameworks that organise applications around a global component tree or a conventional callback-based event system. Instead, widgets are ordinary Rust types, and interactions are processed asynchronously. An application can wait for an event, update its state, and then wait for the next event in a sequence that follows the structure of the program.
The library provides abstractions for constructing views and responding to changes without requiring developers to manage individual browser DOM operations directly. Its design separates the description of an interface from the platform responsible for displaying it. Browser rendering and server-side rendering use related view abstractions, allowing interface logic to be shared where appropriate. State changes are communicated through reactive proxies that update the relevant parts of an existing view.
This is free and open source software.
Key Features
- Declarative view construction – describe interface elements using the rsx! macro.
- Asynchronous events – treat user interactions as futures rather than conventional callbacks.
- Pull-based event handling – process events through asynchronous widget steps.
- Widget composition – define reusable interface elements as ordinary Rust types.
- Reactive state – use Proxy values to propagate changes to associated views.
- Targeted view updates – patch interface elements when their associated reactive data changes.
- View abstraction – separate interface definitions from platform-specific rendering operations.
- Server-side rendering – produce HTML output through the server rendering backend.
- Component derivation – use macros to derive view-child and view-property implementations.
- Browser integration – construct elements, apply styles, and process DOM events through the web backend.
Website: github.com/schell/mogwai
Support:
Developer: Schell Carl Scivally
License: MIT License
mogwai is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Rust Frontend Web Frameworks | |
|---|---|
| Tauri | Framework for building tiny, blazing fast binaries for all major desktop platforms |
| Yew | Modern framework for creating multi-threaded front-end web apps |
| Leptos | Full-stack, isomorphic Rust web framework |
| iced | GUI library focused on simplicity and type-safety |
| Dioxus | React-like library for building fast, portable, and beautiful user interfaces |
| Seed | Framework for creating fast and reliable web apps with an Elm-like architecture |
| Sycamore | Next generation UI library |
| Vizia | Declarative GUI library |
| Xilem | Experimental, next-generation cross-platform Rust UI framework |
| Perseus | State-driven web development framework |
| Percy | Collection of libraries for building interactive frontend browser apps |
| stdweb | Standard library for the client-side Web |
| mogwai | View library for creating GUI applications |
| Silkenweb | Library for building reactive web apps |
| sauron | Suited for developing web application which uses progressive rendering |
| Dominator | High-performance declarative DOM library |
| Kobold | Easy declarative web interface |
| Draco | Build client side web applications with Web Assembly |
| Smithy | Build WebAssembly applications with Rust |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.