selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

TeXbrain logo

Self-host TeXbrain

LaTeX editor running in the browser with live PDF preview

BetaOpen SourceMIT
Updated2 weeks ago
LanguageTypescript
Setup difficultyEasy
ThemeDark mode
Stars
200
Port
5173 (local development server)
Live LaTeX editing with PDF preview updating in real-timeBridge feature connecting to brainBRIDGE for AI agent integration

What is TeXbrain?

TeXbrain is a browser-based LaTeX editor that compiles documents to PDF using a WebAssembly port of pdfTeX. It provides live PDF preview via pdf.js, complete git integration through isomorphic-git for cloning, committing, pushing, pulling, and branching, and direct local file system access via the File System Access API with an OPFS fallback. The editor is built on CodeMirror 6 with syntax highlighting, autocomplete for over 70 LaTeX commands, dark and light themes, a command palette, and a searchable snippet picker. It works offline once packages are cached, supports multi-file projects with tabs and drag-and-drop, and includes templates for articles, theses, presentations, reports, CVs, letters, and minimal documents. The application is built with SvelteKit's static adapter and deployed as static files. Known limitations include the pdfTeX engine only (XeTeX and LuaTeX are not available), no bibtex or biber support, TeX Live 2020-era packages, and git remotes requiring a CORS proxy.

Should you self-host TeXbrain?

TeXbrain scores 46/100 on selfhost.directory (how scoring works) and ranks #104 of 166 in Developer Tools. It has 200 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. It is MIT-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is openhands (87/100, 92 086 stars). It scores higher overall, so compare the two before you pick. See TeXbrain vs openhands side by side.

Features

  • Bridge for AI agents
  • CodeMirror 6 editor
  • Command Palette
  • Error parsing and display
  • Git Integration
  • LaTeX compilation in browser
  • Live PDF preview
  • Local file system accessFull functionality requires Chromium-based browser
  • Multi-file project support
  • No accounts or tracking
  • Offline Support
  • On-demand CTAN packages
  • Privacy-focused
  • Project Templates
  • Snippet picker

TeXbrain README

More in Developer Tools

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…