A small project, a lot of learning, and my first public release.

I've always been interested in building tools that solve practical problems for developers.

So, I decided to build something of my own: RepoLens.

RepoLens is a lightweight, cross-platform repository analysis tool built with Python. It scans a project directory, analyses its source files, and generates a report with statistics and an overall score.

GitHub Repository: https://github.com/AdityaTyagi-Dev/RepoLens

Why did I build RepoLens?

When working with code, we often focus on whether the program works.

But there's more to a project than just working code.

How readable is it?

Are the lines unnecessarily long?

Does the project have proper documentation?

I wanted to explore these questions by building a tool that could analyse a repository and present some useful insights.

That became RepoLens.

What can RepoLens do?

The initial release, v0.1.0-alpha, focuses on three analysis metrics:

1. Comment Density

Analyses the relationship between comment lines and code lines to provide an overview of code commenting.

2. Long Line Analysis

Identifies unnecessarily long lines in source files and calculates their proportion.

3. README Analysis

Checks the project's README file and analyses basic information such as its presence, size, word count and character count.

These metrics contribute to an overall score out of 100.

The scoring system currently uses heuristic thresholds, so the score is an initial indicator rather than a definitive measure of code quality.

How is it structured?

One of the things I focused on was keeping responsibilities separate.

The current architecture follows three important principles:

  • Scanner: Discovers directories and files.
  • Analyser: Decides what to analyse and performs the analysis.
  • Reporter: Presents the results in the terminal.

The rating engine handles score calculation separately.

I wanted each module to have a clear responsibility instead of putting everything into one large Python file.

Technologies used

  • Python
  • pathlib
  • Python Standard Library

One thing I'm happy about is that RepoLens currently requires no external Python dependencies.

What's next?

This is only the initial release.

There are plenty of things I'd like to explore in future versions, including:

  • More repository analysis metrics
  • Improved language support
  • Better code-quality analysis
  • Project structure analysis
  • Documentation and testing analysis

I want to improve RepoLens gradually while keeping its architecture maintainable.

What I learned

Building RepoLens taught me more than just writing Python code.

I got to work on file-system traversal, language identification, modular architecture, analysis logic, scoring systems, error handling, and packaging a project for a public release.

Most importantly, I experienced the process of taking an idea, turning it into a working project, and publishing it on GitHub.

Try RepoLens

The project is open source, and I'd genuinely appreciate feedback, suggestions, and contributions.

🔗 GitHub: https://github.com/AdityaTyagi-Dev/RepoLens

This is my first public release, and I'm looking forward to improving it.

Build. Learn. Improve. Repeat.

I'm a student developer at NIT Patna, exploring software development, Python, AI, and open source through hands-on projects.