Developer tooling for Web Components and Web Component Libraries
Web Component DevTools Extension
Web Component DevTools is aimed at all developers working with Web Components. The tooling provided creates a new Chrome Devtools panel, which allows a quick look at the custom elements on the current page, and enables modification of attributes and properties of said components.
Web Component DevTools utilizes the Custom Elements Manifest (https://github.com/webcomponents/custom-elements-manifest) to analyze the Web Components.
Features:
Web Component DevTools provides advanced features to the developer, straight from the browser's UI to, for example:
- Listing custom elements on the page, and accessible iframes inside the page
- Filtering custom elements on the list
- Inspecting and modifying the attributes of custom elements
- Inspecting and modifying the properties (even objects and arrays) of custom elements
- Observing dispatched events
- Calling functions of the custom element, and logging the return values
- View the source code of web components on page
- Interact directly with web components through the console
Why?
In the process of developing Web Components, wether it be with a library like Lit, or without any kind of library, there comes situtations in which you might want to have a bit more control over your components than what the regular browser devtools gives you.
You might for example want to:
Toggle the Attributes of the element
Toggle the Properties of the element
Monitor when events get dispatched from the element
Call functions
And when you're working with Web Components, Shadow DOM usually is present, making it fairly difficult to find the path to the element. And even if you got the path, having to write document.querySelector(\"my-selector-string > element-name\").setAttribute(\"my-attr\", \"foo\") every time you want to modify a value is quite cumbersome.
For this use case the Web Components DevTools were created: To enable the developer to easily modify the attributes, properties and therefore state of their element straight from the devtools window with the click of a button.
Issues:
Any issues you run into while using the DevTools should be submitted to the GitHub Repository (https://github.com/Matsuuu/web-component-devtools/issues).
Source Manifest.json
Similar Extensions
Dev Tools 7,000+ 1 ★ 106KiB
Preact Developer Tools 7,000+ 11 ★ 147KiB
React Context DevTool 7,000+ 21 ★ 2.35MiB
Custom Elements Locator 7,000+ 3 ★ 3.46MiB
Chrome Devtools Styler 7,000+ 6 ★ 262KiB
Web Vitals 7,000+ 43 ★ 398KiB
Solid Devtools 7,000+ 7 ★ 123KiB
Lit Prism 7,000+ 6 ★ 130KiB
DevTools Author 7,000+ 117 ★ 377KiB
VisBug 7,000+ 252 ★ 5.38MiB
DOM Treemap 7,000+ 3 ★ 148KiB
axe DevTools - Web Accessibility Testing 7,000+ 114 ★ 2.89MiB
MobX Developer Tools 7,000+ 51 ★ 682KiB
Angular DevTools 7,000+ 159 ★ 3.2MiB
Polymer Ready 7,000+ 15 ★ 14.71KiB
MageTools: DevTools Reimagined 7,000+ 9 ★ 84.8KiB
Refined GitHub 7,000+ 213 ★ 572KiB
npmhub 7,000+ 19 ★ 77.19KiB
Advanced Dev Tools 7,000+ 1 ★ 891KiB
Motion DevTools 7,000+ 8 ★ 788KiB
Jinno: code any React component with AI 7,000+ 38 ★ 18.37MiB
Node.js V8 --inspector Manager (NiMV3) 7,000+ 97 ★ 582KiB
Gimli Tailwind 7,000+ 33 ★ 151KiB
CSS Stacking Context inspector 7,000+ 21 ★ 262KiB
User reviews
Arturo Guillén (ID: 0000006d0fa94ed7) Voted 5 ★ - Updated 07/13/2021
Bruce Anderson (ID: 000000ffc742efd5) Voted 5 ★ - Updated 07/08/2021
Ofer Shaal (ID: 000000e29a9fa075) Voted 5 ★ - Updated 07/07/2021