sfync
SFTP/FTP sync, mount, and daemon CLI
In college I did a lot of remote server work. Instead of a heavy, feature-packed IDE that just isn't my thing, I use Helix and Yazi, so JetBrains was never going to work for me — and rsync, scp, and GUI clients like FileZilla didn't cover the daemon, mount, and diff workflow I actually wanted. Sync daemons like Mutagen and lsyncd came closer, but neither mounts anything or plugs into Yazi. So I built sfync: a single Go binary that syncs, mounts, and runs as a daemon, plus a Yazi plugin so it never leaves the terminal.
Built with efficiency, security, and optimization in mind throughout — I don't have much patience for sluggish or insecure software. Well enough rambling, here's the basics.
What it does
- sync
- Two-way mirror up or down. Unchanged files are skipped and deletions carry over.
- diff
- Dry run that shows exactly what would change before anything touches the remote.
- daemon
- Watches for changes, debounces and retries, and batches notifications.
- mount
- Mounts a remote host as a local folder over sshfs or rclone, optionally straight into Yazi.
- ignore
- .syncignore with real glob patterns, reloaded the moment it is saved.
- editor
- Uploads the file open in the editor, found from the git root. Wired into Helix.
Example
❯ sfync diff up myserver
~ assets/contact-handler.php
+ assets/contact-config.php
2 changes
❯ sfync up myserver
↑ assets/contact-handler.php
↑ assets/contact-config.php
done in 0.4s
❯ sfync mount myserver
mounted myserver → ~/mnt/myserver
❯ sfync on
daemon started, watching 3 profiles
Yazi plugin
sfync.yazi puts every command behind a v prefix, so it runs right from the file manager.
- v u / v d
- sync up / down
- v D u / v D d
- diff up / down
- v p / v l
- push / pull the selected file(s)
- v m / v M
- mount / unmount