1.7.3 • Published 11 months ago

docsage v1.7.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

🚀 docsage

Version License Node PRs Welcome Open Source Love npm

AI-powered README generator

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
  • 🔃 GitHub Integration - Create pull requests automatically with generated docs
  • 🔐 Secure - Environment-based configuration for sensitive tokens

🚀 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

OptionDescription
-c, --codebaseSpecify codebase path
-f, --forceForce overwrite existing README
-m, --mergeMerge with existing README
-i, --interactiveInteractive 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]

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 @Okenneth1946

1.7.3

11 months ago

1.7.2

11 months ago

1.7.1

11 months ago

1.3.2

11 months ago

1.3.1

11 months ago

1.2.1

11 months ago

1.2.0

11 months ago

1.1.0

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago