GitHub Elements
GitHub's Web Component collection. observed · 2026-10-15
Health v2 · maintenance only
75/100
- Activity 94
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3038
- days_rel: n/a
- days_push: 36
- n_releases_24m: 0
Adoption not part of the score
2903 stars · 66 forks observed · 2026-10-15
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
GitHub Elements is a collection of web components from GitHub, including the <relative-time> custom element that extends the standard <time> element. It formats timestamps as localized strings or auto-updating relative text in the browser, letting servers cache HTML while clients localize dates.
Use cases
- display relative timestamps like '5 minutes ago' that auto-update
- localize dates to the user's timezone and locale in the browser
- serve cacheable server-rendered HTML containing dates
- format timestamps with a 24-hour clock per browser settings
- show fallback date text when JavaScript is disabled
- render durations and relative dates in web apps
When to choose
- you want localized, timezone-aware date display without server-side per-user rendering
- you need cacheable HTML fragments that still display correct dates per user
- you're building with web components or custom elements
- you want progressive enhancement with a plain-text fallback
When to avoid
- you need to support legacy browsers without Intl.DateTimeFormat/RelativeTimeFormat and can't polyfill
- your framework already handles date localization and you don't use web components
- you need heavy date manipulation/parsing rather than display formatting
Facets
library · maturity active
ui-components internationalization date-time templating web-development frontend browser web-components custom-elements relative-time timezone github-elements localization nodejs javascript
2 sources
- readme: https://github.com/github/github-elements · fetched 2026-10-15 · 0ec1f9185eb3
- homepage: https://www.webcomponents.org/collection/github/github-elements · fetched 2026-08-29 · a07e50483ab0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| github/github-elements | main | 75 |
| github/relative-time-element | plugin | 92 |
| github/details-dialog-element | plugin | 10 |
| github/details-menu-element | plugin | 67 |
| github/include-fragment-element | plugin | 70 |
| github/clipboard-copy-element | plugin | 92 |
| github/markdown-toolbar-element | plugin | 67 |
| github/auto-complete-element | plugin | 78 |
| github/tab-container-element | plugin | 84 |
| github/text-expander-element | plugin | 81 |
| github/image-crop-element | plugin | 67 |
| github/auto-check-element | plugin | 74 |
| github/task-lists-element | plugin | 67 |
| github/g-emoji-element | plugin | 67 |
| github/file-attachment-element | plugin | 82 |
| github/typing-effect-element | plugin | 67 |
| github/remote-input-element | plugin | 67 |
| github/filter-input-element | plugin | 67 |
For agents
markdown · JSON · MCP: product_card(name="github/github-elements")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem