Skip to content

A Node.js utility for generating comprehensive project documentation snapshots πŸ“Έ including folder tree structures πŸ“ 🌳 optimized for AI assistance. This tool analyzes repository content, creates file listings, and generates detailed project snapshots while respecting common gitignore patterns.πŸ”

Notifications You must be signed in to change notification settings

mollybeach/codebase-snapshot-ai-lens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Codebase Snapshot AI Lens

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.

Description

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.

Features

Content Analysis

  • πŸ“„ 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

Directory Structure

  • 🌳 Generates visual directory structure trees
  • πŸ“ Shows hierarchical file organization
  • πŸ” Supports custom ignore patterns
  • 🎯 Creates clean, formatted output

Project Documentation

  • πŸ“Έ Creates comprehensive project snapshots
  • πŸ“ Extracts project documentation from README
  • πŸ› οΈ Lists project dependencies and technologies
  • πŸ”„ Combines tree structure and content into one view

Installation

  1. Clone the repository:
git clone https://github.com/mollybeach/project-snapshot-printer.git
cd project-snapshot-printer

Usage

Generate a complete project snapshot:

node repo-scanners/projectSnapshotPrinter.mjs

Configuration

Modify config.mjs to customize:

  • Project root path
  • Output file locations
  • Ignore patterns
  • Line limits

Output Files

The tool generates three main output files in the output directory:

  • contentPrinted.txt: Full content of all processed files
  • treePrinted.txt: Visual directory structure
  • projectSnapshotPrinted.txt: Combined project snapshot

Contributing

Feel free to submit issues and enhancement requests!

License

MIT

Author

@mollybeach

Project Structure

./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

About

A Node.js utility for generating comprehensive project documentation snapshots πŸ“Έ including folder tree structures πŸ“ 🌳 optimized for AI assistance. This tool analyzes repository content, creates file listings, and generates detailed project snapshots while respecting common gitignore patterns.πŸ”

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published