wooorm/starry-night
Some data may be outdated — see provenance labels.
Syntax highlighting, like GitHub observed · 2026-10-03
Health v2 · maintenance only
90/100
- Activity 92
- Release rhythm 81
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 83
- age_days: 1624
- days_rel: 51
- days_push: 51
- n_releases_24m: 6
Adoption not part of the score
1817 stars · 39 forks observed · 2026-10-03
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
starry-night is an open-source JavaScript syntax highlighting library that replicates GitHub's PrettyLights highlighting using TextMate grammars, supporting 600+ languages. It produces hast syntax trees that can be serialized to HTML or integrated with unified, remark, rehype, markdown-it, or React.
Use cases
- highlight code blocks in markdown like GitHub does
- syntax highlight 600+ languages on a website
- render code snippets with GitHub-style colors
- add syntax highlighting to a static site generator
- highlight code in React components
- integrate syntax highlighting with remark or rehype
When to avoid
- you need a tiny client-side highlighter in the browser (consider lowlight or refractor)
- you only need highlighting for a handful of common languages
- you cannot tolerate a WASM dependency
Facets
library · maturity active
parser developer-tools markdown web-development frontend developer-tools documentation browser wasm syntax-highlighting textmate-grammars github-prettylights hast rehype remark nodejs javascript
1 source
- readme: https://github.com/wooorm/starry-night · fetched 2026-10-03 · 4223526a3e40
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| wooorm/starry-night | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="wooorm/starry-night")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem