Prism
Lightweight, robust, elegant syntax highlighting. observed · 2026-08-28
Health v2 · maintenance only
63/100
- Activity 90
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5167
- days_rel: 541
- days_push: 65
- n_releases_24m: 1
Adoption not part of the score
13038 stars · 1384 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Prism is a lightweight, extensible JavaScript syntax highlighting library for highlighting code in web pages, with a 2KB core and hundreds of regex-based language definitions plus a plugin architecture and theme collection. It is used on millions of websites and is currently in maintenance mode while Prism v2 is developed.
Use cases
- highlight code snippets on a blog or documentation site
- add syntax highlighting to a static site with a tiny footprint
- define custom language grammars for a DSL
- style code blocks with CSS themes
- highlight code server-side in Node.js
- build a markdown or docs pipeline that renders colored code blocks
When to choose
- you need a tiny, fast, browser-based highlighter with easy CSS theming
- you want to support many languages via community definitions
- you need to extend highlighting with regex-based custom grammars or plugins
When to avoid
- you need a full, error-free parser for IDE-grade highlighting (e.g. tree-sitter or language servers)
- you need active feature development right now, since only security PRs are accepted pending v2
- you need highlighting outside HTML/browser contexts with rich editor integration
Facets
library · maturity maintenance
parser ui-components frontend-framework web-development frontend documentation developer-tools browser syntax-highlighting code-highlighting regex-based-tokenizer themes extensible-plugins nodejs web-server
6 sources
- readme: https://github.com/PrismJS/prism · fetched 2026-08-28 · 4bd7c09e3c35
- homepage: https://prismjs.com · fetched 2026-08-29 · 0cc0e16db8ae
- site_page: https://prismjs.com/docs/prism · fetched 2026-08-29 · aadbdcabf624
- site_page: https://prismjs.com/faq · fetched 2026-08-29 · 412057ec399f
- site_page: https://prismjs.com/plugins/wpd · fetched 2026-08-29 · 037f62275d95
- site_page: https://prismjs.com/extending · fetched 2026-08-29 · d2f0b23186fd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| PrismJS/prism | main | 63 |
| PrismJS/prism-themes | plugin | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem