# Sugar High

JavaScript library that highlights source code in several languages and returns the result as HTML.


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

## Record

### Links

- home: https://sugar-high.vercel.app
- repository: https://github.com/huozhi/sugar-high
- docs: https://github.com/huozhi/sugar-high/blob/main/docs/API.md

### Identity

- status: active
- maintainer: Jiachi Liu
- maintainerType: individual
- parent: unknown
- firstRelease: 2022
- hqCountry: unknown

### Kind

- category: library
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- 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

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 2
- latestReleaseDate: 2026-11-13

### Adoption

- githubStargazers: 1389
- packagistDownloads: not applicable
- npmWeeklyDownloads: 434773
- contributors: 10
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 33
- dependentPackages: 9

### Sources

- urls: https://sugar-high.vercel.app/ (read 2026-11-16)
- urls: https://api.github.com/repos/huozhi/sugar-high (read 2026-11-16)
- urls: https://github.com/huozhi/sugar-high/blob/main/packages/sugar-high/README.md (read 2026-11-16)
- maintainer: https://api.github.com/users/huozhi (read 2026-11-16)
- maintainerType: https://api.github.com/users/huozhi (read 2026-11-16)
- language: https://api.github.com/repos/huozhi/sugar-high (read 2026-11-16)
- category: https://github.com/huozhi/sugar-high/blob/main/packages/sugar-high/README.md (read 2026-11-16)
- installMethod: https://github.com/huozhi/sugar-high/blob/main/packages/sugar-high/README.md (read 2026-11-16)
- license: https://registry.npmjs.org/sugar-high/latest (read 2026-11-16)
- licenseModel: https://github.com/huozhi/sugar-high/blob/main/packages/sugar-high/README.md (read 2026-11-16)
- firstRelease: https://registry.npmjs.org/sugar-high (read 2026-11-16)
- currentMajor: https://api.github.com/repos/huozhi/sugar-high/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/huozhi/sugar-high/releases/latest (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/huozhi/sugar-high (read 2026-11-16)
- contributors: https://api.github.com/repos/huozhi/sugar-high/contributors?per_page=1 (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/sugar-high (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/sugar-high (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/sugar-high (read 2026-11-16)

## Notes

Sugar High is a JavaScript library that highlights source code and returns the result as HTML. Its README says it runs in browsers and JavaScript runtimes without requiring a DOM. The [API reference](https://github.com/huozhi/sugar-high/blob/main/docs/API.md) lists the package exports, the language mapping and the highlighting options.

The repository is a monorepo. Besides the core package, it holds the React package @sugar-high/react and the Remark package @sugar-high/remark.

---

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
