# justinribeiro/lite-youtube

The fastest little YouTube web component on this side of the internet. The shadow dom web component version of Paul's lite-youtube-embed.

Repository: https://github.com/justinribeiro/lite-youtube
Canonical: https://ross.abutalabs.com/products/lite-youtube
Homepage: https://www.npmjs.com/package/@justinribeiro/lite-youtube
Language: TypeScript
License: MIT
License Family: permissive
Topics: web-component, vanilla-webcomponent, youtube
Last push: 2026-04-21T20:53:39+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 78, release rhythm 42, longevity 100
- inputs: {"age_days": 2483, "days_push": 134, "days_rel": 309, "gap_med": 49.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1370, forks 95 (observed 2026-08-28T04:04:31.873932+00:00)

## What it is
A dependency-free vanilla web component (<lite-youtube>) that renders fast, lightweight YouTube embeds using a shadow DOM, poster image placeholder, and deferred iframe loading. It is the shadow DOM web component version of Paul Irish's lite-youtube-embed, focused on page performance and accessibility.

## Use cases
- embed youtube videos without slowing down page load
- lazy load youtube iframes when scrolled into view
- replace heavy youtube embeds with a fast web component
- make youtube embeds accessible with keyboard and aria
- embed youtube playlists or shorts with a lightweight component
- use youtube-nocookie embeds for privacy
- pause embedded videos when scrolled off screen

## When to choose
- you want a tiny (~2kb) zero-dependency youtube embed for any framework or plain HTML
- page performance metrics like LCP/CLS matter and standard embeds are too heavy
- you need shadow DOM encapsulation, accessibility, and locale-ready labels out of the box

## When to avoid
- you need deep control over the YouTube player API or custom player UI
- you are embedding platforms other than YouTube
- you need a full video player library rather than a facade-style embed

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, web-framework
- domain: web-development, frontend, media
- platform: browser
- tags: web-component, youtube-embed, performance, shadow-dom, lazy-loading, vanilla-javascript, web-server, nodejs

## Member repositories
- justinribeiro/lite-youtube (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:31.873932+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:40:55.818235+00:00, confidence not recorded.
  - readme: https://github.com/justinribeiro/lite-youtube (fetched 2026-08-28T04:04:31.873932+00:00, sha b65ee2461d60)
  - homepage: https://www.npmjs.com/package/@justinribeiro/lite-youtube (fetched 2026-08-29T11:58:01.040996+00:00, sha d4166dfe4645)
- Data as of 2026-08-30T08:39:29.467469+00:00.
