Project Structure Preview is a simple and lightweight CLI tool written in Go that displays the directory structure of any project in a clean, tree-like format β similar to the output of the Unix tree
command, but fast, minimal, and dependency-free, and compatable with the git projects.
I love using LLM tools to help me write the README.md files, but they often struggle to generate accurate project structure diagrams. This tool aims to fill that gap by providing a quick and easy way to visualize your project's file hierarchy.
- π Recursively lists files and directories
- π§© Displays nested folder hierarchies with indentation
- β‘ Fast and lightweight (pure Go, no external dependencies)
- π οΈ Works across platforms (Linux, macOS, Windows)
- π§Ή Ideal for project documentation or quick overviews
You can install it directly from source:
git clone https://github.com/tawfiqkhalilieh/ProjectStructurePreview.git
cd ProjectStructurePreview
go build -o psp main.go {path} # path is optional
./psp . # Replace '.' with your target directory path
you can also move it to your /usr/local/bin
or any directory in your PATH to use it globally:
mv psp /usr/local/bin/
and use it like this:
psp /path/to/your/project