Replies: 8 comments 3 replies
-
Are you talking about a Web UI for the user of the CLI? |
Beta Was this translation helpful? Give feedback.
-
Yes for the CLI, it could be simmilar to https://unstoppableswap.net/ but with the functionality of making the swap and seeing the state of the Swaps, keeping everything on the localhost so is a little more secure, or even give it access to the local network so you can check this on the phone. I think it would be a great addition for ease of use, maybe for a version 1.0. |
Beta Was this translation helpful? Give feedback.
-
GUIs are out of scope from our side. The CLI can relatively easy be controlled from another process which makes it easy to build a GUI on top without having to modify the source code. There is also the possibility of building a GUI in Rust and hooking directly into the library functions of the tool. That approach gives you more power and control but is also harder to implement and maintain. I am going to close this as a wont-fix. If you are interested in building a GUI, I am happy to discuss these options more and provide some guidance. |
Beta Was this translation helpful? Give feedback.
-
Yes, I would totally like to implement a GUI for this and the guidance would be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
The first and probably preferable way of building a GUI is to talk to the CLI programmatically. The idea is simple: write a program with a GUI in whatever programming-language you want. Gather all the input necessary from the user, in the simplest case, that is one input field per command-line option of the CLI. Once the user wants to swap, you launch the CLI as a background process with the The CLI exits automatically once the swap is done. You can also build some automation around automatically finding providers by using the |
Beta Was this translation helpful? Give feedback.
-
Another approach is to directly integrate with the inner workings of the CLI. For this, you will be limited to writing your GUI in Rust because you need to depend on all the code as a library. This approach gives you a lot more flexibility. For example, you will have direct control over the embedded Bitcoin wallet which allows you to build functionality to manage funds for the user beyond doing a single swap. If you want to go down that route, your best bet is likely going to be tauri: https://github.com/tauri-apps/tauri |
Beta Was this translation helpful? Give feedback.
-
Thank you for the Input!. I have been actually looking at writing the GUI in Rust but the GUI environment for GUIs looks very much like a sh*t show, do you have any recommendation other than tauri? |
Beta Was this translation helpful? Give feedback.
-
Hello I have decided to use svelte with Tauri thanks to your recommendation, I have been digging in the swap project, I'm not really clear on how to get a list sellers do I need to do something similar to the Command::ListSellers inside the swap.rs file? |
Beta Was this translation helpful? Give feedback.
-
Making a small Localhost Web UI to process the transactions directly wouldn't be a bad idea. This way the user wouldn't have to copy paste at the end.
I would totally be glad to develop it, obviously with a little coaching because I'm still not that fluent with Rust.
Beta Was this translation helpful? Give feedback.
All reactions