Skip to content

ranaaditya/usbpro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

USBPRO banner

β–—β–– β–—β–– β–—β–„β–„β––β–—β–„β–„β–– β–—β–„β–„β–– β–—β–„β–„β––  β–—β–„β–– 
β–β–Œ β–β–Œβ–β–Œ   β–β–Œ β–β–Œβ–β–Œ β–β–Œβ–β–Œ β–β–Œβ–β–Œ β–β–Œ
β–β–Œ β–β–Œ β–β–€β–šβ––β–β–›β–€β–šβ––β–β–›β–€β–˜ β–β–›β–€β–šβ––β–β–Œ β–β–Œ
β–β–šβ–„β–žβ–˜β–—β–„β–„β–žβ–˜β–β–™β–„β–žβ–˜β–β–Œ   β–β–Œ β–β–Œβ–β–šβ–„β–žβ–˜

USBPRO β€” USB Diagnostic Tool for Linux

A simple, zero-dependency CLI tool to inspect, analyze, and visualize connected USB devices on Linux β€” with a clean, readable tree view.
Built in Go. Lightweight, fast, and made for humans. ❀️


🧭 Overview

USBPRO is a command-line utility that parses detailed USB information using the native lsusb -v command and presents it in a structured, color-coded tree.

It helps you quickly see what’s plugged into your machine β€” from hubs to devices to speeds β€” in an intuitive visual format, without digging through raw terminal output.


✨ Features

  • πŸš€ Fast & Native β€” built in pure Go, runs anywhere lsusb does.
  • 🌈 Color-coded Speeds β€” instantly spot USB 1.x, 2.x, 3.x, and 4.0 devices.
  • 🌲 Tree-style Hierarchy β€” see device relationships clearly.
  • πŸ’‘ Readable & Minimal Output β€” no clutter, just useful info.
  • 🧩 No External Libraries β€” pure Go and ANSI colors.
  • 🐧 Linux-First β€” works seamlessly on Ubuntu, Debian, Fedora, Arch, etc.

πŸ“Έ Example Output

USBPRO banner

Installation

git clone https://github.com/ranaaditya/usbpro.git
cd usbpro
go build -o usbpro ./cmd/usbpro
sudo mv usbpro /usr/local/bin/

Project Structure

usbpro/
β”œβ”€β”€ cmd/
β”‚   └── usbpro/
β”‚       └── main.go         # Entry point
└── internal/
    └── usb/
        β”œβ”€β”€ parser.go       # Parses `lsusb -v` output
        β”œβ”€β”€ printer.go      # Pretty tree + color formatting
        └── tree.go         # Hierarchy builder

About

USB Diagnostic tool for Linux first Systems

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages