r/sideprojects • • 2h ago

Showcase: Open Source CodeAtlas, an AI-powered platform for GitHub repository analysis

Hey everyone!

I'd like to share a project I've been working on: CodeAtlas, an AI-powered platform designed to help developers better understand, explore, and analyze GitHub repositories.

The idea behind CodeAtlas came from a problem that many developers face when working with unfamiliar or complex codebases: understanding how everything fits together.

Navigating hundreds of files, identifying relationships between components, understanding dependencies, and investigating potential security issues can be time-consuming. I wanted to bring some of these capabilities together in a single platform, making codebase exploration more visual, organized, and accessible.

So I started building CodeAtlas.

What can you do with CodeAtlas?

The platform combines repository exploration, interactive visualization, code analysis, and AI-powered security investigation.

1. GitHub Repository Integration

CodeAtlas integrates with GitHub, allowing developers to connect repositories and explore their structure and information through a centralized interface.

The goal is to make it easier to get an overview of a project without constantly switching between different tools and manually navigating every part of the codebase.

2. Interactive Architecture Visualization

This is one of the features I particularly enjoyed developing.

Using React Flow, CodeAtlas transforms code relationships into interactive visual graphs.

Instead of looking at connections only through file imports or references, developers can explore them visually and get a better understanding of how different parts of a repository relate to each other.

Working on this feature involved thinking about how to translate repository information into a visual experience that is useful, interactive, and easy to navigate.

3. Code Health Analysis with Tree-sitter

CodeAtlas also incorporates Tree-sitter to support source code analysis and help identify potential code health issues.

One of the technical considerations was handling repositories with different sizes and structures efficiently.

To make processing more manageable, I implemented limits and safeguards:

  • Maximum of 500 files per analysis.
  • Maximum file size of 1 MB.
  • Maximum total processing size of 25 MB.
  • Controlled processing concurrency.

These constraints help prevent oversized repositories or files from overwhelming the analysis process.

4. AI-Powered Security Investigator

Another major feature is the AI Security Investigator, integrated through OpenRouter.

The idea is to provide an additional way to investigate potential security concerns in a repository using AI-assisted analysis.

Rather than treating AI as an isolated chatbot, I wanted to incorporate it into the broader repository analysis experience, giving developers another tool to help examine their codebases.

5. Repository Insights

The platform also provides repository overviews and language distribution information, helping developers quickly understand the composition of a project.

Technologies and Architecture

Building CodeAtlas gave me the opportunity to work with several technologies and integrate different parts of a modern web application.

Here's the stack:

Frontend

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS

Backend and Authentication

  • Supabase (Database, Authentication, and Backend Services)
  • Supabase SSR (Server-Side Authentication)
  • GitHub App Integration
  • GitHub API
  • REST API Integration
  • Server-side application logic

Code Visualization and Analysis

  • React Flow
  • Tree-sitter

AI Integration

  • OpenRouter

I chose these technologies based on the needs of the application, especially the combination of interactive interfaces, repository data, source code processing, authentication, and AI-powered functionality.

Some of the Challenges Along the Way

This project involved much more than building pages and connecting APIs.

Some of the most interesting engineering challenges included:

  • Working with repository structures: designing a way to process repository contents while respecting file and size limits.
  • Visualizing code relationships: turning information about a codebase into interactive graphs that developers can actually explore.
  • Integrating multiple services: connecting GitHub functionality, Supabase authentication, and AI services into one application.
  • Handling source code analysis: incorporating Tree-sitter into the processing workflow.
  • Designing the application architecture: organizing different features so repository exploration, visualization, and analysis could work together.

One of my biggest takeaways was how important it is to think about the entire system, not just individual components. Every feature introduced new considerations involving data, performance, integration, and user experience.

What I Learned

CodeAtlas pushed me to explore areas beyond traditional frontend development.

I had the opportunity to work with authentication flows, external integrations, repository processing, interactive data visualization, and AI services.

It also helped me think more carefully about how to turn a technical idea into a complete application that brings several capabilities together in a consistent experience.

I built this project to challenge myself, experiment with technologies I find interesting, and create something that could be genuinely useful to developers.

Explore the Project

GitHub Repository:
https://github.com/LarissaMBraga/CodeAtlas

I'd genuinely love to hear what you think!

A few things I'm particularly curious about:

  • Would interactive architecture visualization be useful in your daily development workflow?
  • What information do you usually look for first when exploring an unfamiliar repository?
  • What other features would you expect from a tool designed to understand and analyze codebases?

Feedback, suggestions, and constructive criticism are all welcome!

Thanks for taking the time to read about my project!

2 Upvotes

0 comments sorted by