# mdn/web-components-examples

A series of web components examples, related to the MDN web components documentation at https://developer.mozilla.org/en-US/docs/Web/Web_Components.

Repository: https://github.com/mdn/web-components-examples
Canonical: https://ross.abutalabs.com/products/web-components-examples
Language: JavaScript
License: CC0-1.0
License Family: permissive
Topics: examples, web-components
Last push: 2026-01-13T10:37:27+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 62, release rhythm 35, longevity 100
- inputs: {"age_days": 3188, "days_push": 232, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3371, forks 822 (observed 2026-08-28T04:07:58.394685+00:00)

## What it is
A collection of example web components accompanying the MDN Web Components documentation, demonstrating custom elements, shadow DOM, templates, slots, and lifecycle callbacks. Each example is a small standalone component with a live demo.

## Use cases
- learn how to build web components
- see examples of custom elements with shadow DOM
- understand web component lifecycle callbacks
- find reference implementations of editable list or editable word components
- study how slots and templates work in custom elements
- teach web components in a frontend course

## When to choose
- you are learning or teaching web components from MDN docs
- you want small, clear reference implementations of custom element patterns
- you need runnable demos of shadow DOM, slots, and lifecycle callbacks

## When to avoid
- you need a production-ready web component library or framework
- you want polished, feature-complete UI components for an app
- you need a build system or tooling around web components

## Facets
- artifact type: learning-resource
- maturity: active
- function: ui-components, developer-tools, documentation
- domain: web-development, frontend, tutorials
- platform: browser
- tags: web-components, custom-elements, shadow-dom, mdn, examples, javascript, web

## Member repositories
- mdn/web-components-examples (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:58.394685+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:39:57.157716+00:00, confidence not recorded.
  - readme: https://github.com/mdn/web-components-examples (fetched 2026-08-28T04:07:58.394685+00:00, sha 2aec3d8d8fd5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
