LeafRelayReliable two-way sync between Overleaf and a local project in Visual Studio Code. LeafRelay is a VS Code extension for Overleaf and LaTeX users who edit the same project with a local IDE, terminal, scripts, or AI coding tools. It keeps the local folder and Overleaf synchronized while making conflicts visible instead of silently choosing a winner.
Why LeafRelay?Overleaf Workshop pioneered the VS Code workflow, but older local-replica behavior was centered on editor-driven changes. That becomes fragile when the local folder is changed by another editor, a terminal, a script, or an AI tool: updates may wait for an editor save, reconnects may download far more than necessary, duplicate local replicas may compete, and simultaneous edits can overwrite one side without a clear decision. LeafRelay is built around those failure modes:
LeafRelay keeps the original Overleaf Workshop virtual-project and collaboration features while prioritizing dependable local-folder synchronization for daily work. InstallInstall LeafRelay Sync from the VS Code Marketplace. VS Code will receive future releases through its normal extension update mechanism. If you installed Start syncing
For project details, login options, self-hosted Overleaf, and troubleshooting, see the user documentation. Run without VS CodeLeafRelay also ships as a Node.js CLI. A local replica created by the VS Code extension can be served directly because both clients use the same
Development
Pull requests run the VS Code activation check and a ShareLaTeX container integration test before packaging. Releases are prepared by Release Please and publish the VS Code extension, npm package, and GitHub release artifacts through automated workflows. The pnpm monorepo keeps the reusable synchronization engine in Project backgroundLeafRelay started from Overleaf Workshop and is now maintained as an independent project under the AGPL-3.0-only. The focus is reliable Overleaf-to-local synchronization, while the project continues to evolve toward reusable sync components beyond VS Code. Links |