Automated codebase documentation powered by Gemini
Like DeepWiki but fast, runs locally and under your control
🤔 Want to see what QuickWiki can do? Check out its own documentation - yes, we used QuickWiki to document itself!
- 🤖 Fully Automated: Just point it at your repository and get a complete wiki with zero human input
- 📊 Smart Architecture Analysis: Generates architectural overviews, diagrams, and code explanations
- ⚡ Fast & Affordable: Uses Google's Gemini models for quick, cost-effective processing
- 🔒 Privacy First: Runs locally with your own API key
- 📝 Markdown Output: Clean, readable files that you can use with other AI tools
- 📈 Visual Documentation: Auto-generates Mermaid diagrams for architecture and workflows
If you don't have a Gemini API key, get one from Google AI Studio.
# Set your Gemini API key
export GEMINI_API_KEY=your_api_key
# Generate docs for your repository
npx quickwiki-ai /path/to/your/repo
Your docs will be generated in a minute or two! They will be in the wiki
directory by default.
npx quickwiki-ai <repository-path> [options]
Options:
-o, --output <directory>
: Custom output directory (default: /wiki)-k, --gemini-api-key <key>
: Provide API key via command line instead of environment variable
QuickWiki uses Gemini 2.0 Flash to generate documentation in three steps:
-
Explore Codebase
- Scans repository structure and identifies key files
- Uses AI to select the most relevant files in two passes
- Builds comprehensive understanding of your codebase
-
Generate Documentation Structure
- Generates documentation outline with pages and sections
- Identifies relevant files for each documentation topic
-
Generate Documentation Pages
- Creates each page using relevant code context
- Auto-generates diagrams and code explanations
- Builds navigation and links everything together
- Node.js 16+
- TypeScript
tree
command-line utility with--gitignore
support- Google Gemini API key (get one from Google AI Studio)