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. observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 99
- Release rhythm 95
- Longevity 12
Flags: young no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 3.0
- age_days: 176
- days_rel: 36
- days_push: 10
- n_releases_24m: 23
Adoption not part of the score
1451 stars · 68 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity active
parser graphics image-processing wasm sdk cross-platform web-development education mobile-development frontend wasm rust cross-platform latex katex-compatible math-rendering ffi mhchem svg png flutter react-native no-javascript ios android web-server
3 sources
- readme: https://github.com/erweixin/RaTeX · fetched 2026-08-28 · 68eb23b14875
- homepage: https://ratex.lites.dev/ · fetched 2026-08-29 · d801f6f9edd3
- registry_crates: https://crates.io/api/v1/crates/ratex · fetched 2026-08-29 · 2d8ce6c91899
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| erweixin/RaTeX | main | 80 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem