A Chromium DevTools extension for inspecting and debugging Serenity applications.
- Widget Inspector: Browse and inspect Serenity widgets in your application
- Element Picker: Click on elements to find their corresponding widget
- Property Viewer: View widget properties, options, and state
- DOM Highlighting: Highlight DOM elements associated with widgets
- Scroll Into View: Quickly navigate to widget elements in the page
- View Source: Instantly inspect the source code for widget constructors and methods
Download from Chrome Web Store
- Clone this repository
- Install dependencies:
pnpm install
- Build the extension:
pnpm run build
- Load the extension in Chrome:
- Navigate to
chrome://extensions - Enable "Developer mode"
- Click "Load unpacked"
- Select the
distfolder
- Navigate to
Start the development server with hot reload:
pnpm run watchRun with a test browser:
pnpm run dev:chromium- Open Chrome DevTools (F12).
- Navigate to the
Serenitypanel. - Browse the widget tree or use the inspector to select widgets on the page, or press Ctrl + Shift + X to toggle inspect widget mode.
- Click on any widget to view its details, properties, and associated DOM element. The selected widget is saved to the developer console as
$$0.
| Command | Description |
|---|---|
pnpm run build |
Build for production |
pnpm run watch |
Development mode with hot reload |
pnpm run dev:chromium |
Run in Chromium with web-ext |
pnpm run lint |
Run ESLint |
pnpm run check |
TypeScript type checking |
