# dollarshaveclub/reframe.js

🖼  Reframe unresponsive elements responsively.

Repository: https://github.com/dollarshaveclub/reframe.js
Canonical: https://ross.abutalabs.com/products/reframejs
Homepage: https://github.com/yowainwright/reframe.js
Language: JavaScript
License: MIT
License Family: permissive
Topics: ratio, scale, elements-scale, iframe-embeds, embeds, iframes
Archived: true
Last push: 2020-03-26T18:37:07+00:00

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

## Adoption (not part of the score)
Stars 1585, forks 49 (observed 2026-08-28T04:05:07.481012+00:00)

## What it is
Reframe.js is a small vanilla JavaScript plugin that wraps unresponsive elements like iframes and embedded videos in a container with a fixed intrinsic ratio so they scale responsively. It includes a noframe.js variant that scales elements without altering the DOM structure.

## Use cases
- make embedded YouTube videos responsive
- scale iframes at a fixed aspect ratio
- make CMS-embedded content responsive without manual CSS
- replace FitVids with a vanilla JS plugin
- scale embedded content without breaking analytics event listeners
- make video playlists scale within a content area

## When to choose
- you need responsive iframes or video embeds in a CMS with multiple editors
- you want a tiny dependency-free FitVids alternative
- you must preserve DOM structure and analytics events on embedded content (use noframe.js)

## When to avoid
- you can use modern CSS aspect-ratio instead of a JS plugin
- you need a maintained repo - use yowainwright/reframe.js instead of this archived one
- you need a full responsive media or layout framework

## Facets
- artifact type: plugin
- maturity: maintenance
- function: ui-components, frontend-framework
- domain: web-development, frontend
- platform: browser
- tags: responsive-embeds, iframes, fixed-ratio-scaling, fitvids-alternative, vanilla-js, nodejs

## Member repositories
- dollarshaveclub/reframe.js (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:07.481012+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-30T03:55:32.053139+00:00, confidence not recorded.
  - readme: https://github.com/dollarshaveclub/reframe.js (fetched 2026-08-28T04:05:07.481012+00:00, sha ae159a6c7959)
  - homepage: https://github.com/yowainwright/reframe.js (fetched 2026-08-29T11:26:22.008677+00:00, sha f773001070a6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
