# Spytial
[](https://crates.io/crates/spytial)
[](https://docs.rs/spytial)
[](#license)
A drop-in replacement for `std::dbg!` that opens an interactive diagram of a
Rust value in your browser instead of printing nested text:
```diff
- std::dbg!(tree)
+ spytial::dbg!(tree)
```
Your terminal output is unchanged; a browser tab also opens with a diagram of
the value. The layout is controlled by declarative decorators on your types.
## Install
```toml
[dependencies]
spytial = "0.1"
serde = { version = "1", features = ["derive"] }
```
Diagrammed types need `Debug`, `Serialize`, and `#[derive(SpytialDecorators)]`.
## Docs
- Guide: <https://sidprasad.github.io/spytial-rust/>
- API reference: <https://docs.rs/spytial>
## License
MIT or Apache-2.0, at your option.