MCPcopy
hub / github.com/mdn/dom-examples

github.com/mdn/dom-examples @main sqlite

repository ↗ · DeepWiki ↗
961 symbols 1,925 edges 171 files 127 documented · 13%
README

dom-examples

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

[!NOTE] You can include an example directly in MDN pages using {{EmbedLiveSample()}} macros or regular Markdown code blocks. These methods are simpler to maintain as the code lives beside the rest of the content. Only add examples to this repository if your example doesn't easily run on MDN pages for technical or security reasons.

Browser support

When creating code examples for a technology that's not yet available in all major browsers, consider using feature detection to fall back to a simpler behavior or inform the user that their browser is not yet supported. Do not specify supported browsers and their versions in code comments or prose, as this information quickly becomes outdated.

Repository contents

Core symbols most depended-on inside this repo

addEventListener
called by 295
webxr/webxr-polyfill.js
set
called by 30
streams/png-transform-stream/png-chunks.js
removeEventListener
called by 28
webxr/webxr-polyfill.js
get
called by 24
streams/png-transform-stream/png-chunks.js
LogGLError
called by 22
webxr/script.js
defineDataViewProperty
called by 21
streams/png-transform-stream/png-chunks.js
_interopRequireWildcard
called by 20
webxr/gl-matrix.js
dispatchEvent
called by 16
webxr/webxr-polyfill.js

Shape

Function 647
Method 224
Class 90

Languages

TypeScript100%

Modules by API surface

webxr/webxr-polyfill.js340 symbols
webxr/gl-matrix.js86 symbols
streams/png-transform-stream/png-chunks.js36 symbols
streams/grayscale-png/pako.min.js25 symbols
webxr/script.js18 symbols
web-storage/jscolor/jscolor.js16 symbols
indexeddb-api/main.js15 symbols
streams/png-transform-stream/png-lib.js12 symbols
streams/grayscale-png/png-lib.js11 symbols
to-do-notifications/scripts/todo.js10 symbols
streams/png-transform-stream/png-transform-stream.js10 symbols
webgl-examples/tutorial/sample8/webgl-demo.js8 symbols

For agents

$ claude mcp add dom-examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact