Skip to main content

Gemini Analyzer - Advanced Project Intelligence Platform

License: MIT Python FastAPI Gemini Code Style: Black
Enterprise-grade project analysis platform with dual-mode AI intelligence and privacy-first architecture
An advanced project intelligence platform that combines comprehensive local analysis with cutting-edge AI capabilities. Built for developers, security teams, and DevOps professionals who need deep project understanding without compromising on privacy or performance.

πŸš€ Overview

Gemini Analyzer is a comprehensive project intelligence platform that revolutionizes how teams understand and analyze codebases. Originally conceived to solve the challenge of rapidly understanding complex projects across different programming languages and frameworks, it has evolved into a full-featured analysis platform.

Key Features

  • πŸ” Comprehensive Analysis: Multi-language code analysis, dependency mapping, and project statistics
  • πŸ€– Dual-Mode AI: Cloud-powered insights with Google Gemini 2.5 or privacy-first local processing
  • 🌐 REST API: Production-ready FastAPI backend with comprehensive documentation
  • πŸ–₯️ GUI Application: Standalone Tkinter interface for desktop users
  • πŸ”’ Privacy-First: Complete local processing option for sensitive codebases
  • πŸ“Š Rich Insights: Code metrics, dependency analysis, and AI-generated summaries
  • 🏒 Enterprise Ready: Multi-tenant architecture, audit trails, and compliance features

Why Gemini Analyzer?

The Problem: Modern software projects are increasingly complex, with multiple languages, frameworks, and dependencies. Understanding a new codebase or analyzing project health traditionally requires hours of manual exploration. Our Solution: Gemini Analyzer provides instant, comprehensive project intelligence through:
  • Automated code analysis across 20+ programming languages
  • AI-powered insights that understand project context and architecture
  • Privacy-first design that keeps sensitive code local
  • Enterprise-grade API for CI/CD integration

Architecture Modes

1. Standalone GUI Application

Perfect for individual developers and security teams who need quick, private analysis:
  • Cross-platform desktop tool
  • Complete local processing
  • Instant analysis results
  • No external dependencies required

2. REST API Service

Designed for enterprise integration and automated workflows:
  • Production-ready FastAPI backend
  • Scalable container deployment
  • CI/CD pipeline integration
  • Multi-tenant support
FeatureGUI ModeAPI ModeDescription
Project Analysisβœ…βœ…Comprehensive codebase scanning and metrics
AI Insightsβœ…βœ…Google Gemini 2.5 powered analysis
Privacy Modeβœ…βœ…Local-only processing for sensitive data
Multi-Languageβœ…βœ…20+ programming languages supported
Git IntegrationβŒβœ…Direct repository analysis
File Uploadβœ…βœ…ZIP/TAR archive processing
REST APIβŒβœ…Programmatic access and integration
ContainerizedβŒβœ…Docker deployment ready

πŸ› οΈ Key Technologies

This project is built with a modern, robust technology stack:
  • Backend: FastAPI for high-performance, asynchronous API services.
  • AI Integration: Google Generative AI SDK (google-generativeai), the official and current library for the Gemini family of models.
  • Desktop GUI: Tkinter, Python’s standard cross-platform GUI toolkit.
  • Data Validation: Pydantic for robust data validation and settings management in the API.
  • Containerization: Docker for creating portable, production-ready containers for the backend service.

πŸš€ Getting Started

This project is designed for ease of use, both for local development and for deployment.

Prerequisites

  • Python 3.8+
  • Docker (for running the backend service)
  • An optional GOOGLE_API_KEY environment variable for cloud-based AI features.

Local Development & Running the GUI

  1. Clone the repository:
    git clone https://github.com/your-repo/gemini-magic.git
    cd gemini-magic
    
  2. Create a virtual environment and install dependencies:
    python -m venv venv
    source venv/bin/activate
    # Install base GUI dependencies + AI dependencies
    pip install -e ".[ai,dev]"
    
  3. Run the GUI application:
    python -m gemini_analyzer.gui.main
    

Running the Backend Service with Docker

  1. Build the Docker image:
    docker build -t gemini-analyzer-service .
    
  2. Run the container:
    docker run -p 8000:8000 -e GOOGLE_API_KEY="your_api_key" gemini-analyzer-service
    
    The API will be available at http://localhost:8000. Interactive documentation can be found at http://localhost:8000/docs.

πŸ—οΈ Project Structure

This project follows the standard src layout for clean packaging and separation of concerns.
Gemini_Magic/
β”œβ”€β”€ .github/                # CI/CD workflows
β”œβ”€β”€ docs/                   # Project documentation
β”œβ”€β”€ scripts/                # Build/deploy helper scripts
β”œβ”€β”€ src/
β”‚   └── gemini_analyzer/    # Main application package
β”‚       β”œβ”€β”€ api/            # FastAPI backend service
β”‚       β”œβ”€β”€ core/           # Core analysis logic (shared by GUI and API)
β”‚       β”œβ”€β”€ gui/            # Standalone Tkinter GUI application
β”‚       └── config.py       # Centralized configuration
β”œβ”€β”€ tests/                  # Unit and integration tests
β”œβ”€β”€ .dockerignore           # Files to ignore in Docker builds
β”œβ”€β”€ .gitignore              # Files to ignore in Git
β”œβ”€β”€ docker-compose.yml      # For local multi-container setups
β”œβ”€β”€ Dockerfile              # Defines the container for the backend service
β”œβ”€β”€ pyproject.toml          # Project definition and dependencies
└── README.md               # This file

πŸ€– For AI Agents: How to Contribute

This repository is designed to be developed in parallel by multiple AI agents. Each core module contains a README.md and TODO comments to guide you.
  • If you are the GUI Agent: Your primary focus is the src/gemini_analyzer/gui/ directory. Start by reading its README.md to understand the component structure. Your goal is to build a responsive and intuitive user interface using the components and logic available.
  • If you are the Core Logic Agent: Your domain is src/gemini_analyzer/core/. Read its README.md. You will implement the heavy lifting of project analysis, ensuring the code is efficient, accurate, and can be used by both the GUI and the API.
  • If you are the API Agent: You will work within src/gemini_analyzer/api/. Your task is to create robust FastAPI endpoints that expose the functionality from the core modules, including proper data validation and error handling.

License

This project is licensed under the MIT License. See the LICENSE file for details.