# asvd/microlight

highlights code in any programming language

Repository: https://github.com/asvd/microlight
Canonical: https://ross.abutalabs.com/products/microlight
Homepage: http://asvd.github.io/microlight
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-05-11T09:45:42+00:00

## Health v2 (maintenance only)
Score: 59/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 81, release rhythm 8, longevity 100
- inputs: {"age_days": 3750, "days_push": 114, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1493, forks 61 (observed 2026-08-28T04:04:52.785247+00:00)

## What it is
A tiny (2.2k minified) JavaScript library that highlights code snippets in any programming language without requiring language packages or stylesheets. It uses a general language-agnostic highlighting strategy that alters font type and look rather than colors.

## Use cases
- highlight code snippets on a blog without loading heavy libraries
- add syntax highlighting to a static page with minimal footprint
- highlight mixed-language code blocks (HTML with embedded JS, CSS, PHP)
- avoid specifying the language of each code snippet
- improve readability of code examples in documentation

## When to choose
- you need an extremely small highlighting library with no dependencies
- your snippets mix multiple languages or you don't know the language
- you want a subtle, colorless highlight based on font styling

## When to avoid
- you need accurate, language-specific tokenization and rich color themes
- you need highlighting for very large code files or server-side rendering
- you need support for many languages with per-language grammars like Prism or highlight.js provide

## Facets
- artifact type: library
- maturity: maintenance
- function: templating, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: syntax-highlighting, code-snippets, language-agnostic, tiny-library, zero-dependency, javascript, nodejs

## Member repositories
- asvd/microlight (main) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:52.785247+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:33:26.325400+00:00, confidence not recorded.
  - readme: https://github.com/asvd/microlight (fetched 2026-08-28T04:04:52.785247+00:00, sha 9b3b1d57a7bd)
  - homepage: http://asvd.github.io/microlight (fetched 2026-08-29T11:39:20.064823+00:00, sha e5265a7f46ad)
  - registry_npm: https://registry.npmjs.org/microlight (fetched 2026-08-29T11:39:20.074389+00:00, sha 55f3ba25d873)
- Data as of 2026-08-30T08:39:29.467469+00:00.
