Skip to content

gosuda/portal-toys

Repository files navigation

portal-toys

portal-toys is a collection of small Portal demos. The repository is focused on Go examples that register directly with Portal relays using the Go SDK.

Why This Repo

  • Small, self-contained apps that are easy to read and modify.
  • Consistent CLI flags across demos such as --server-url, --discovery, --ban-mitm, --name, and --port.
  • Works both locally and over relays.

For non-Go apps, use portal-tunnel instead of maintaining separate language-specific examples in this repo.

Prerequisites

Quick Start

  • Start: go run ./rolling-paper --name my-rolling --port 8081
  • Optional relay override: go run ./rolling-paper --server-url https://portal.gosuda.org/ --discovery=false
  • Local access: open http://127.0.0.1:8081
  • Relay access: open the registered name from your relay UI

Repo Layout

Tips

  • Be considerate with traffic on shared relays.
  • After successful connection, your service appears in the relay UI under the chosen --name.

Troubleshooting

  • Relay unreachable: check --server-url / --discovery and network/firewall.
  • Local port busy: change --port or close the conflicting process.
  • Tunnel not found: run make tunnel-install.
  • Go build issues: ensure a recent Go toolchain and run commands from the repo root.

License

MIT. See LICENSE.

About

toy projects using portal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors