explaingit

corca-ai/wasmtex

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 4/5LicenseSetup · moderate

TLDR

A browser based LaTeX editor toolkit with live PDF preview, built to be embedded into other web apps.

Mindmap

mindmap
  root((WasmTex))
    What it does
      Browser LaTeX editor
      Live PDF preview
      Compiles via WASM
    Tech stack
      TypeScript
      Monaco editor
      PDF.js
    Engines
      pdfLaTeX
      XeLaTeX
      LuaLaTeX
    Use cases
      Embed in web app
      Academic writing tool
      Docs with math
    Audience
      Web developers
      SDK integrators

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add a live LaTeX editor with PDF preview to a documentation or writing web app.

USE CASE 2

Build a collaborative academic writing tool without hosting your own LaTeX server.

USE CASE 3

Give users autocomplete and error checking while writing LaTeX in the browser.

USE CASE 4

Compile LaTeX documents to PDF entirely client side without installing TeX Live.

What is it built with?

TypeScriptWebAssemblyMonaco EditorPDF.jsNode.js

How does it compare?

corca-ai/wasmtex0xkinno/astraea0xkinno/halcyon
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatehardhard
Complexity4/54/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires manually wiring up Monaco and PDF.js web workers, which is not optional.

The core SDK is MIT licensed, so it can be used freely including in commercial or closed source products, but the bundled LaTeX engines and packages have their own separate license terms.

In plain English

WasmTex is a LaTeX editor that runs entirely in a web browser. If you have ever used Overleaf or a similar online LaTeX tool, this project lets you build something similar into your own website or app. It combines a code editor (Monaco, the same editor that powers VS Code) with a PDF viewer, and it compiles LaTeX documents to PDF using engines that run as WebAssembly, meaning the compiling happens on the visitor's machine or on a Node server instead of needing a separate LaTeX installation. The project automatically figures out which LaTeX engine a document needs. Simple documents use pdfLaTeX, while documents that need special fonts, non-Latin scripts, or advanced scripting features are detected and routed to XeLaTeX or LuaLaTeX automatically. The required TeX Live packages are streamed in from a public content delivery network as needed, so there is no need to host or bundle a huge LaTeX package library yourself. WasmTex is not published on the npm package registry. Instead, developers install it directly from GitHub, and it ships with a prebuilt library folder so no build step is required after installing. It depends on two other libraries, Monaco editor and PDF.js, which must be installed separately alongside it. Beyond the basic editor, the project includes a full language server for LaTeX: it offers autocomplete, hover explanations, jump to definition, error checking, and several other code editing conveniences familiar from modern programming tools, adapted for writing LaTeX documents. The project is aimed at developers who want to embed a document editing and previewing experience into their own product, rather than end users looking for a ready made writing app. The core SDK code is released under the MIT license, which allows free use including in commercial and closed source products. The WASM engines and TeX Live packages that come bundled with it carry their own separate licenses, so anyone distributing those parts should check the included license documentation.

Copy-paste prompts

Prompt 1
Show me how to install wasmtex and set up the required Monaco and PDF.js workers in a React app.
Prompt 2
Explain the difference between the wasmtex and wasmtex/headless entry points and when to use each.
Prompt 3
Write a minimal HTML page that embeds a wasmtex editor with a starter LaTeX document.
Prompt 4
How do I run wasmtex's compiler on a Node server instead of in the browser?
Prompt 5
Walk me through wasmtex's license requirements if I want to redistribute the bundled TeX engines.

Frequently asked questions

What is wasmtex?

A browser based LaTeX editor toolkit with live PDF preview, built to be embedded into other web apps.

What language is wasmtex written in?

Mainly TypeScript. The stack also includes TypeScript, WebAssembly, Monaco Editor.

What license does wasmtex use?

The core SDK is MIT licensed, so it can be used freely including in commercial or closed source products, but the bundled LaTeX engines and packages have their own separate license terms.

How hard is wasmtex to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is wasmtex for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.