#file-viewer #browser #cli #file #file-utility

app peek-cli

A fast CLI tool to open files and directories in your default browser

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

MIT or Apache-2.0

36KB
359 lines

peek-cli

A simple, fast, and elegant file viewer that opens files in your default web browser.

Release Last Commit Crates.io Version Build Status Buy Me a Coffee

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

  1. Download peek-windows-x86_64.zip from releases
  2. Extract the archive
  3. Add the extracted folder to your PATH, or:
    • Move peek.exe to a folder already in PATH (e.g., C:\Windows\System32)
  4. 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.


Built with passion by @lyznne

Buy Me A Coffee


“Peek into your files — effortlessly.”

Made with & in Linux

Dependencies

~1.2–3.5MB
~68K SLoC