# KaTeX/KaTeX

Fast math typesetting for the web.

Repository: https://github.com/KaTeX/KaTeX
Canonical: https://ross.abutalabs.com/products/katex
Homepage: https://katex.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: math, math-typesetting, latex, javascript, katex
Last push: 2026-08-26T21:58:11+00:00

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

## Adoption (not part of the score)
Stars 20340, forks 1323 (observed 2026-08-28T04:11:29.941472+00:00)

## What it is
KaTeX is a fast, dependency-free JavaScript library for rendering TeX/LaTeX math on the web. It renders synchronously with print-quality layout based on Knuth's TeX and supports both browser and server-side (Node.js) rendering to HTML strings.

## Use cases
- render LaTeX math equations on a website
- display math formulas in a blog or documentation site
- server-side render math to HTML with Node.js
- fast synchronous math typesetting without page reflow
- render math in a React or static site
- typeset hundreds of math expressions on a page quickly

## When to choose
- you need the fastest possible math rendering, especially with many expressions per page
- you want a self-contained library with no dependencies
- you need server-side rendering of math to plain HTML
- you want TeX-quality print layout

## When to avoid
- you need full LaTeX support including all packages and environments
- you need MathML input or accessibility features beyond KaTeX's MathML output
- you need asynchronous rendering or MathJax's extension ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: templating, frontend-framework, ui-components
- domain: web-development, frontend, mathematics, education
- platform: browser, cross-platform
- tags: latex, math-typesetting, tex, math-rendering, server-side-rendering, no-dependencies, nodejs, deno

## Member repositories
- KaTeX/KaTeX (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:29.941472+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-29T16:59:02.477899+00:00, confidence not recorded.
  - readme: https://github.com/KaTeX/KaTeX (fetched 2026-08-28T04:11:29.941472+00:00, sha 7ffa6b7dcb6d)
  - homepage: https://katex.org (fetched 2026-08-29T07:57:59.163593+00:00, sha 6d094ca4f315)
  - site_page: https://katex.org/docs/browser (fetched 2026-08-29T07:57:59.166107+00:00, sha 71a3263ea5cb)
  - site_page: https://katex.org/docs/api (fetched 2026-08-29T07:57:59.168275+00:00, sha e00327ca5e47)
  - site_page: https://katex.org/docs/node (fetched 2026-08-29T07:57:59.170131+00:00, sha 28b501e9999a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
