GitWatt

Analyze your git repository by AI and get real-world costs

What it does

Project Name: GitWatt

Overview: GitWatt allows users to determine various real-world costs associated with running code from a Git repository, including power consumption, carbon footprint, and public cloud expenses.

Mechanism:
- Git Repository Analysis: The project analyzes the code components and minimum resource specifications (CPU, RAM) needed to run the code. Since the Gemini API doesn't natively analyze Git URLs, LangChain was utilized.

- Cloud Instance Data Collection: For AWS, we parsed instance information provided in JSON format. For GCP, we built a custom web crawler using Selenium to collect data by running simulations on the GCP Cloud Calculator and storing the results in our database.

- Efficiency Comparison: We compare the specs of AWS and GCP instances to analyze power consumption and carbon footprint for running an instance for an hour, using Gemini.
Scoring and Recommendations: The tool then ranks and displays the most efficient cloud instance options for executing the code, based on various cost factors.

- Ultimately, GitWatt provides insights into the various costs associated with running Git code, including cloud simulation results and real-world expenses.

P.S.
Except for the cloud instance data collection and parsing functionality, everything else was built using Firebase. The frontend is hosted on Firebase App Hosting with Next.js, the backend is powered by Firebase Functions 2nd generation (Python 3), and Firestore is used as the database.

Built with

  • Web/Chrome
  • Firebase

Team

By

DuTrio

From

South Korea