# Install katex with npm

Fast math typesetting for the web. Version 0.18.1 via npm; verified 2026-07-19. Also installable with debian: sudo apt install katex.

## Install

```sh
sudo av install npm:katex
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g katex
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:katex
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/katex>
- **Version:** 0.18.1
- **Source summary:** Fast math typesetting for the web.
- **Homepage:** <https://katex.org>
- **Repository:** <https://github.com/KaTeX/KaTeX>
- **Upstream docs:** <https://katex.org>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/katex/-/katex-0.18.1.tgz>
- **Issue tracker:** <https://github.com/KaTeX/KaTeX/issues>
- **Published:** 2026-07-19T08:40:11.506Z
- **Last updated:** 2026-07-19T08:40:11.506Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- katex (cli)
- katex (alias)

## Dependencies

- commander

## Build dependencies

- @babel/core
- @babel/plugin-proposal-class-properties
- @babel/plugin-transform-react-jsx
- @babel/plugin-transform-runtime
- @babel/preset-env
- @babel/preset-react
- @babel/preset-typescript
- @babel/register
- @babel/runtime
- @eslint/eslintrc
- @eslint/js
- @rollup/plugin-babel
- @rollup/plugin-commonjs
- @rollup/plugin-typescript
- @semantic-release/changelog
- @semantic-release/git
- @stylistic/stylelint-plugin
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- babel-jest
- babel-loader
- babel-plugin-istanbul
- babel-plugin-preval
- babel-plugin-version-inline
- benchmark
- browserslist
- caniuse-lite
- css-loader
- cssnano
- eslint
- eslint-plugin-actions
- eslint-plugin-react
- fs-extra
- globals
- got
- husky
- istanbul-lib-coverage
- istanbul-lib-report
- istanbul-reports
- jest
- jest-diff
- jest-environment-jsdom
- jest-matcher-utils
- jest-message-util
- jest-serializer-html
- js-yaml
- json-stable-stringify
- jspngopt
- mini-css-extract-plugin
- mkdirp
- p-retry
- pako
- pixelmatch
- pngjs
- postcss
- postcss-loader
- postcss-preset-env
- postcss-scss
- rimraf
- rollup
- sass
- sass-loader
- selenium-webdriver
- semantic-release
- sri-toolbox
- style-loader
- stylelint
- stylelint-config-standard
- stylelint-scss
- terser-webpack-plugin
- tslib
- typescript
- webpack
- webpack-bundle-analyzer
- webpack-cli
- webpack-dev-server
- webpack-remove-empty-scripts

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepare
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 0.18.1
- Package-manager updated: 2026-07-19
- Local data: ok
- Upstream repository: https://github.com/KaTeX/KaTeX
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for katex. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 0.18.1
- **Version Count:** 116
- **Maintainers:** xymostech, gagern, kevinbarabash, edemaine, khanacademy, sophiebits, ylemkimon
- **Publisher:** edemaine
- **Integrity:** sha512-Td8GCYSxDAoMhHOlKmCFMJ/hz5qlAAb71n66Dryw9nfCVfumLo7nhuotbvKom/XPADmrYC3O5QR71EPq4DarJQ==
- **Shasum:** 98c3e169ef9196072ec857e893beb88374519014
- **Unpacked Size:** 4,030,615
- **File Count:** 0
- **Created At:** 2014-09-15T10:05:12.455Z
- **Latest Published At:** 2026-07-19T08:40:11.506Z
- **Modified At:** 2026-07-19T08:40:11.734Z

## Other Package-Manager Records

- Debian apt - katex - 0.16.10+~cs6.1.0-2: normalized package name match | Debian stable package indexes: katex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fast math typesetting for the web (command line interface) | https://github.com/Khan/KaTeX#readme
- Nix - katex: normalized package name match | nixpkgs package indexes: pkgs/by-name/ka/katex/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - katex - 0.16.10+~cs6.1.0-2: normalized package name match | Ubuntu 24.04 LTS package indexes: katex from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fast math typesetting for the web (command line interface) | https://github.com/Khan/KaTeX#readme


## Related links

- [Media and graphics packages](https://pkg.so/media-graphics-tools/) - Matched curated package taxonomy and local package facts.
- [dxf](https://pkg.so/npm/dxf/) - Local package facts share a topical domain. Shared terms: cli, commander, media.
- [fantasticon](https://pkg.so/npm/fantasticon/) - Local package facts share a topical domain. Shared terms: cli, commander, media.
- [fontello-cli](https://pkg.so/npm/fontello-cli/) - Local package facts share a topical domain. Shared terms: cli, commander, media.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
