Leaps is a service for collaboratively editing your local files over a web UI, using operational transforms to ensure zero-collision synchronization across any number of editing clients.
WARNING: This project is no longer actively maintained.
Simply navigate to a directory you want to share, run
leaps, open the hosted
http://localhost:8080) in your browser and direct any friends on
your LAN to the same page. You can now collaboratively edit any documents in
Your files will be written to in the background as you edit. If you aren't using
version control, or simply want extra protection, you can run leaps in safe mode
--safe flag. In safe mode any changes you make will be placed in a
.leaps_cot.json file, which you can then apply to your files once you are
happy by running with the
When writing code it sucks to have to leave the editor for running tests, linters or builds. However, allowing the internet to run arbitrary commands on the host machine is a recipe for disaster.
Instead, leaps allows you to specify pre-written commands using the
which are then available for clients to trigger asynchronously while they edit.
Results are broadcast to all connected users, so you can all see the outcome as
leaps -cmd "golint ./..." -cmd "go build ./cmd/leaps" gives
users both a linter and a build command that they can trigger on your machine.
Leaps can also be used as a library, with implementations of accessors for various document hosting solutions and plugable authentication layers, allowing you to build your own services to suit many service architectures.
To read more about the service library components and find examples check out the godocs.
Leaps is a single binary, with no runtime dependencies. Just download a package for your OS from the latest releases page.
brew install leaps leaps -h
go get github.com/Jeffail/leaps/cmd/... leaps -h
Contributions are very welcome, just fork and submit a pull request.