3 releases
Uses new Rust 2024
| 0.1.12 | Nov 7, 2025 |
|---|---|
| 0.1.10 | Nov 6, 2025 |
| 0.1.0 | Nov 6, 2025 |
#313 in Filesystem
36KB
359 lines
Overview
peek-cli lets you open any file directly in your default web browser from the terminal. It’s lightweight, blazingly fast, and perfect for developers who want quick file previews without the bloat.
Features
- Open any file type instantly in your browser
- Smart file detection
- Cross-platform support (Linux, macOS, Windows)
- Written in Rust — safety, performance, reliability
- Available on AUR, Crates.io, and GitHub Releases
Installation
From Cargo
cargo install peek-cli
From Source
git clone https://github.com/lyznne/peek.git
cd peek
cargo build --release
Arch Linux (AUR)
yay -S peek-cli
Windows Installation
- Download
peek-windows-x86_64.zipfrom releases - Extract the archive
- Add the extracted folder to your PATH, or:
- Move
peek.exeto a folder already in PATH (e.g.,C:\Windows\System32)
- Move
- Run
peek <file>from any terminal
Usage
peek <file-path>
peek --help
Examples:
peek #open current dir
peek README.md
peek index.html
peek ./docs/guide.pdf
Development
To contribute or customize peek-cli, clone the repo and build:
git clone https://github.com/lyznne/peek.git
cd peek
cargo run -- <file>
Roadmap
- Add interactive TUI mode
- Support remote file URLs
- Add colorized output for logs
- Integrate with file explorers
Contributing
Pull requests are welcome! If you have suggestions or bug reports, please open an issue.
License
Licensed under the MIT and Apache-2.0 licenses. See LICENSE for more information.
Dependencies
~1.2–3.5MB
~68K SLoC