# SwiftLaTeX/SwiftLaTeX

SwiftLaTeX, a WYSIWYG Browser-based LaTeX Editor

Repository: https://github.com/SwiftLaTeX/SwiftLaTeX
Canonical: https://ross.abutalabs.com/products/swiftlatex
Homepage: https://www.swiftlatex.com
Language: C
License: AGPL-3.0
License Family: copyleft
Topics: latex, wysiwyg, editor, webassembly
Last push: 2024-06-18T10:03:53+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2464, "days_push": 806, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2315, forks 143 (observed 2026-08-28T04:06:36.771530+00:00)

## What it is
SwiftLaTeX compiles the PdfTeX and XeTeX LaTeX engines to WebAssembly so LaTeX documents can be compiled entirely in the browser, exposed as a JavaScript library you embed via a script tag. It also provides an optional WYSIWYG browser-based LaTeX editor that lets users edit PDF output directly, though that part is still a work in progress.

## Use cases
- compile latex documents in the browser without a server
- wysiwyg latex editor that edits pdf output directly
- embed pdftex or xetex in my own web page
- generate pdf from latex source in javascript client-side
- online latex editor that runs offline with local computation
- run xetex in webassembly for chinese japanese documents

## When to choose
- You need LaTeX compilation to happen fully client-side with no server round-trips
- You want to drop a TeX engine into any webpage with a single script tag and a simple async API
- You need output identical to TeX Live or MiKTeX inside a browser app, including CJK and TrueType font support via XeTeX

## When to avoid
- You need a complete native TeX Live/MiKTeX toolchain with shell-escape, packages installation, or full ICU locale-aware line breaking
- You require a fully polished WYSIWYG LaTeX editing experience, which is still marked as work in progress
- Your users are on constrained devices, since the wasm engine runs roughly 2x slower than native binaries and template downloads can take minutes

## Facets
- artifact type: library
- maturity: active
- function: editor, pdf, compiler
- domain: pdf, web-development, text-editors, education
- platform: browser, wasm
- tags: latex, wysiwyg, webassembly, pdftex, xetex, texlive, client-side-compilation, typesetting, pdf-generation, academic-writing, javascript-library

## Member repositories
- SwiftLaTeX/SwiftLaTeX (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:36.771530+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:39:25.000102+00:00, confidence not recorded.
  - readme: https://github.com/SwiftLaTeX/SwiftLaTeX (fetched 2026-08-28T04:06:36.771530+00:00, sha bdd01024235b)
  - homepage: https://www.swiftlatex.com (fetched 2026-08-29T10:19:19.134245+00:00, sha bbb14c284b5a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
