Development Tools

mogwai – asynchronous Rust UI library

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
TauriFramework for building tiny, blazing fast binaries for all major desktop platforms
YewModern framework for creating multi-threaded front-end web apps
LeptosFull-stack, isomorphic Rust web framework
icedGUI library focused on simplicity and type-safety
DioxusReact-like library for building fast, portable, and beautiful user interfaces
SeedFramework for creating fast and reliable web apps with an Elm-like architecture
SycamoreNext generation UI library
ViziaDeclarative GUI library
XilemExperimental, next-generation cross-platform Rust UI framework
PerseusState-driven web development framework
PercyCollection of libraries for building interactive frontend browser apps
stdwebStandard library for the client-side Web
mogwaiView library for creating GUI applications
SilkenwebLibrary for building reactive web apps
sauronSuited for developing web application which uses progressive rendering
DominatorHigh-performance declarative DOM library
KoboldEasy declarative web interface
DracoBuild client side web applications with Web Assembly
SmithyBuild WebAssembly applications with Rust

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted