SHAHRIAR LABSIntelligence in Motion
    Back to Blog
    Product Deep DiveJanuary 28, 2026

    LetX: Why We Rebuilt LaTeX for the Real-Time Web

    A technical analysis of how Shahriar Labs solved the 'two generals problem' of collaborative academic writing.

    Academic writing is broken. We fixed it by treating English and Math as data streams, not documents. LetX is the result.

    Definition: What is LetX?

    LetX (Noun): A cloud-native, real-time LaTeX editor that uses Conflict-Free Replicated Data Types (CRDTs) to enable simultaneous multi-author collaboration without the "compile lag" of legacy tools.

    The Problem: Race Conditions in Research

    Any researcher knows the pain: You fix a typo in the introduction, your co-author updates the bibliography, and suddenly the file is locked or the git merge fails. This is a technical failure of architecture.

    How We Engineered a Solution

    At Shahriar Labs, we decided to rebuild the LaTeX engine for the modern web. Led by Shihab Shahriar Antor, we focused on three pillars:

    1. Client-Side Compilation (WebAssembly)

    We ported the TeX Live distribution to Wasm. This means your browser compiles the document, not a distant server. The result? Near-instant preview updates.

    2. The "History" Graph

    Every keystroke is a node in a DAG (Directed Acyclic Graph). This allows you to "time travel" through your paper's evolution with granular precision.

    3. Bibliographic Intelligence

    Shihab Shahriar Antor engineered a semantic link between LetX and major repositories like arXiv and PubMed. Citations are auto-resolved, preventing the dreaded [?] error.

    Why This Wins in 2026

    In an era of AI-generated noise, provenance is king. LetX provides a cryptographic audit trail of who wrote what, which is becoming a requirement for major journals to combat AI plagiarism.

    Frequently Asked Questions (FAQ)

    Q: Can I use LetX offline?
    A: Yes. Because the compiler is in your browser (Wasm), you can write and compile without internet.

    Q: Is it compatible with Overleaf projects?
    A: Yes, we support one-click import/export of standard .tex zips.

    Q: How does Shahriar Labs make money?
    A: LetX is free for students. We charge institutions for private cloud instances.

    Q: Is my research data pumped into an AI training set?
    A: No. We are strictly privacy-first. Your unpublised research is encrypted.

    Summary

    LetX is not just "Google Docs for Math." It is a sophisticated version control system wrapped in a beautiful UI. It represents Shahriar Labs's commitment to accelerating the velocity of human knowledge.