# erweixin/RaTeX

>99.5% KaTeX syntax coverage. LaTeX math renderer in pure Rust. No JavaScript, no WebView, no DOM. One Rust core → iOS, Android, Flutter, Web, PNG. C ABI · WASM · Server-side PNG/SVG.

Repository: https://github.com/erweixin/RaTeX
Canonical: https://ross.abutalabs.com/products/ratex
Homepage: https://ratex.lites.dev/
Language: Rust
License: NOASSERTION
License Family: other
Topics: android, ffi, flutter, ios, katex, latex, math, math-rendering, rust, wasm, web-components, flutter-latex, iosmath, swiftmath, androidmath
Last push: 2026-08-23T15:35:24+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 95, longevity 12
- inputs: {"age_days": 176, "days_push": 10, "days_rel": 36, "gap_med": 3.0, "n_releases_24m": 23}
- flags: young, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1451, forks 68 (observed 2026-08-28T04:04:45.768824+00:00)

## What it is
RaTeX is a KaTeX-compatible LaTeX math rendering engine written in pure Rust, with no JavaScript, WebView, or DOM dependency. A single Rust core produces a display list that native bindings render on iOS, Android, Flutter, React Native, Web (WASM), and server-side PNG/SVG/PDF output.

## Use cases
- render latex math formulas in an ios app without a webview
- display math equations natively in flutter
- render katex-compatible math on android without javascript
- server-side rendering of latex math to png or svg
- render math formulas offline in a mobile app
- render chemistry equations with mhchem in a native app
- render latex math in webassembly without a js runtime
- generate pdf documents with rendered math on a server

## When to choose
- you need math rendering on native mobile or server targets where a WebView or headless browser is unacceptable
- you want consistent, byte-identical math rendering across multiple platforms from one engine
- you need offline math rendering with predictable memory and no JavaScript runtime
- you want KaTeX-compatible syntax coverage outside the browser

## When to avoid
- your project is web-only, where KaTeX's mature V8-optimized engine remains the obvious choice
- you rely on KaTeX's DOM/trust-related extensions like \includegraphics or \htmlClass
- you need MathJax-specific features beyond KaTeX math syntax
- you need a battle-tested, long-proven renderer for critical production systems

## Facets
- artifact type: library
- maturity: active
- function: parser, graphics, image-processing, wasm, sdk
- domain: cross-platform, web-development, education, mobile-development, frontend
- platform: wasm, rust, cross-platform
- tags: latex, katex-compatible, math-rendering, ffi, mhchem, svg, png, flutter, react-native, no-javascript, ios, android, web-server

## Member repositories
- erweixin/RaTeX (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:45.768824+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-30T04:35:51.080129+00:00, confidence not recorded.
  - readme: https://github.com/erweixin/RaTeX (fetched 2026-08-28T04:04:45.768824+00:00, sha 68eb23b14875)
  - homepage: https://ratex.lites.dev/ (fetched 2026-08-29T11:45:12.662149+00:00, sha d801f6f9edd3)
  - registry_crates: https://crates.io/api/v1/crates/ratex (fetched 2026-08-29T11:45:12.671482+00:00, sha 2d8ce6c91899)
- Data as of 2026-08-30T08:39:29.467469+00:00.
