| Crates.io | jpeek |
| lib.rs | jpeek |
| version | 0.1.2 |
| created_at | 2025-06-22 17:53:27.743085+00 |
| updated_at | 2025-06-23 07:28:49.131563+00 |
| description | A simple tool to peek into your JWT token & Decode it |
| homepage | |
| repository | https://github.com/Execute-Soft/jpeek.git |
| max_upload_size | |
| id | 1721830 |
| size | 33,413 |
git clone https://github.com/Execute-Soft/jpeek.git
cd jpeek
cargo install --path .
The jpeek command will be available globally in your system.
cargo build --release
./target/release/jpeek --help
cargo build --release
cp target/release/jpeek /usr/local/bin/
# Decode a JWT token
jpeek -t "your.jwt.token.here"
# Or use the decode subcommand
jpeek decode -t "your.jwt.token.here"
# Show only the payload
jpeek decode -t "your.jwt.token.here" -p
# Show only the header
jpeek decode -t "your.jwt.token.here" -H
# Get help
jpeek --help
jpeek decode --help
jpeek decode -t "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
Output:
🔐 JWT Token Decoder
==================================================
📋 Header:
{
"alg": "HS256",
"typ": "JWT"
}
📄 Payload:
{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
}
🔒 Signature:
SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
📅 Issued: 2018-01-18 21:30:22 UTC
-t, --token <TOKEN> - JWT token to decode-h, --help - Print help information-V, --version - Print version information-t, --token <TOKEN> - JWT token to decode (required)-p, --payload-only - Show only the payload-H, --header-only - Show only the header-h, --help - Print help informationgit clone https://github.com/Execute-Soft/jpeek.git
cd jpeek
cargo build
cargo test
cargo run -- -t "your.jwt.token.here"
jpeek/
├── src/
│ ├── main.rs # Application entry point
│ ├── app.rs # Main application logic
│ ├── cli.rs # Command-line interface definitions
│ └── jwt.rs # JWT token parsing and display logic
├── Cargo.toml # Project dependencies and metadata
└── README.md # This file
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
Morshedul Islam Munna
Execute-Soft
⭐ If you find this tool useful, please give it a star on GitHub!