All Projects → RedHatter → Svelte Devtools

RedHatter / Svelte Devtools

Licence: mit
An extension that allows inspection of Svelte component hierarchy and state in the Firefox and Chrome developer tools.

Labels

Projects that are alternatives of or similar to Svelte Devtools

Abstract State Router
Like ui-router, but without all the Angular. The best way to structure a single-page webapp.
Stars: ✭ 288 (-40.5%)
Mutual labels:  svelte
Svite
svelte integration for vite
Stars: ✭ 383 (-20.87%)
Mutual labels:  svelte
Svelte I18n
Internationalization library for Svelte
Stars: ✭ 433 (-10.54%)
Mutual labels:  svelte
Svelvet
🧵 An experimental svelte compiler & watcher that works with snowpack
Stars: ✭ 310 (-35.95%)
Mutual labels:  svelte
Vudash
Powerful, Flexible, Open Source dashboards for anything
Stars: ✭ 363 (-25%)
Mutual labels:  svelte
Mermaid Live Editor
Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.
Stars: ✭ 395 (-18.39%)
Mutual labels:  svelte
Userscripts
An open-source userscript editor for Safari
Stars: ✭ 261 (-46.07%)
Mutual labels:  svelte
Untrusted Types
Stars: ✭ 473 (-2.27%)
Mutual labels:  svelte
Svelte Materialify
A Material UI Design Component library for Svelte heavily inspired by vuetify.
Stars: ✭ 351 (-27.48%)
Mutual labels:  svelte
Svelte Select
A select component for Svelte apps
Stars: ✭ 414 (-14.46%)
Mutual labels:  svelte
Crayon
Simple framework agnostic UI router for SPAs
Stars: ✭ 310 (-35.95%)
Mutual labels:  svelte
Svelte Intellij
Svelte components in WebStorm and friends
Stars: ✭ 345 (-28.72%)
Mutual labels:  svelte
Svelma
Bulma components for Svelte
Stars: ✭ 401 (-17.15%)
Mutual labels:  svelte
Sapper Ecommerce
Svelte ecommerce - Headless, Authentication, Cart & Checkout, TailwindCSS, Server Rendered, Proxy + API Integrated, Animations, Stores, Lazy Loading, Loading Indicators, Carousel, Instant Search, Faceted Filters, 1 command deploy to production, Open Source, MIT license. Join us as contributor ([email protected])
Stars: ✭ 289 (-40.29%)
Mutual labels:  svelte
Nativescript
NativeScript empowers you to access native platform APIs from JavaScript directly. Angular, Capacitor, Ionic, React, Svelte, Vue and you name it compatible.
Stars: ✭ 20,730 (+4183.06%)
Mutual labels:  svelte
Svelte Calendar
A lightweight datepicker with neat animations and a unique UX.
Stars: ✭ 279 (-42.36%)
Mutual labels:  svelte
Figma Html
Convert Figma designs to HTML, React, Vue, Angular, and more!
Stars: ✭ 382 (-21.07%)
Mutual labels:  svelte
Svelte Grid
A responsive, draggable and resizable grid layout, for Svelte.
Stars: ✭ 473 (-2.27%)
Mutual labels:  svelte
Firebase Gcp Examples
🔥 Firebase app architectures, languages, tools & some GCP things! React w Next.js, Svelte w Sapper, Cloud Functions, Cloud Run.
Stars: ✭ 470 (-2.89%)
Mutual labels:  svelte
Nomie
Nomie v5 Source Code
Stars: ✭ 407 (-15.91%)
Mutual labels:  svelte

Svelte DevTools

Mozilla Add-on Chrome Web Store

Install from the Firefox addon page or the Chrome addon page

Svelte devtools is actively maintained. If you have any problems or feature requests feel free to create an issue.

Svelte Devtools is a Firefox and Chrome extension for the Svelte javascript framework. It allows you to inspect the Svelte state and component hierarchies in the Developer Tools.

After installing you will see a new tab in Developer Tools. This tab displays a tree of Svelte components, HTMLx blocks, and DOM elements that were rendered on the page. By selecting one of the nodes in the tree, you can inspect and edit its current state in the panel to the right.

Requires svelte version 3.12.0 or above

1.1.0 Screenshot

Enabling dev mode

In order for svelte-devtools to comunicate with your application bundle the svelte compiler must have the dev option set to true.

Template

By default the svelte template will set dev: true when running npm run dev and false otherwise.

Rollup

Below is a minimalist rollup config with dev: true set.

// rollup.config.js
import * as fs from 'fs';
import svelte from 'rollup-plugin-svelte';

export default {
  input: 'src/main.js',
  output: {
    file: 'public/bundle.js',
    format: 'iife'
  },
  plugins: [
    svelte({
      compilerOptions: {
        dev: true
      }
    })
  ]
}

Webpack

Below is the relevant snipet from a webpack.config.js with dev: true set.

  ...
  module: {
    rules: [
      ...
      {
        test: /\.(html|svelte)$/,
        exclude: /node_modules/,
        use: {
          loader: 'svelte-loader',
          options: {
            dev: true,
          },
        },
      },
      ...
    ]
  },
  ...

Build from source

Firefox

Clone this repository and run the package script.

git clone https://github.com/RedHatter/svelte-devtools.git
cd svelte-devtools
npm install
npm run package:firefox

This should build the codebase and output a zip file under web-ext-artifacts.

Unsigned addons can't be install in firefox permanently but addons can be installed temporarily.

  1. Navigate to about:debugging.
  2. Click "Load Temporary Add-on" and choose the generated zip file.

Chrome

Clone this repository and run the package script.

git clone https://github.com/RedHatter/svelte-devtools.git
cd svelte-devtools
npm install
npm run package:chrome

This should build the codebase and output a zip file under web-ext-artifacts.

  1. Navigate to chrome://extensions/.
  2. Turn on developer mode using the 'Developer mode' switch in the upper right hand corner of the page.
  3. Click 'Load Unpacked' and select the dest directory.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].