Skip to content

deksdeveloper/github-repo-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Repository Analyzer

An AI-powered terminal user interface (TUI) for analyzing GitHub repositories. Generate comprehensive READMEs, .gitignore files, security reports, and more using Fireworks AI.

Node.js License

Features

  • README Generator — Automatically generate professional README.md files
  • .gitignore Generator — Create optimized .gitignore files for any project
  • Security Check — Scan dependencies for known vulnerabilities
  • Code Quality Report — Analyze code patterns and best practices
  • Dependency Health — Review package health and outdated dependencies
  • API Docs Generator — Generate documentation from API endpoints

Tech Stack

  • Runtime: Node.js 18+
  • UI: Chalk, Figlet, Boxen, Ora, Inquirer
  • AI: Fireworks AI
  • API: Octokit (GitHub REST API)

Installation

# Clone the repository
git clone https://github.com/deksdeveloper/github-repo-analyzer.git

# Navigate to project directory
cd github-repo-analyzer

# Install dependencies
npm install

# Copy environment template and configure
cp .env.example .env

Configuration

Create a .env file in the root directory:

FIREWORKS_API_KEY=your_fireworks_api_key
GITHUB_TOKEN=your_github_token  # Optional, increases rate limits

Get your Fireworks AI API key from fireworks.ai.

Usage

npm start

Project Structure

├── src/
│   ├── ai/                 # AI integration
│   │   ├── fireworks.js    # Fireworks AI client
│   │   └── prompts.js      # AI prompt templates
│   ├── config.js           # Configuration management
│   ├── features/           # Core analysis features
│   │   ├── apiDocsGenerator.js
│   │   ├── codeQualityReport.js
│   │   ├── dependencyHealth.js
│   │   ├── gitignoreGenerator.js
│   │   ├── readmeGenerator.js
│   │   └── securityCheck.js
│   ├── github/             # GitHub API integration
│   │   ├── client.js       # Octokit client
│   │   └── repo.js         # Repository data fetching
│   ├── index.js            # Entry point
│   ├── ui/                 # Terminal UI components
│   │   ├── banner.js
│   │   ├── menu.js
│   │   ├── repoInput.js
│   │   └── results.js
│   └── utils/              # Helper utilities
│       ├── chunker.js
│       ├── fileHelpers.js
│       └── logger.js
├── package.json
└── LICENSE

Contributing

Contributions are welcome! Feel free to open issues and pull requests.

License

MIT License — see LICENSE for details.


Generated with ❤️ by GitHub Repository Analyzer

About

AI-powered TUI tool to analyze GitHub repositories and generate READMEs, .gitignore files, security reports, and more.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors