Search Explore

Show HN: orzma – a terminal emulator that renders webviews inside the terminal

https://github.com/not-elm/orzma

notelm · 2 days ago

I made this because I thought it would be useful to be able to use a webview in the terminal. I also provide an SDK called ratatui_orzma. For example, I think it could be used to render rich UI components such as charts with a webview as part of a TUI application, port web tools to ratatui, or embed games built with Wasm inside the terminal.

5 comments

  • gap_fanatic · 2 days ago

    building the browser from scratch too is sick. great work!

    • notelm · 2 days ago

      Thanks.

    • danteocualesjr · 2 days ago

      Embedding webviews in a terminal is something I didn't know I wanted until now!

      • notelm · 2 days ago

        Thanks. I feel like there’s more demand for this than you might think!

      • hahooh · 2 days ago

        go!!!!

        • 20after4 · 1 days ago

          I've been wanting this for a long time, however, it would be really great to have some kind of standard so that multiple terminals might eventually implement the functionality. Even more awesome would be great if the api was a bit more generic so that any window could be embedded within the context of a terminal in much the same way that images are embedded with the kitty graphics protocol¹. With appropriate alpha channel support it could even enable seamless/borderless objects, potentially with non-rectangular shapes.

          1. https://sw.kovidgoyal.net/kitty/graphics-protocol/

          edit: I see the protocol² is very well documented. Better yet, it looks like a really powerful and well thought out interface. Well done! It would be really awesome if this catches on.

          2. https://github.com/not-elm/orzma/blob/main/docs/orzma_webvie...

          • 20after4 · 1 days ago

            At one point there was an attempt to form a new terminal emulator extensions working group, however, last time I checked it seemed to have been abandoned a few years ago.

            • notelm · 1 days ago

              Thanks! I plan to keep improving the api. Suggestions and issues are very welcome.

            • vishalkundar · 1 days ago

              Great work!