This repository contains demo webpages, apps, and sample code to demonstrate various features of Microsoft Edge. This Readme lists all top-level source code directories. Below, demos are grouped by major technology area, and then sorted by directory name within each section's table.
Contents:
- Microsoft Edge DevTools
- Microsoft Edge extensions
- Progressive Web Apps (PWAs)
- Cross-browser API samples
- Adding a new demo
- Contributing
- Trademarks
- See also
See also:
- DevTools extension, in Microsoft Edge extensions, below.
- Sample code for DevTools
- Clone the Edge Demos repo to your drive in Sample code for DevTools.
Demo name | Description and docs | Source code & Readme | Live demo page |
---|---|---|---|
DevTools extension | Used for Create a DevTools extension, adding a custom tool tab and panel. | /devtools-extension/ | n/a |
Basic | A basic DevTools extension. | /devtools-extension/sample 1/ | n/a |
Panel | A basic DevTools extension with a panel. | /devtools-extension/sample 2/ | n/a |
CDP | A basic DevTools extension invoking Chrome Developer Protocol (CDP) APIs. | /devtools-extension/sample 3/ | n/a |
Inspect | A basic DevTools extension that interacts with the Inspected page. | /devtools-extension/sample 4/ | n/a |
See also:
- Samples for Microsoft Edge extensions. Includes samples that are in the microsoft / MicrosoftEdge-Extensions repo:
- Picture viewer pop-up webpage
- Picture inserter using content script
Demo name | Description and docs | Source code & Readme | Live demo page |
---|---|---|---|
1DIV | A CSS sandbox app that demonstrates the Window Controls Overlay feature. | /1DIV/ | 1DIV demo |
Email client | A simulated email client PWA that demonstrates how to use PWA protocol handlers. | /email-client/ | Email inbox demo |
Application Title Meta Tag | Showcases the application-title meta tag. |
/pwa-application-title/ | application-title demo |
Temperature converter | Converts temperatures. Used for Get started with PWAs. | /pwa-getting-started/ | Temperature converter demo |
PWA installer | A PWA that uses the Web Install API to install other PWAs. Also uses CSS Masonry. | /pwa-installer/ | pwa-installer demo |
Timer PWA | Has a Set timer button, and you can set the duration of the timer. | /pwa-timer/ | Timer PWA demo |
PWA To Do | Create lists of tasks locally in your browser, or by installing the app. Click About link in rendered demo. | /pwa-to-do/ | PWA To Do demo |
PWAmp | A music player that plays local audio files. | /pwamp/ | pwamp demo |
wami | An image manipulation app to crop, resize, or add effects to images. | /wami/ | wami demo |
See also:
- Progressive Web App demos - also lists the demos:
- My Movie List
- My Tracks
- BPM Techno
- Webboard
Demo name | Description and docs | Source code & Readme | Live demo page |
---|---|---|---|
Built-in AI playgrounds | Demo pages showing how to use the built-in Prompt and Writing Assistance AI APIs in Microsoft Edge. | /built-in-ai/ | Built-in AI playgrounds demo |
CSS Gap Decorations demos | Draws line decorations within gaps in CSS Grid, Flexbox, and Multi-column layouts. | /css-gap-decorations/ | CSS Gap Decorations demos (Readme) |
CSS Masonry demos | Showcase the implementation of CSS Masonry layout. | /css-masonry/ | CSS Masonry demos (Readme) |
CSS Custom Highlight API | How to programmatically create and remove custom highlights on a web page. | /custom-highlight-api/ | CSS Custom Highlight API demo |
EditContext API demo | Demo page showing how the EditContext API can be used to build an advanced text editor. | /edit-context/ | HTML editor demo |
EyeDropper API | How to use the EyeDropper API to create a color sampling tool from JavaScript. | /eyedropper/ | EyeDropper API demos |
IndexedDB: getAllRecords() |
Shows the benefits of the proposed getAllRecords() IndexedDB method to more conveniently and quickly read IDB records. |
/idb-getallrecords/ | IndexedDB: getAllRecords() demo |
Notifications demo | Using incoming call notifications. | /incoming-call-notifications/ | Notifications demo |
JSON dummy data | Simple JSON files. Used for View a JSON file or server response with formatting. | /json-dummy-data/ | JSON dummy data (Readme) |
Page Colors Custom Scrollbars demo | Shows a custom, green scrollbar in a page that has custom colors. | /page-colors-custom-scrollbars/ | Page Colors Custom Scrollbars demo |
Reader app | An article reader app used to demonstrate how to use various web APIs such as CSS Custom Highlight, <selectmenu> , EyeDropper, CSS and JSON modules, Scroll animation timeline, and Async Clipboard. |
/reader/ | Reader demo |
Open UI's <selectlist> demos |
Demo webpage showing how the Open UI's <selectlist> element can be used. |
/selectlist/ | Open UI's <selectlist> demos |
<selectmenu> demos |
OpenUI's <selectmenu> component was renamed to <selectlist> . |
/selectmenu/ | <selectmenu> demos, redirects to /selectlist/ demos |
SVG support in the Async Clipboard API | Demo page showing how the Async Clipboard API supports SVG format. | /svg-clipboard/ | SVG clipbard support demo |
WebNN API | Uses the WebNN API to build a machine learning graph and run it on the device's hardware. | /webnn/ | WebNN API demo |
See also:
To add a new demo:
-
Make a copy of the
/template/
directory at the root of this repository and give it a name, such as/my-demo/
. -
Edit the
README.md
file in the new directory to clearly explain what your new demo is about. -
In the README file, include a GitHub.io link that points to the live demo.
This repository is set up to be deployed live using GitHub Pages (GitHub.io), so a rendered
index.html
file in the/my-demo/
directory (for example) will end up being accessible on the web athttps://microsoftedge.github.io/demos/my-demo/
. -
Edit the code (such as
index.html
orstyle.css
) in the new directory. Add any files you need. -
Add a link to your demo in this
README.md
file, in a new row in one of the tables above, similar to the following row:
Demo name | Description and docs | Source code & Readme | Live demo page |
---|---|---|---|
Template | Template directory to copy/paste to add a new demo. Can be used for Microsoft Edge Developer documentation. | /template/ | My new demo |
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
- Clone the Edge Demos repo to your drive in Sample code for DevTools.