TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM

I'm a master's engineering student and a big fan of LaTeX, which I used for my thesis and research articles. I have used Overleaf and that was fine until I wanted to git sync, which unfortunately sits behind a paywall. Since I didn't want to pay subscriptions for things that should simply just work, I built the editor I wanted in my free time, where you open a tab, write LaTeX, get your PDF and the files stay all in one folder on my disk.TeXbrain is a static site with no backend. pdfTeX is compiled to WebAssembly (SwiftLaTeX) and runs in your browser. The editor can read and write your project folder through the File System Access API, so you can use git, any local TeX install, local AI Agents, or any other editor on the same files. Git is built in through isomorphic-git for anyone who would rather not touch a terminal and clone, branch, commit, push or pull via commands. No account is needed, no analytics, and everything works offline after the first load.Try it out: https://tex.swimmingbrain.dev/ (Chromium browsers get direct folder access, while Firefox or Safari fall back to a virtual filesystem)Or for self-hosting/contributing: https://github.com/swimmingbrain/texbrain (MIT, the pdfTeX engine is EPL 2.0 / GPL 2.0 and is listed in the THIRD_PARTY_LICENSES file).The part I'm most proud of getting to work is the package loading. The engine itself is only 1.8 MB. When it asks for a file it doesn't have, then a service worker intercepts the request and resolves it through Cache Storage first, then a small bundled subset, then a TeX Live tree mirrored on jsDelivr, then a SwiftLaTeX style server as a last resort. Every file is fetched once at most and after the first successful compilation, the core subset is prefetched in the background so that the offline story actually holds. Only file names go over the network, never any document content.So far, it only supports pdfTeX (no XeTeX or LuaTeX), so f

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

72

out of 100

Verdict

VALIDATE

medium confidence

Competition

No competitor data yet

Trend

No signal yet

Browser-based LaTeX editor with local file access and git integration, eliminating the need for Overleaf's paid tier.

The pain

LaTeX users want git version control without paying Overleaf's subscription. They want their files on disk, not locked in a proprietary system. They want offline-first workflows and the ability to use their own tools (local editors, AI agents, custom scripts) on the same project.

The gap

Overleaf dominates but paywalls git sync. Local LaTeX setups require terminal knowledge and environment setup. No existing tool combines browser convenience with local file ownership and built-in git without friction.

Build angle

You've already built a working product that solves a real problem you experienced. The technical execution is solid, WASM compilation, service worker caching, File System Access API integration. The next phase is determining if this is a niche tool for power users or if it can expand beyond that. Start by measuring: How many people actually hit the Overleaf paywall? How many would switch if they knew this existed? Can you build a sustainable business around this, or is it a lifestyle project?

Strengths

  • Working prototype with real technical depth, not vaporware
  • Solves a genuine friction point (Overleaf paywall + git lock-in)
  • Zero backend complexity reduces operational burden and privacy concerns
  • Self-hostable and open source removes vendor lock-in fears
  • Offline-first architecture with smart caching shows thoughtful engineering
  • Targets a specific, educated audience (researchers, engineers) who value control
  • Low marginal cost to serve additional users

Risks

  • Market size unclear, how many LaTeX users actually need git sync badly enough to switch? Overleaf has 10M+ users but most may not care about this feature
  • pdfTeX-only limitation is significant. XeTeX and LuaTeX support matters for non-English typesetting and modern font workflows. This narrows addressable market
  • Browser WASM compilation is slower than native. Compilation time could be a dealbreaker for large documents
  • File System Access API has limited browser support (Chromium only for direct access). Firefox/Safari fallback to virtual filesystem reduces value proposition
  • No clear monetization path. Open source + no backend = hard to capture value. Sponsorships and donations are unreliable
  • Overleaf could add free git sync tomorrow, eliminating your main differentiator
  • Requires users to understand git and file systems. Lower barrier than terminal, but still filters out casual users
  • Maintenance burden of keeping TeX Live mirror in sync and handling edge cases in package resolution

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM”.

Open FlyBot