- Codebase Analysis & Diagram Generation - Analyze any given codebase and generate human-readable architecture diagrams, including high-level and low-level views, which can be exported to various image formats.
Grafix.AI simplifies open-source contributions by analyzing GitHub repositories and issues to identify key files related to an issue. It provides structured explanations of the code, helping contributors understand project architecture faster.
"Open-source repositories are vast, and debugging is like searching for a needle in a haystack. Contributors waste time manually exploring files, and maintainers constantly guide them instead of focusing on innovation. There has to be a better way."
Grafix.AI automates the initial discovery process:
- Users paste a GitHub issue URL.
- The system analyzes the repository and finds the top 3 most relevant files.
- It explains each file based on its role (e.g., backend endpoints for Python, React components for frontend).
- Provides a structured overview of how the code connects, saving hours of manual effort.
For Software:
- Languages: Python, TypeScript
- Frameworks: FastAPI, Next.js
- Libraries: CodeBert
- Tools: Github API , OpenAI API, Gemini API
# Clone the repository
git clone https://github.com/mehrinshamim/graphix.ai.git
cd graphix.ai/server
# Create a virtual environment and activate it
python -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows
# Install dependencies
pip install -r requirements-server.txt -r model/requirements-model.txt
# Set up environment variables (GitHub API, OpenAI API, etc.)
# Create a `.env` file and add necessary keys
# Start the backend server
uvicorn app.main:app --reload
# Activate virtual environment
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows
# Run the backend server
uvicorn app.main:app --reload
# Navigate to the frontend directory
cd ../client
# Install dependencies
npm install
# Set up environment variables if required
# Create a `.env` file and add necessary keys
# Start the frontend server
npm run dev
npm run dev
Graphix.ai - Bonito Flakes TinkHack 2.0 Brief walkthrough of Grafix.AI in action.