Repository navigation
Open
Labels
Description
☂️ Umbrella / planning issue for designing integrated devtools for Jaspr.
Goals
I would like to create a suite of inspection and debugging tools for Jaspr, similar to the Flutter DevTools. With these tools the developer should be able to:
- Inspect the client-side component tree and state of Jaspr apps
- Pick elements on the page to select it's component in the tree
- Jump to the source code location of a component instance (Requires Make
WidgetCreatorTrackerreusable dart-lang/sdk#61580)
- Inspect @client components and their synced state
- Inspect other synced state such as from @sync fields
- Profile server-rendering performance on a component level (see feat: [content] Enable full build performance analysis/benchmarking #496)
Implementation
The devtools should come in two complementary forms:
-
A standalone devtools app, served in addition to the project on a separate port. The devtools app can show:
- The client-side component tree with metadata and state
- Th list of client components with synced state, other synced data
- The server-rendered component tree and performance graph
-
A toolbar embedded on the running site. This allows for quick access to tools as well as showing overlays e.g. when highlighting elements. One inspiration for this is the Astro Dev Toolbar. The toolbar can show:
- Inspect button to trigger element highlighting and selection
- Client component highlighting + quick info
- Other quick info / access, e.g. link to docs, discord etc.
- Settings, e.g. toggle verbose logging, adjusting toolbar placement etc.
Reacted by Kismet and Heorhii
Reacted by Mathis Desmeules
Activity
Redesign DevTools as standalone app with WebSocket relay