# starry-night

JavaScript syntax highlighter that uses TextMate grammars and is designed to produce markup matching GitHub's code highlighting.


Source: https://findsoftware.frbit.cloud/starry-night/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- repository: https://github.com/wooorm/starry-night
- docs: https://github.com/wooorm/starry-night/blob/main/readme.md

### Identity

- status: active
- maintainer: Titus Wormer
- maintainerType: individual
- parent: unknown
- firstRelease: 2022
- hqCountry: unknown

### Kind

- category: library
- hosting: node, deno
- language: javascript
- runtime: node, deno
- runtimeMin: node 16
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm, cdn

### License

- licenseModel: open-source
- license: MIT, Apache-2.0

### Releases

- currentMajor: 3
- latestReleaseDate: 2026-08-30

### Adoption

- githubStargazers: 1819
- packagistDownloads: not applicable
- npmWeeklyDownloads: 149890
- contributors: 5
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 56
- dependentPackages: 19

### Sources

- urls: https://api.github.com/repos/wooorm/starry-night (read 2026-11-16)
- urls: https://github.com/wooorm/starry-night/blob/main/readme.md (read 2026-11-16)
- maintainer: https://github.com/wooorm/starry-night/blob/main/license (read 2026-11-16)
- category: https://github.com/wooorm/starry-night/blob/main/readme.md (read 2026-11-16)
- language: https://api.github.com/repos/wooorm/starry-night (read 2026-11-16)
- runtime: https://github.com/wooorm/starry-night/blob/main/readme.md (read 2026-11-16)
- runtime: https://github.com/wooorm/starry-night/blob/main/readme.md (read 2026-11-16)
- runtimeMin: https://github.com/wooorm/starry-night/blob/main/readme.md (read 2026-11-16)
- installMethod: https://github.com/wooorm/starry-night/blob/main/readme.md (read 2026-11-16)
- installMethod: https://github.com/wooorm/starry-night/blob/main/readme.md (read 2026-11-16)
- license: https://github.com/wooorm/starry-night/blob/main/license (read 2026-11-16)
- license: https://github.com/wooorm/starry-night/blob/main/readme.md (read 2026-11-16)
- licenseModel: https://github.com/wooorm/starry-night/blob/main/license (read 2026-11-16)
- firstRelease: https://api.github.com/repos/wooorm/starry-night/releases (read 2026-11-16)
- currentMajor: https://api.github.com/repos/wooorm/starry-night/releases/latest (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/wooorm/starry-night/releases/latest (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@wooorm/starry-night (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@wooorm%2Fstarry-night (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@wooorm%2Fstarry-night (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/wooorm/starry-night (read 2026-11-16)
- contributors: https://api.github.com/repos/wooorm/starry-night/contributors?per_page=1 (read 2026-11-16)

## Notes

starry-night is a JavaScript syntax highlighter that uses TextMate grammars. It produces a syntax tree rather than a string, so the result can be turned into HTML, React nodes or ANSI output. The README says its output classes are meant to match GitHub's and that the stylesheet it ships supports light and dark mode. It calls the project similar to shiki.

## Worth knowing

The package is ESM only. The README notes a WebAssembly dependency and rather big grammars, and says it may be too heavy in browsers, where it names lowlight and refractor as more suitable options. The grammars it includes are covered by their own repositories' licenses, which the README calls permissive.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
