Open a LaTeX project, share a temporary link, approve collaborators, write together, compile locally, and keep the files on the host computer.
Website | Latest release | LaTeX setup | Packaging notes
Download for Windows | Mac Apple Silicon | Mac Intel
LocalLeaf is a host-powered LaTeX collaboration app. The host runs the desktop app, opens a project, starts a session, and shares an invite link. Collaborators join from a browser, edit together, chat, compile, preview, and export while the host computer remains the source of truth.
No accounts. No monthly server. No cloud storage.
When the host stops the session or closes the app, the room ends and the project stays on the host machine.
- Host-controlled desktop app for Windows and macOS.
- Browser-based collaborators through temporary invite links.
- Secure tunnel flow so collaborators can reach the host without renting a server.
- Real LaTeX project import from folders or ZIP files.
- CodeMirror 6 LaTeX editor with line numbers, highlighting, toolbar actions, shortcuts, and autocomplete.
- Local PDF compilation through bundled Tectonic, system LaTeX tools, or fallback preview guidance.
- PDF.js preview with zoom, page preservation, and export support.
- Real-time shared text editing over WebSockets.
- Human chat beside the editor, PDF preview, compile logs, and project files.
- AI Helper with local models, OpenAI-compatible providers, approval cards, and reviewable file edits.
- Light and dark app themes.
The editor keeps project files, LaTeX source, PDF preview, and chat in one workspace so groups do not have to split work across a separate chat app and a separate editor.
The host compiles the project locally, serves the latest PDF preview, and keeps logs visible for quick fixes.
LocalLeaf includes an AI Helper designed for LaTeX work, not a general chatbot bolted onto the side. It can read project context, explain compile errors, suggest edits, and ask before changing files.
AI work is built around review:
- The model can propose safe text edits.
- LocalLeaf shows approval cards before writes.
- Accepted edits are tracked in Changes.
- File edits stay project-contained and text-only by default.
- YOLO mode exists for trusted local flows, but the normal path is approval first.
You can download supported GGUF models and run them locally on the host computer, or connect an OpenAI-compatible provider with your own key.
The built-in Cursor-style harness powers AI edit proposals inside LocalLeaf: model requests, tool context, approval cards, diffs, and safe apply/reject actions all stay inside the app.
- The host installs and opens LocalLeaf Host.
- The host creates, opens, or imports a LaTeX project.
- The host starts an online session.
- LocalLeaf starts the local server, compiler, collaboration socket, and public tunnel.
- Collaborators open the invite link in a browser.
- The host approves people as they join.
- Everyone writes together against the host-owned project.
- The host compiles and serves the latest PDF preview.
- When the host stops the session, guests disconnect gracefully.
| Platform | Download |
|---|---|
| Windows 10 / 11 | LocalLeaf-Host-Setup.exe |
| macOS Apple Silicon | LocalLeaf-Host-mac-arm64.dmg |
| macOS Intel | LocalLeaf-Host-mac-x64.dmg |
Current release: 0.1.22
Version 0.1.22 fixes image/PDF asset uploads so uploaded assets are saved with normalized cross-platform paths, appear immediately in the Images panel, and remain downloadable from the project state.
The macOS builds are currently unsigned and not notarized because this project does not yet have Apple Developer Program enrollment. macOS Gatekeeper may block the first launch even when the DMG was downloaded from the official GitHub release.
To open LocalLeaf on macOS:
- Download the correct DMG for your Mac: Apple Silicon or Intel.
- Open the DMG and drag
LocalLeaf Host.appintoApplications. - In
Applications, Control-click or right-clickLocalLeaf Host.app. - Choose
Open. - Choose
Openagain in the macOS warning dialog.
If macOS still blocks the app:
- Open
System Settings. - Go to
Privacy & Security. - Scroll to
Security. - Choose
Open AnywayforLocalLeaf Host.
Advanced fallback, only if you trust the DMG you downloaded from this repository:
xattr -dr com.apple.quarantine "/Applications/LocalLeaf Host.app"Then open the app again from Applications.
Install dependencies from the lockfile. This repo disables dependency lifecycle scripts by default, so rebuild only the known packages that need native/binary setup:
npm ci --ignore-scripts
npm rebuild electron esbuild --ignore-scripts=falseOn Windows, also rebuild the Windows installer helper before packaging:
npm rebuild electron-winstaller --ignore-scripts=falseRun the server-only web app:
npm startThen open:
http://localhost:4317
Run the desktop app in development:
npm run dev:desktopnpm testThe test suite builds the client bundles and runs the server, compiler, import, collaboration, tunnel, path-safety, and PDF-serving tests.
Build the Windows installer:
npm run package:winBuild macOS installers:
npm run package:mac:x64
npm run package:mac:arm64- The host computer owns the project files and compile output.
- Guests do not need to install anything; they join from a browser.
- Visual Editor is marked as coming soon while the code editor is the stable editing surface.
- LocalLeaf tries
latexmk, bundled Tectonic, systemtectonic,pdflatex,xelatex, andlualatexfor PDF compilation. - If no compiler is available, LocalLeaf shows compiler guidance and a readable HTML preview fallback.
- Cloudflare Quick Tunnel is used when bundled or installed
cloudflaredis available. - ZIP imports enforce entry-count, expanded-size, per-file-size, and nesting limits. Exports skip hidden/system folders such as dotfiles and
node_modules.