Skip to content

mehrinshamim/graphix.ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Grafix.AI

Team Name: Bonito Flakes

Domain - Software Architecture

  • 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.

Hosted Project Link

https://graphixai.vercel.app/

Project Description

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.

The Problem Statement

"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."

The Solution

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.

Technical Details

Technologies/Components Used

For Software:

  • Languages: Python, TypeScript
  • Frameworks: FastAPI, Next.js
  • Libraries: CodeBert
  • Tools: Github API , OpenAI API, Gemini API

Implementation

Backend (server)

Installation
# 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
Run
# Activate virtual environment
source venv/bin/activate  # On macOS/Linux
venv\Scripts\activate     # On Windows

# Run the backend server
uvicorn app.main:app --reload

Frontend (client)

Installation
# 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
Run
npm run dev

Project Documentation

Screenshots

1

2

3

4

The exported image 5

6

Project Demo

Video

Graphix.ai - Bonito Flakes TinkHack 2.0 Brief walkthrough of Grafix.AI in action.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •