- Mirror 1: https://reactorcoregames.github.io/AI-Code-Packer/
- Mirror 2: https://reactorcore.itch.io/ai-code-packer
A powerful web application that helps developers package their codebase into AI-friendly formats for seamless interaction with AI assistants like Claude, ChatGPT, and others.
Transform your entire project into a single, well-structured text output that AI models can easily understand and work with. Perfect for getting AI assistance on coding tasks, code reviews, debugging, and architectural discussions.
Screenshots:
- Folder Upload: Select entire project folders through your browser
- Intelligent Auto-Exclusions: Automatically filters out:
- Build artifacts (node_modules, dist, build)
- Version control (.git, .svn)
- Environment files (.env)
- Language-specific artifacts (Python
__pycache__, Javatarget/, etc.)
- Custom Patterns: Add your own exclusion patterns with glob support (
*.log,test/**, etc.) - Interactive Tree: Visual folder structure with checkboxes to include/exclude files
Choose the format that works best for your AI assistant:
- Plain Text: Simple, readable format
- XML: Structured with CDATA sections
- JSON: Array of file objects
- Markdown: Collapsible sections with syntax highlighting
- Tree: Visual tree structure with metadata
Mark important files with priority levels (1-5). High-priority files appear first in the output, ensuring critical code gets attention even with token limits.
One-click filtering profiles:
- Code Only: Just source code files (programming languages)
- Code + Docs: Source code + markdown/txt/rst files
- Code + Config: Source code + configuration files (JSON, YAML, TOML, etc.)
- Docs Only: Documentation files only
- Code + Media List: Code files + media file listing (no binary content)
- Media List Only: Media file listing only
- Full Project: Everything (except default exclusions)
- Token Counter: Estimates AI context usage with color coding
- ๐ข Green: < 8K tokens (ideal)
- ๐ก Yellow: 8K-32K tokens
- ๐ Orange: 32K-100K tokens
- ๐ด Red: > 100K tokens
- File Statistics: Total files, lines of code, project size
- Virtual Scrolling: Handles 500+ files smoothly
- Debounced Updates: Smooth UI during rapid changes
- Web Worker: Background processing for large projects
- Recent Projects: Quick access to previously loaded projects (up to 5 saved)
- Preset Export/Import: Save and share your custom exclusion pattern configurations as JSON files
- Open
index.htmlin your web browser - Upload Tab: Click "Choose Project Folder" to select your project
- Filter Tab: Review auto-detected exclusions, apply presets, or customize patterns
- Export Tab: Choose format, preview output, copy to clipboard or download
Code Packer/
โโโ index.html # Main application page with 4-tab layout
โโโ styles.css # All styling and responsive design
โโโ main.js # Application entry point
โโโ fileManager.js # File upload and processing (55 lines)
โโโ exclusionManager.js # Filtering and tree logic (405 lines)
โโโ outputFormatter.js # Format generation (460 lines)
โโโ uiController.js # UI event handling (308 lines)
โโโ utils.js # Shared utilities (205 lines)
โโโ performance.js # Performance optimizations (167 lines)
โโโ uxEnhancements.js # Recent projects, preset sharing (242 lines)
โโโ fileWorker.js # Web Worker for background tasks (109 lines)
โโโ Documentation files...
- Chrome/Edge: Full support โ
- Firefox: Full support โ
- Safari: Full support โ
- Modern web browser with ES6 module support
- No server-side processing required
- Works entirely client-side (your code never leaves your computer)
Automatically detects 50+ file types including:
- Languages: JS, TS, Python, Java, C/C++, C#, Go, Rust, Ruby, PHP, Swift, Kotlin
- Web: HTML, CSS, SCSS, Vue, React, Svelte
- Config: JSON, YAML, TOML, INI
- Docs: Markdown, TXT, RST
- And many more...
- Code Review: Share your entire codebase with AI for comprehensive review
- Debugging: Provide full context for better debugging assistance
- Documentation: Generate documentation with AI that understands your full project
- Refactoring: Get architectural advice based on your complete codebase
- Learning: Ask AI to explain how your project works
- Migration: Get help migrating between frameworks/languages
- 100% Client-Side: All processing happens in your browser
- No Server Uploads: Your code never leaves your computer
- No Tracking: No analytics or data collection
- Open Source: All code is visible and auditable
Created by Reactorcore Games
- MIT License
