TeXbrain
Like
FOSS browser-based LaTeX editor with live preview, on-demand packages and git integration. No accounts, no installs, no servers.
Cost / License
- Free
- Open Source (MIT)
Platforms
- Online
Features
Properties
- Privacy focused
Features
- Ad-free
- No Tracking
- Works Offline
- Dark Mode
Support for LaTeX
- Live Preview
- Syntax Highlighting
- No registration required
Git integration
- LaTeX Editor
- Snippets
- Command palette
- PDF Preview
- Content Templates
TeXbrain information
No comments or reviews, maybe you want to be first?
What is TeXbrain?
A free, open-source LaTeX editor that runs entirely in your browser. No accounts. No installs. No servers. Just open a tab and write.
What it does:
TeXbrain is a full LaTeX editor that compiles your .tex files to PDF directly in the browser. There is no backend. No server processing your files. Everything (the editor, the compiler, the git client) runs client-side.
You can open a local project folder, edit your files, see the PDF update, commit your changes, and push to GitHub. All from one tab.
Features:
- LaTeX compilation in the browser. Uses a WebAssembly port of pdfTeX (SwiftLaTeX). Your .tex files are compiled to PDF without ever leaving your machine. Packages are loaded on demand and cached locally, so the first compile only downloads what your document actually uses. Recompilations take 1 to 5 seconds depending on project complexity.
- Most of CTAN, loaded on demand. Common packages ship with the app. Anything else (memoir, abntex2, KOMA-Script, you name it) is resolved automatically from a TeX Live mirror the first time a document needs it, then cached locally for offline use.
- Live PDF preview. Rendered with pdf.js. Multi-page, zoomable, with text selection.
- Full git integration. Clone repos, create branches, stage files, commit, push, pull, merge. All powered by isomorphic-git running in the browser, directly on your project folder, so a terminal and TeXbrain see the same repository. No CLI needed. See Git, step by step.
- Local file system access. Uses the File System Access API to read and write directly to your project folder on disk (Chrome/Edge).
- Multi-file projects. File tree, tabs, drag-and-drop. Supports .tex, .bib, .sty, .cls and more.
- CodeMirror 6 editor. Syntax highlighting, autocomplete for 70+ LaTeX commands, bracket matching, code folding, snippets, dark/light theme.
- Command palette. Quick access to actions via keyboard shortcut.
- Snippet picker. Math environments, document structures, Greek letters, common commands. Searchable and categorized.
- Works offline. Once loaded, the app works without an internet connection. Compilation is local, editing is local. Packages you've compiled with before are cached; only a package you've never used needs the network once.
- Project templates. Start from scratch or pick a template (article, thesis, beamer, report, CV, letter, minimal).


