Skip to content

feat: add a TUI interface to rust-peer#245

Merged
dhuseby merged 28 commits intolibp2p:mainfrom
dhuseby:feat-rust-peer-gui
May 2, 2025
Merged

feat: add a TUI interface to rust-peer#245
dhuseby merged 28 commits intolibp2p:mainfrom
dhuseby:feat-rust-peer-gui

Conversation

@dhuseby
Copy link
Copy Markdown
Collaborator

@dhuseby dhuseby commented Mar 21, 2025

This PR re-organizes the rust-peer significantly and adds a TUI interface to it that is very similar to the go-peer TUI interface. This has been tested against the go-peer and it works. I also tested it on Linux and Macos.

Key bindings:

  • [tab]: switches between chat UI and log UI
  • ctrl-c: shuts down the peer
  • ctrl-p: gathers the known gossipsub peers and their subscribed topics and dumps them to the system messages
  • [enter]: send the typed in chat message (only on the chat UI)

Here's a short demo video I recorded

Dave Grantham added 9 commits March 19, 2025 22:44
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
@dhuseby dhuseby added the rust Pull requests that update Rust code label Mar 21, 2025
@dhuseby dhuseby requested review from elenaf9 and jxs March 21, 2025 01:03
@dhuseby dhuseby requested a review from a team as a code owner March 21, 2025 01:04
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
@dhuseby dhuseby requested a review from elenaf9 March 27, 2025 16:42
Dave Grantham added 3 commits March 29, 2025 15:01
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
@dhuseby
Copy link
Copy Markdown
Collaborator Author

dhuseby commented Apr 21, 2025

@jxs @elenaf9 I'm ready to land this peer. It's blocking me getting the universal connectivity workshop completed. If there's no objections, I'll land this on the 23rd.

Dave Grantham added 9 commits April 22, 2025 20:25
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Dave Grantham and others added 6 commits April 22, 2025 20:25
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
@dhuseby dhuseby merged commit a1dd5f5 into libp2p:main May 2, 2025
1 check passed
@dhuseby dhuseby deleted the feat-rust-peer-gui branch May 2, 2025 02:30
dozyio pushed a commit to dozyio/universal-connectivity that referenced this pull request Sep 7, 2025
* add tui ui
* add polling of events
* clean up peer code
* all hooked up
* clean up system messages
* smarter system messages
* add tcp
* fix channel handling
* drop peers when they hang up
* fix listen address is not necessarily an external address
* add better logging and peer list
* add headless, kademlia, relay, dcutr, webrtc, peer discovery
* fix clippy
* add tui ui
* add polling of events
* clean up peer code
* all hooked up
* clean up system messages
* smarter system messages
* add tcp
* fix channel handling
* drop peers when they hang up
* fix listen address is not necessarily an external address
* add better logging and peer list
* add headless, kademlia, relay, dcutr, webrtc, peer discovery
* fix clippy

Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants