ccampbell/rainbow
Simple syntax highlighting library written in javascript observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- 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: 5273
- days_rel: n/a
- days_push: 1074
- n_releases_24m: 0
Adoption not part of the score
3297 stars · 451 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Rainbow is a lightweight (~2.5kb) JavaScript syntax highlighting library for coloring code blocks in web pages. It works in the browser via a data-language attribute and in Node.js, supports many languages, and is fully themable with CSS and extendable with custom language rules.
Use cases
- highlight code snippets on a blog or documentation site
- add syntax coloring to pre/code blocks in HTML
- highlight source code in a Node.js script
- build a custom lightweight highlighter bundle with only needed languages
- create custom CSS themes for code display
- extend an existing language with custom highlighting rules
When to choose
- you need a very small, dependency-free highlighter for a website
- you want CSS-based theming and easy language extension
- you only need highlighting for a handful of languages
When to avoid
- you need highlighting for many obscure languages out of the box
- you need server-side rendering integration with a modern framework
- you need actively developed features or frequent updates
Facets
library · maturity maintenance
parser ui-components developer-tools web-development frontend documentation browser syntax-highlighting code-display lightweight css-theming extensible nodejs javascript
2 sources
- readme: https://github.com/ccampbell/rainbow · fetched 2026-08-28 · 1a765a5efee5
- homepage: http://rainbowco.de · fetched 2026-08-29 · 0d950b044c51
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ccampbell/rainbow | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="ccampbell/rainbow")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem