Skip to content

Jossyboydgenius/docsage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 docsage

Version License Node PRs Welcome

AI-powered README generator

gen-readme demo

Key FeaturesInstallationUsageDocumentationContributing

✨ Key Features

  • 🤖 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

🚀 Quick Start

Prerequisites

  • Node.js >= 16
  • npm or yarn
  • Google Gemini API key

📥 Installation

npm install -g docsage

Usage

docsage [path]

Example:

docsage ./my-project

or

docsage # This will scan the current directory

Interactive Mode

docsage -i

Advanced Options

Option Description
-c, --codebase Specify codebase path
-f, --force Force overwrite existing README
-m, --merge Merge with existing README
-i, --interactive Interactive mode

📖 Documentation

CLI Architecture

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]
Loading

Features

  • 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

Dependencies

Runtime:

Contributing

-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:

License

MIT This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

Made with ❤️ by @Okenneth1964

About

AI-powered README generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%