AI-powered README generator
Key Features • Installation • Usage • Documentation • Contributing
- 🤖 AI-Powered Analysis - Leverages Google's Gemini model for intelligent code analysis
- 📝 Smart Generation - Creates comprehensive README files with all essential sections
- 🔍 Code Structure Detection - Automatically detects and documents project structure
- 📊 Dependency Analysis - Parses and categorizes project dependencies
- 📈 Mermaid Diagrams - Generates architecture and flow diagrams automatically
- 🎨 Beautiful CLI - Interactive command-line interface with colorful output
- 🔄 Merge Support - Smart merging with existing README files
- ⚡ Fast & Efficient - Optimized file scanning and processing
- Node.js >= 16
- npm or yarn
- Google Gemini API key
npm install -g docsage
docsage [path]
Example:
docsage ./my-project
or
docsage # This will scan the current directory
docsage -i
Option | Description |
---|---|
-c, --codebase |
Specify codebase path |
-f, --force |
Force overwrite existing README |
-m, --merge |
Merge with existing README |
-i, --interactive |
Interactive mode |
graph TD
A[CLI Entry] --> B{Parse Options}
B --> C[Interactive Mode]
B --> D[Direct Mode]
C --> E[File Scanner]
D --> E
E --> F[Code Analyzer]
F --> G[README Generator]
G --> H{Existing README?}
H -->|Yes| I[Merge Content]
H -->|No| J[Write New File]
- AI-powered code analysis
- Automatic generation of detailed README.md files
- Support for code structure detection and dependency parsing
- Integration with Mermaid for diagram generation
- Customizable templates
Runtime:
-Fork the repo -Create a new branch -Make your changes -Commit your changes -Push your changes -Create a pull request
Contributions are welcome! Please read the contributing guidelines before submitting a pull request.
Development:
MIT This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini for AI capabilities
- Osei Ansah/PapaDaCodr
- Expo Ghana Community
- Samuel Agbenyo
- All our contributors
Made with ❤️ by @Okenneth1964