About

Flattening for AI, Context for understanding, and Grading for quality.

RikaiCode is a sophisticated, browser-based tool designed to turn complex codebases into structured, actionable data. Whether you need to feed code into an LLM, audit a project's quality, or simply understand a new architecture, RikaiCode provides the insights you need in a beautiful interface.

It acts as a bridge between raw source code and actionable intelligence, offering features ranging from Repository Flattening for LLM context preparation to Intelligent Grading based on popularity, activity, and static code quality.

🚀 How to Use

Getting started with RikaiCode is simple. Follow these steps to analyze your codebase:

1

Open RikaiCode

Click the "Launch RikaiCode Online" button to open the web application in your browser.

2

Provide Repository

Enter a GitHub/GitLab URL or upload a local ZIP file containing your codebase.

3

Get Results

View detailed reports, download flattened code, or explore AI-generated insights.

📸 Screenshots

Preview of the available features and interface.

Dashboard Overview

Dashboard Overview
Code Statistics Charts File Distribution Architecture

AI Analysis & Flattener

AI Analysis Repository Flattener

Intelligent Grading

RikaiCode uses a 100-point scoring system. The grade is determined by summing points across five key categories. The system switches between Remote Analysis (for GitHub/GitLab) and Static Analysis (for local files).

Remote Repository Scoring

Category Weight Criteria
Popularity 30 pts Based on Stars (0-20 pts) and Fork Ratio (0-10 pts). High stars indicate trust.
Activity 25 pts Measures Recency (0-15 pts) and Commit Frequency (0-10 pts).
Maintenance 20 pts Analyzes Open Issues Ratio and PR/MR Merge Rate.
Community 15 pts Based on the number of Watchers.
Stability 10 pts Active projects get full points; archived repos get 0.

Static Code Scoring

Category Weight Criteria
Documentation 30 pts Checks for README files (10 pts) and Comment Density (20 pts).
Structure 30 pts Modularity (avg lines per file) and Organization (entry points).
Best Practices 20 pts Presence of dependency files (15 pts) and .gitignore (5 pts).
Scale 10 pts Total lines of code. Larger, mature projects score slightly higher.
Stability 10 pts Based on file count and structure.

🤖 AI Features

RikaiCode leverages the GLM-4.7-Flash model to provide intelligent insights that go beyond simple statistics.

GLM Logo

Architecture Overview

Identifies architectural patterns (e.g., MVC, Microservices) and summarizes the project's purpose.

Project Synopsis

Generates an "Executive Summary" including problem statement and target audience.

Interactive Code Review

Select any file to receive a detailed review covering strengths, improvements, and security checks.

Function Explainer

Specifically for Python. Select a function, and Rikai will explain its logic and edge cases.

Complexity Analysis

Estimates technical debt and complexity level based on file sizes.

Developer Onboarding

Creates a "Getting Started" guide with installation steps and run commands.

Use Cases

LLM Context Preparation: Flatten entire repositories into a single text file (TXT/JSON) to use as context for ChatGPT, Claude, or Gemini. It strips binaries and formats code perfectly for optimal token usage.

Code Quality & Grading: Get an instant "Health Score" for any public repository. Analyze commit frequency, maintenance activity, and community engagement at a glance.

Security Audits: Run heuristic scans to detect hardcoded API keys, AWS secrets, private keys, and other sensitive information that shouldn't be in your codebase.

Architecture Onboarding: Visualize file structure, detect dependencies, and read AI-generated summaries to understand new projects in minutes instead of hours.

License

Open Source. Licensed Under AGPL-3.0.

AGPL v3 License