A Node.js utility for generating comprehensive project documentation snapshots optimized for AI assistance. This tool analyzes repository content, creates file listings, and generates detailed project snapshots while respecting common gitignore patterns.
This project provides a powerful tool for developers to generate detailed documentation snapshots of their repositories, specifically designed to share codebase context with AI assistants. It recursively analyzes project structures, creates file listings, and generates comprehensive project snapshots while respecting common gitignore patterns and maintaining configurable limits. The generated snapshots are formatted to provide AI models with clear, structured insights into your codebase.
- π Creates a consolidated file containing all project content
- π Enforces a 2000-line limit on output
- π« Skips binary files and common development artifacts
- β¨ Provides real-time processing feedback
- π³ Generates visual directory structure trees
- π Shows hierarchical file organization
- π Supports custom ignore patterns
- π― Creates clean, formatted output
- πΈ Creates comprehensive project snapshots
- π Extracts project documentation from README
- π οΈ Lists project dependencies and technologies
- π Combines tree structure and content into one view
- Clone the repository:
git clone https://github.com/mollybeach/project-snapshot-printer.git
cd project-snapshot-printer
Generate a complete project snapshot:
node repo-scanners/projectSnapshotPrinter.mjs
Modify config.mjs
to customize:
- Project root path
- Output file locations
- Ignore patterns
- Line limits
The tool generates three main output files in the output
directory:
contentPrinted.txt
: Full content of all processed filestreePrinted.txt
: Visual directory structureprojectSnapshotPrinted.txt
: Combined project snapshot
Feel free to submit issues and enhancement requests!
MIT
@mollybeach
./project-snapshot-printer/
βββ .git/
βββ output/
β βββ contentPrinted.txt
β βββ projectSnapshotPrinted.txt
β βββ treePrinted.txt
βββ repo-scanners/
β βββ contentPrinter.mjs
β βββ projectSnapshotPrinter.mjs
β βββ treePrinter.mjs
βββ .DS_Store
βββ config.mjs
βββ README.md