WEB LATEX CLIENT-SIDE WASM
YJS + EDGE WS WASM PDFLATEX GITHUB
OPEN-SOURCE // ZERO DATABASES & ACCOUNTS

COLLABORATIVE LATEX.
ZERO DATABASES.

WEB LATEX is an ultra-lightweight, open-source collaborative LaTeX editor. Co-author documents in real time via ephemeral Cloudflare Durable Objects WebSocket rooms (with local BroadcastChannel/WebRTC fallback), compile pdflatex 100% client-side via BusyTeX WebAssembly inside an isolated Web Worker, and export complete projects with zero databases, accounts, or cloud lock-in.

0 DATABASES & ACCOUNTS
100% CLIENT-SIDE WASM
2 MB CRDT ASSET SYNC
WORKSPACE LAUNCHER READY
START A FRESH COLLABORATIVE ROOM

Encryption key lives strictly in the URL #... fragment and is never sent to the relay server.

Generates a unique #room-xxxxxxxx link and launches the editor immediately.

OR JOIN EXISTING ROOM

Accepts room-xxxxxxxx, #room-xxxxxxxx, encrypted #room-xxxxxxxx!k=..., or a full shared room URL.

RECENT ROOMS

    Rooms auto-save locally in IndexedDB. Removing a room clears its local browser cache.

    CLASSIC TEMPLATES

    1-CLICK STARTERS // COMPILES IN WASM

    CORE ARCHITECTURE

    PURE VANILLA JS // ES2022+
    01 // REAL-TIME CRDT Yjs + Durable Objects

    Ephemeral Real-Time Sync

    Powered by Yjs CRDTs over ephemeral Cloudflare Durable Objects WebSocket rooms with local BroadcastChannel/WebRTC fallback and automatic IndexedDB offline storage. Co-author main.tex and auxiliary files with live Solarized peer cursors — zero databases, zero accounts.

    02 // WEBASSEMBLY BusyTeX Worker

    Client-Side WebAssembly pdflatex

    Runs precompiled BusyTeX WebAssembly pdflatex 100% client-side inside a dedicated Web Worker with an Emscripten in-memory filesystem. Trigger builds manually with Ctrl+Enter and preview via Blob URL <iframe> or open/download directly — zero compile servers.

    03 // CACHE API Service Worker

    Offline WASM Caching

    A native Service Worker intercepts /wasm/* requests with a cache-first strategy so the TeX Live compiler bundle downloads once per browser and stays fast and available across reloads.

    04 // PORTABLE JSZip Bundle

    One-Click .zip Export

    Package main.tex, uploaded bibliographies (.bib), figures (.png, .jpg), and your latest locally compiled main.pdf into a standard project.zip archive straight from memory.

    STEP 01 CREATE OR JOIN A ROOM Generate a fresh #room-xxxxxxxx or paste an invite link from a peer.
    STEP 02 CO-AUTHOR & UPLOAD ASSETS Write LaTeX in CodeMirror 6 and drop figures or .bib files into the Explorer.
    STEP 03 COMPILE LOCALLY & EXPORT Press Ctrl+Enter to build main.pdf and download project.zip.
    WEB LATEX // SOLARIZED FLAT DESIGN WASM Cache: Checking...
    E2E 1
    EXPLORER
    v PROJECT 1
        Drop files or .zip here (2 MB/file, 6 MB room)
        TEMPLATES 7
          CITATIONS / DOI API
            PROJECT .BIB ENTRIES 0
              COMMENTS
              0
                HISTORY 0
                  ROOM & SETTINGS
                  ROOM IDENTIFIER
                  #pending
                  CURSOR & BADGE COLOR
                  COLOR THEME
                  BORDER WEIGHT (--border-width)
                  EDITOR FONT SIZE
                  EDITOR PREFERENCES
                  COMPILER PREFERENCES
                  Checking package cache...
                  WASM CACHE (SERVICE WORKER)
                  Checking cache...
                  OFFLINE PERSISTENCE (INDEXEDDB)
                  Rooms auto-save locally in browser IndexedDB for offline editing and reload recovery.
                  BOOKTABS TABLE WIZARD
                  3 × 3 booktabs table
                    
                                
                    main.pdf · Not built
                    / —
                    Inline PDF preview may be limited on mobile browsers.
                    CLIENT-SIDE WASM PDFLATEX

                    NO PDF BUILT YET

                    Compilation runs strictly on demand inside an isolated Web Worker. Press Ctrl+Enter or click COMPILE to render main.pdf.

                    Preparing WASM compiler...
                    P2P: Connecting (1 peer) | WASM Engine: Idle
                    0 words | main.tex | Ln 1, Col 1

                    KEYBOARD SHORTCUTS

                    Ctrl + Enter Compile LaTeX to PDF
                    Ctrl + S Flush local IndexedDB save
                    Ctrl + / Toggle % line comment
                    Ctrl + F / H Find & Replace in active file
                    Ctrl + Space Autocomplete commands, \cite, \ref, figures
                    Ctrl + Shift + J SyncTeX Forward Sync (Editor → PDF)
                    Ctrl + V Paste clipboard image into figures/
                    Ctrl + Shift + ? Toggle Keyboard Shortcuts modal

                    On macOS, use Cmd in place of Ctrl.

                    CONFIRM ACTION