# 🐣 \`mojo-ui-html\` immediate-mode \`GUI\`

**URL:** <https://forum.modular.com/t/mojo-ui-html-immediate-mode-gui/196>\
**Category:** Community Showcase\
**Created:** [December 10, 2024, 3:59pm UTC](https://forum.modular.com/t/mojo-ui-html-immediate-mode-gui/196 "2024-12-10T15:59:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rd4com](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rd4com](https://forum.modular.com/u/rd4com)\
**Post date:** [December 10, 2024, 3:59pm UTC](https://forum.modular.com/t/mojo-ui-html-immediate-mode-gui/196/1 "2024-12-10T15:59:39Z")

</div>

Hello!  
It is an immediate `GUI` project started last year,  
it only needs socket and is based on `html`!  
(still need to integrate `magic` to it)

The goal is to have an easy way to create an app,  
and that the user don’t need to learn a lot of things,  
this is why it works like in a simple loop !

Here are some examples:

It can also be used for larger project, like audio (next releases),  
here is an example of a simple music making app:

 ![Screenshot from 2024-08-15 05-12-37](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/253af929e91a2f30d0b308717aba442921797edb.png)

Hope it can be useful and make people happy, that is the idea!

[mojo-ui-html](https://github.com/rd4com/mojo-ui-html)

---

<div class="post-metadata">

**Author:** ![rd4com](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rd4com](https://forum.modular.com/u/rd4com)\
**Post date:** [December 10, 2024, 4:02pm UTC](https://forum.modular.com/t/mojo-ui-html-immediate-mode-gui/196/2 "2024-12-10T16:02:16Z")

</div>

![example](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/05854db58ea65da4ebed8bb3f79c2727bcea6127.png)

---

<div class="post-metadata">

**Author:** ![rd4com](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rd4com](https://forum.modular.com/u/rd4com)\
**Post date:** [December 10, 2024, 4:15pm UTC](https://forum.modular.com/t/mojo-ui-html-immediate-mode-gui/196/3 "2024-12-10T16:15:10Z")

</div>

ℹ Example for small app:

```python
from ui import *
from math import iota, sqrt
def main():
    GUI = Server[base_theme="theme_neutral.css"]()
    var counter = 0
    while GUI.Event():
        var tmp = iota[DType.float16,SIMD[DType.float16].size](counter)
        GUI.Text(tmp)
        GUI.Text(sqrt(tmp))
        
        GUI.Slider("Counter",counter)
        if GUI.Button("increment"): counter+=1
        if GUI.Button("decrement"): counter-=1

```

---

<div class="post-metadata">

**Author:** ![rd4com](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rd4com](https://forum.modular.com/u/rd4com)\
**Post date:** [May 13, 2025, 2:10pm UTC](https://forum.modular.com/t/mojo-ui-html-immediate-mode-gui/196/4 "2025-05-13T14:10:50Z")

</div>

✅ Updated to `25.3.0`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/2751e0fbdc595a99718b216730957e9db4448cfd.jpeg) [@system](https://forum.modular.com/u/system)\
**Post date:** [November 9, 2025, 2:10pm UTC](https://forum.modular.com/t/mojo-ui-html-immediate-mode-gui/196/5 "2025-11-09T14:10:56Z")

</div>

Closed on November 9, 2025, 2:10pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
