LaTeX editor · 2025
Backslash
A self-hosted LaTeX editor with live PDF preview and real-time collaboration. Untrusted documents compile in isolated containers.
Case study
The problem
Researchers who want Overleaf's workflow often cannot send their papers to a hosted service, and compiling LaTeX from other people is a real security risk.
What I built
- Compiled untrusted LaTeX in throwaway Docker containers with no network, all capabilities dropped, and CPU, memory, process and time limits, queued through BullMQ.
- Added live build status, presence, cursors and chat over WebSockets, plus a public REST API with hashed API keys.
- Explained LaTeX compiler errors with AI debugging across OpenAI, Anthropic and OpenRouter models.
- Packaged the editor as a Docker Compose stack of web app, WebSocket service, build worker, PostgreSQL and Redis, with worker heartbeats and a health endpoint.
My role
I built and maintain Backslash as an open-source project with outside contributors.
Next projectOpenShelf →