A powerful web application that allows you to easily generate, view, and export the file tree structure of any public GitHub repository.
- Visualize GitHub Repositories: Enter a GitHub repository URL to instantly view its directory and file structure.
- Multiple Export Formats: Export the generated file tree in various formats including:
- ASCII
- Markdown
- JSON
- Plain Text
- Customizable Output: Toggle options to include or exclude file icons in the exported tree.
- Modern UI: Built with a sleek, responsive, and user-friendly interface using React and Tailwind CSS.
- Rate Limited API: Backend API protected with rate limiting to ensure stable performance.
- Framework: React 18 + Vite
- Styling: Tailwind CSS
- State Management: Zustand
- Data Fetching: TanStack React Query
- UI Components: Radix UI (Collapsible, Toast)
Ensure you have the following installed:
- Node.js (v18+ recommended)
- npm (Node Package Manager)
git clone https://github.com/Skavces/github-tree-viewer
cd github-tree-viewerOpen a terminal and navigate to the backend directory:
cd backend
npm install
npm run start:devThe NestJS server will start in development mode with hot-reloading.
Open a new terminal window and navigate to the frontend directory:
cd frontend
npm install
npm run devThe Vite development server will start. Open your browser and navigate to the local URL provided (usually http://localhost:5173).
npm run start: Starts the NestJS server.npm run start:dev: Starts the NestJS server in watch mode.npm run build: Compiles the application into thedistfolder.npm run start:prod: Runs the compiled application.
npm run dev: Starts the Vite development server.npm run build: Builds the app for production to thedistfolder.npm run preview: Locally preview the production build.
This project is open-source and available under the MIT License.
