Overview
Svolte is an open source Chrome developer tool for time travel debugging and component hierarchy visualization in Svelte applications. Svolte enables developers to record snapshots of component states, visualize component props, inspect and jump between snapshots. Svolte is the first Svelte time travel debugger that is compatible with writable stores and includes a skip feature.
Developed with
Features
Component Hierarchy and Props Visualization
Visualize the hierarchy of your Svelte app and check the props of each component.
Record and Inspect Component State Snapshots
Record the states of your components to see how each state has changed.
Jumping and Skipping
-
Jump through each snapshot to recreate state changes.
-
Have a snapshot you want to skip? Simply toggle skip to ignore that snapshot when you jump.
Getting Started
Download from the Chrome Store
Download the chrome extension here.
This extension is only compatible with Svelte projects running in development mode
, so be sure to check that configuration if you are not starting up your project with npm run dev
.
Manual Installation for Developers
Fork and clone this repository into your local machine. Once that is done, run the commands npm i
and npm run build
to download the dependencies and build the dev tool. Finally, making sure you toggle Developer mode on
in your Chrome browser, you can load unpack the extension folder (located in the root level of the repository).
How to Use
After installing the Chrome extension open up your project in Chrome, and be sure your Svelte application is running in development mode
.
Right click your application and Inspect
or press f12
to open up Chrome Dev Tools, and navigate to the Svolte panel (which may be hidden behind >>
if you have too many tabs).
You are then ready to debug your Svolte application!
The Svolte Team
Harry Vu |
Scott Kim |
Ying-An Wang |
Petros Ogbamichael |
Support
If you find Svolte to be useful please throw a 🌟 our way and share this project with your Svelte developer friends!
License
Svolte is developed under the MIT license.