tsync

command module
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

README

GoDoc Go Report Card CI Checks codecov

tsync

WIP (just started)

Cross platform terminal UI (tui) and network based synchronization of clipboard and files

Includes reusable library for network discovery and file/dir sync.

What does it do / How does it work?

The program starts by figuring out which interface and local address to use (because on Windows the default picks the WSL virtual interface and thus fails to see real peers) by looking up a configurable target (defaults to UDP 8.8.8.8:53, i.e., one of Google's public DNS servers).

It then listens on a multicast address (default 239.255.116.115:29556), periodically sends its own information to that address, and reads information from discovered peers.

Currently, example of peer detection with tsync running on a mac, a linux and a windows box:

Example Screenshot

Install

You can get the binary from releases

Or just run

CGO_ENABLED=0 go install fortio.org/tsync@latest  # to install (in ~/go/bin typically) or just
CGO_ENABLED=0 go run fortio.org/tsync@latest  # to run without install

or

brew install fortio/tap/tsync

or even - but multicast that we need doesn't seem to work at least on docker for mac.

docker run --network host -v ~/.tsync:/home/user/.tsync -ti fortio/tsync

Usage

tsync help

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package smap provided concurrent safe map but has moved to its own module.
Package smap provided concurrent safe map but has moved to its own module.
Package tcrypto is the library for tsync crypto operations (key generation etc).
Package tcrypto is the library for tsync crypto operations (key generation etc).
Package tsnet is the network library support for tsync (discovery/registration and communication).
Package tsnet is the network library support for tsync (discovery/registration and communication).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL