More Premium Hugo Themes Premium Svelte Themes

Svelte Devtools

A browser extension to inspect Svelte application by extending your browser devtools capabilities

Svelte Devtools

A browser extension to inspect Svelte application by extending your browser devtools capabilities

Author Avatar Theme by sveltejs
Github Stars Github Stars: 1613
Last Commit Last Commit: Nov 1, 2024 -
First Commit Created: Dec 18, 2023 -
Svelte Devtools screenshot

Overview:

Svelte DevTools is a Chrome extension designed for the Svelte framework. It allows developers to inspect the Svelte state and component hierarchies in the Developer Tools. With this extension, users can easily view and modify the current state of Svelte components, HTMLx blocks, and DOM elements on a page.

Features:

  • Inspect Svelte components: View a tree of Svelte components, HTMLx blocks, and DOM elements that were rendered on a page.
  • Edit component state: Select a node in the tree and edit its current state in the panel to the right.
  • Compatibility: Works with Svelte 4.0 and above, and requires Svelte applications to be compiled with the dev option set to true.

Installation:

To install Svelte DevTools, follow these steps:

  1. Clone the repository.
  2. Set up and run the build script.
  3. The build script will output all the required files in the build directory.
  4. In Chrome, navigate to the extensions settings page.
  5. Turn on the ‘Developer mode’ switch.
  6. Click ‘Load Unpacked’ and select the build directory.
  7. The extension will be loaded and ready for development.

Summary:

Svelte DevTools is a useful Chrome extension for developers using the Svelte framework. It provides an intuitive way to inspect and edit the state of Svelte components, HTMLx blocks, and DOM elements in the Developer Tools. With its compatibility with Svelte 4.0 and above and easy installation process, it is a valuable tool for Svelte developers.