AI-powered documentation generator for developer projects.
ShadowDocs scans your project and generates professional, detailed README.md files using AI. It analyzes your codebase structure, dependencies, and configuration to create accurate documentation tailored to your project type.
- AI-Powered Generation: Uses Groq's Llama model for intelligent documentation
- Project Analysis: Automatically detects project type (CLI, library, frontend, backend)
- Interactive CLI: Beautiful ink-based interface with keyboard navigation
- Detailed Output: Generates comprehensive README with all sections
- Multiple Modes: Generate new, improve existing, or explain in terminal
npm install -g shadowdocsshadowdocsThis opens the interactive menu. Use arrow keys or w/s to navigate, Enter to select.
shadowdocsShows menu:
- Generate README
- Improve README
- Explain Project
- Settings
- Help
shadowdocs ./my-projectshadowdocs setupShadowDocs uses Groq API for AI generation. Get your free API key:
- Visit https://console.groq.com
- Create account
- Generate API key
- Configure via
shadowdocs setupor setGROQ_API_KEYenv var
| Variable | Description |
|---|---|
| GROQ_API_KEY | Your Groq API key |
| GROK_API_KEY | Alternative (Groq) |
| XAI_API_KEY | Alternative (xAI) |
API key is stored in: ~/.shadowdocs/config.json
ShadowDocs automatically detects:
- CLI - Command-line tools
- Library - npm packages/modules
- Frontend - React, Vue, Svelte apps
- Backend - APIs, servers
Generated README includes:
- Overview
- Version
- Description
- Features
- Installation
- Usage
- API Reference (if applicable)
- Development
- Testing
- License (MIT)
- Contributing Guidelines
- Security Policy
- Code of Conduct
- Node.js >= 18
- npm or package manager
- Groq API key (free tier available)
| Command | Description |
|---|---|
| shadowdocs | Interactive menu |
| shadowdocs ./path | Generate for path |
| shadowdocs setup | Configure API key |
| shadowdocs --help | Show help |
| shadowdocs --version | Show version |
# Clone
git clone https://github.com/shadowofficial206/shadowdocs.git
cd shadowdocs
# Install dependencies
npm install
# Link locally
npm link
# Test
shadowdocs- Runtime: Node.js 18+
- UI: Ink (React for CLI)
- AI: Groq Llama
- Styling: Chalk
- HTTP: Axios
See LICENSE file for full MIT license text.
See CONTRIBUTING.md for contribution guidelines.
See SECURITY.md for security policy and vulnerability reporting.
- GitHub: https://github.com/shadowofficial206/shadowdocs
- npm: https://www.npmjs.com/package/shadowdocs
- Issues: https://github.com/shadowofficial206/shadowdocs/issues
- Open an issue for bugs
- Check existing issues before creating new ones
Made with Ink