GitTree is a simple tool that generates and visualizes the file structure of any public GitHub repository as a tree. You can copy the tree as Markdown or download it as a ZIP file.
-
Enter GitHub Repository URL
- Go to the website and enter the GitHub repository URL (e.g.,
https://github.com/sachinz25/GitTree). - Optionally, specify the branch (default:
main).
- Go to the website and enter the GitHub repository URL (e.g.,
-
Generate Tree
- Click the "Generate Tree" button to fetch and display the repository’s file structure.
-
Copy as Markdown
- Click the "Copy Tree as Markdown" button to copy the tree structure to your clipboard.
-
Download as ZIP
- Click the "Download Tree as ZIP" button to download the tree structure as a ZIP file.
To run this project on your computer:
git clone https://github.com/sachinz25/GitTree.git
cd GitTree npm install npm run dev - Open your browser and visit:
👉 http://localhost:3000
- Next.js – A React framework for building web applications.
- GitHub API – Fetches repository data.
- CSS Modules – For styling components.
- JSZip – Creates ZIP files for download.
- FileSaver.js – Saves the generated ZIP file.