Skip to content

GUI

The GUI is a thin desktop wrapper around the same node package used by the CLI.

  • opens a window titled FGov P2P Network
  • lets you enter a node name
  • starts and stops the node with a button
  • shows whether the node is running
  • lists connected peers
  • shows a placeholder apps panel

The GUI reads bs-nodes from the working directory if the file exists. If a bootstrap node has already written that file, the GUI can join the same network without extra setup.

From Network/:

Terminal window
go build -o gui ./cmd/gui
./gui

On Windows, the release binary is gui-v1.1.exe.

The GUI uses the shared Node type:

  • Turn On calls node.NewNode(...)
  • Turn Off calls Close() on the node
  • Refresh rebuilds the peer view from GetPeersSnapshot()

It is not a separate protocol implementation. It is a front-end for the same bootstrap, discovery, and name-sync logic used by the CLI.