@state-tracer/jotai
v1.1.2
Published
Visualize and trace state dependencies in jotai with an interactive data flow graph.
Readme
@state-tracer/jotai
Visualize and trace state dependencies in jotai with an interactive data flow graph.
✨ Features
- ⚛️ Detects
atom - 🔗 Resolves jotai dependency graph across multiple files
- 🖼️ Generates a data flow graph as an SVG via the CLI.
- 🎯 Fast and lightweight thanks to @hpcc-js/wasm
- 🧠 Ideal for debugging or understanding large jotai-based state trees
📥 Installation
pnpm add -D @state-tracer/jotai🛠 Usage
1. Generate a data flow graph as an SVG
pnpm stj ./src2. Open the SVG
open jotai-graph.svg⚙️ Options
| Option | Alias | Description | Default | | -------- | ------------- | ------------- | --- | | --output | -o | Specify the output path for the generated SVG | jotai-graph.svg |
