mdn/dom-examples

Code examples that accompany various MDN DOM and Web API documentation pages

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 30 minutes ago
Added to GitGenius on September 17th, 2026
Created on February 13th, 2017
Open Issues & Pull Requests: 20 (+0)
GitHub issues: Enabled
Number of forks: 1,926
Total Stargazers: 4,039 (+0)
Total Subscribers: 67 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 30.6 days
Mean response time: 210.6 days
90th percentile: 475.1 days
Tracked items: 19

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 7
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 951 days
Stale 30+ days: 6
Stale 90+ days: 5

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • help wanted (6)
  • accepting PR (3)
  • bug (3)
  • effort: small (3)
  • good first issue (3)
  • needs triage (3)
  • area: drag-and-drop (1)
  • area: indexeddb-api (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

dom-examples is a collection of code examples that accompany MDN DOM and Web API documentation pages.

The repository serves to bridge the gap between conceptual documentation and practical implementation by providing working code samples for DOM manipulation, Web API features, and related browser capabilities. Each example is designed to demonstrate a specific API or technique in isolation, allowing developers to see exactly how a feature works without navigating complex, production-grade codebases. The examples cover areas including drag-and-drop interactions, pointer events, touch events, channel messaging, pointer lock, and media queries, with each example typically focused on a single concept.

Developers should use this repository when learning Web APIs or when writing MDN documentation that requires accompanying code samples. The examples work best for developers who prefer learning from concrete, runnable code rather than prose alone, and for those building educational content or tutorials. The repository is particularly valuable during the early stages of learning a new Web API, as the examples are intentionally kept simple and focused rather than demonstrating production patterns or advanced optimization.

The project receives regular updates tied to MDN documentation changes, with examples being added or modified as the Web API documentation evolves. Maintenance activity reflects ongoing attention to keeping examples current with browser capabilities and documentation needs, though the repository functions primarily as a reference collection rather than an actively developed tool with new features.