Skip to content

Releases: exyreams/Codetree

v3.0.0 - Multi-Format Output & Advanced File Analysis

16 Jul 03:44

Choose a tag to compare

🎉 What's New

🌐 Multi-Format Output Support

Transform your codebase analysis with four powerful output formats:

  • Interactive HTML - Beautiful, responsive web reports with collapsible sections, search functionality, and syntax highlighting
  • JSON - Machine-readable format perfect for CI/CD pipelines and automated analysis
  • Markdown - GitHub-compatible documentation format ideal for project READMEs
  • Text - The classic format, enhanced and optimized for AI assistants

📊 Advanced Cross-Platform File Size Analysis

Get unprecedented accuracy in file size reporting across all platforms:

  • Real Disk Usage Detection: Accounts for file system compression (Windows NTFS compression, etc.)
  • Sparse File Handling: Correctly processes files with holes on Unix systems
  • Accurate Block Allocation: Shows actual disk usage vs logical file size
  • Dual Size Tracking: Both filesystem size and UTF-8 content size comparison
  • Cross-Platform APIs: Windows API integration and Unix system calls for maximum accuracy

📈 Enhanced Exclusion Tracking System

Complete visibility into what's being excluded from your analysis:

  • Total Size Analysis: See combined size of all excluded directories and files
  • Detailed Breakdown: Excluded build directories with size and file count
  • Top 10 Reports: Largest excluded directories and files sorted by size
  • Exclusion Reasons: Understand why each item was filtered out
  • Better Project Understanding: Full transparency into content filtering

🔍 Comprehensive Statistics Enhancement

Level up your project insights with:

  • Advanced File Analysis: Detailed breakdown by extension with percentage calculations
  • Language Detection: Automatic detection and statistics for multiple programming languages
  • Content Quality Metrics: Code-to-comment ratio analysis and blank line percentage tracking
  • Top 10 Largest Files: Identify the biggest files in your project
  • Average File Size: Statistical analysis of your codebase structure

✨ Enhanced Features

Interactive HTML Reports

The new HTML format provides:

  • Responsive Design: Perfect viewing on desktop and mobile devices
  • Modern UI: Clean, professional interface with gradient styling
  • Real-time Search: Quickly locate specific files and content
  • Syntax Highlighting: Code displayed with appropriate language detection
  • Collapsible Sections: Organize content with expandable overview, structure, and files sections
  • Individual File Statistics: Size and line counts for each file

Improved Framework Detection

Now detects 25+ frameworks including:

  • Frontend: React, Vue, Angular, Next.js, Three.js, Svelte
  • Backend: Express.js, Django, Flask, Spring Boot, Rails, Laravel
  • UI Libraries: Tailwind CSS, Material UI, Bootstrap, Chakra UI
  • Testing: Jest, Cypress, Pytest

Enhanced Security Protection

Expanded protection for 15+ types of sensitive files:

  • Environment variables and configuration files
  • API keys, tokens, and credentials
  • Connection strings and database configurations
  • SSL certificates and private keys

🚀 Usage Examples

# Generate interactive HTML report (recommended)
codetree --format html

# Export structured data for automation
codetree --format json

# Create documentation-friendly markdown
codetree --format markdown

# Traditional text output for AI assistants
codetree --format text

🔧 Technical Improvements

  • Cross-platform file size detection with platform-specific implementations
  • Enhanced directory size calculation with recursive analysis
  • Structured data export for integration with external tools
  • Improved error handling for inaccessible directories and files
  • Optimized performance for large codebases
  • Better memory management during analysis

📦 Breaking Changes

  • Output format can now be specified with --format flag, if not specified, defaults to text format.
  • Default behavior unchanged (still generates codetree.txt)
  • JSON structure has been enhanced with additional metadata
  • Some internal APIs have been restructured for better extensibility

Made with ❤️ by exyreams

Codetree v2.0.0

06 Mar 14:05

Choose a tag to compare

Framework Detection & Enhanced Analysis

We're excited to announce Codetree v2.0.0, a major update that brings intelligent framework detection, better project analysis, and enhanced security features!

🚀 What's New

This release focuses on making Codetree smarter about your projects with these key improvements:

  • Framework Detection: Automatically identifies 20+ frameworks including React, Vue, Angular, Next.js, Three.js, Django, Flask, Spring Boot, and more
  • Enhanced Project Type Detection: Now detects Rust, Node.js, Python, Java, .NET, Go, Ruby, and PHP projects
  • Build Directory Auto-Exclusion: Intelligently excludes build directories based on project type
  • Security Enhancements: Detects and protects sensitive information like API keys and credentials
  • Improved Statistics: Detailed breakdown of code, comments, and blank lines
  • File Type Analysis: Better insights into your codebase by language and file type

✨ Features

Framework Detection

Codetree now detects and reports on the frameworks used in your project, helping you better understand your tech stack:

  • Frontend: React, Vue.js, Angular, Next.js, Three.js, Svelte, Tailwind CSS, Material UI, Bootstrap, Chakra UI
  • Backend: Express.js, NestJS, Fastify, Django, Flask, FastAPI, Ruby on Rails, Laravel, Symfony, Spring Boot, ASP.NET Core
  • Testing: Jest, Cypress, Pytest
  • Other: Redux, MobX, SQLAlchemy, Hibernate

Enhanced Project Analysis

Get better insights with:

  • Total lines of code with percentage breakdowns (code, comments, blank lines)
  • File counts and line counts by language/extension
  • Human-readable size metrics
  • Visual directory tree with intelligent exclusions

Security Features

  • Automatic detection of sensitive files like .env, config files, and credentials
  • Content protection for files that might contain API keys or passwords
  • Statistics about protected content without exposing sensitive data

📦 Installation

# Install from crates.io
cargo install codetree

# Or build from source
git clone https://github.com/exyreams/Codetree.git
cd Codetree
cargo build --release

🔄 Upgrading

If you're upgrading from v1.x:

cargo install codetree --force

📋 Usage Example

codetree /path/to/your/project

The tool will analyze your project, detect frameworks and project types, and generate a comprehensive codetree.txt file with the file tree, statistics, and code content.


Thank you for using Codetree! We hope these new features help you better understand and document your projects.

Codetree v1.0

09 Oct 04:16

Choose a tag to compare

Version 1.0 of the Codetree is now available for Windows! This release streamlines sharing your project code with LLMs by creating a file tree and consolidating all code into a single text file.