File size: 1,509 Bytes
65002a3
 
 
 
 
 
 
 
 
 
 
 
60f0758
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
title: Github Repo Visualizer
emoji: 🌍
colorFrom: purple
colorTo: pink
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: apache-2.0
---

# Github Repo Visualizer 🌍

Github Repo Visualizer is a tool to visualize GitHub repositories using Gradio.

## Table of Contents
- [Github Repo Visualizer 🌍](#github-repo-visualizer-)
  - [Table of Contents](#table-of-contents)
  - [Installation](#installation)
  - [Usage](#usage)
- [App Flow](#app-flow)

## Installation

1. Clone the repository:
    ```sh
    git clone https://github.com/yourusername/Github-Repo-Visualizer.git
    cd Github-Repo-Visualizer
    ```

2. Install the required dependencies:
    ```sh
    pip install -r requirements.txt
    ```

## Usage

To run the application, execute:
```sh
python app.py
```

# App Flow

```mermaid
graph TD
    A[Input Repo] --Get Repo Info--> B[Load Repo]
    B --Plan a exploration strategy--> C[planner]
    C --Explore files based on graph--> D[explore_file]
    D --Summarize dependencies and functionalities--> E[get_file_content_summary]
    E --Build undersrtanding and generte graph--> F[generate_mermaid_code]
    F --Fix errors and render--> G[render_mermaid]
```

- Please visit `prompt.py` to see the different prompts used for each functionality.
- Please note that the exploration is capped to top 25 files based on the plan.
- `utils.py` contains all the nodes and edge functions used in the graph.
- `app.py` contains the main code for graph compilation and run.