# strues/retinajs

JavaScript, SCSS, Sass, Less, and Stylus helpers for rendering high-resolution image variants

Repository: https://github.com/strues/retinajs
Canonical: https://ross.abutalabs.com/products/retinajs
Homepage: http://retinajs.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: retina, javascript, image, dpi
Archived: true
Last push: 2026-04-14T05:58:04+00:00

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

## Adoption (not part of the score)
Stars 4379, forks 590 (observed 2026-08-28T04:08:46.938901+00:00)

## What it is
retina.js is a JavaScript library with Sass, Less, and Stylus helpers that automatically serves high-resolution (@2x, @3x) image variants to devices with high-DPI displays. The project is archived and no longer maintained, as modern browsers now handle this natively via srcset, <picture>, and image-set().

## Use cases
- serve @2x images to retina displays
- swap img src for high-DPI screens
- generate media queries for retina background images
- support multiple pixel density image variants
- maintain a legacy site that uses retina.js

## When to choose
- maintaining a legacy codebase already using retina.js
- supporting very old browsers without srcset or image-set support

## When to avoid
- starting a new project - use native srcset, <picture>, and image-set() instead
- any actively developed site needing maintained dependencies

## Facets
- artifact type: library
- maturity: abandoned
- function: image-processing, ui-components
- domain: web-development, frontend
- platform: browser
- tags: retina, high-dpi, images, legacy, scss, sass, less, stylus, nodejs

## Member repositories
- strues/retinajs (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:46.938901+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-29T18:21:18.658865+00:00, confidence not recorded.
  - readme: https://github.com/strues/retinajs (fetched 2026-08-28T04:08:46.938901+00:00, sha 869da01da28c)
  - homepage: http://retinajs.com (fetched 2026-08-29T09:09:48.471217+00:00, sha 44136fa355b3)
  - registry_npm: https://registry.npmjs.org/retinajs (fetched 2026-08-29T09:09:48.480147+00:00, sha 4c5ad8921364)
- Data as of 2026-08-30T08:39:29.467469+00:00.
