Overview
WhatDoc analyzes your codebase and generates comprehensive documentation using AI models. The generation process is fully automated—simply configure your project settings and deploy.Configuration Flow
After importing a repository from GitHub, you’ll configure your documentation project on the/configure page.
Repository Selection
The repository you selected is displayed in a read-only field. This is the full GitHub repository name (e.g.,
expressjs/express).Set URL Slug
Define the public URL path for your documentation:Slug requirements:
- At least 2 characters
- Lowercase letters, numbers, and hyphens only
- Must be unique across all WhatDoc projects
- Auto-generated from your repository name (customizable)
If the slug is taken, you’ll receive an error:
This URL slug is already taken.Choose Tech Stack
Select the technology stack that best describes your project:
- MERN: MongoDB, Express, React, Node.js
- Next.js: Next.js framework
- Other: All other technologies
Select Design Template
Choose from 16 professionally designed documentation templates:Free Templates:
- Modern
- Minimal
- Twilio (default)
- Django
- MDN
- AeroLatex
- Fintech
- DevTools
- Minimalist
- OpenSource
- Wiki
- ComponentLib
- ConsumerTech
- DeepSpace
- Web3
- Enterprise
Configure Model & API Key (Optional)
Bring Your Own Key (BYOK): Use your own API key for unlimited generation.Available Models:Gemini (Free with WhatDoc):Get your API keys:
gemini-2.5-flash-lite(default, fastest)gemini-2.5-flashgemini-2.5-pro(requires API key)
gpt-4ogpt-4o-mini
claude-3.7-sonnetclaude-3.5-haiku
Your API key is never stored in the database. It’s sent directly from your browser to the AI provider via request headers (
x-custom-api-key, x-target-model).- Google AI Studio (Gemini, free)
- OpenAI Platform
- Anthropic Console
Deploy Documentation
Click Deploy Documentation to queue your generation job.The system checks your tier limits:Free Tier:
- 2 documentation projects by default
- 5 projects with promo code
FREE5DOCS - Additional generations with code
WHATDOCFAM(+10 bonus)
- Up to 10 repositories
- Up to 25 repositories
Free tier limit reached! with code UPGRADE_REQUIRED.Generation Process
Once deployed, your project enters the generation queue:Queue System (BullMQ)
-
Queued: Your project is added to the generation queue
- Pro users get priority:
priority: 1 - Free users:
priority: 10
- Pro users get priority:
-
Job Data: The following is sent to the worker:
-
Status Tracking: You can monitor progress on
/deploy/:projectIdqueued→scanning→analyzing→generating→readyorfailed
Private Repository Access
For private repositories, WhatDoc injects your GitHub OAuth token into the Git URL:Smart Caching
WhatDoc caches documentation based on the latest commit SHA:- The system fetches the latest commit hash from GitHub API before generation
- If a project with the same
repoNameandcommitHashexists, generation is skipped - You’re redirected directly to the cached docs:
/p/:slug
Checking Job Status
You can query job progress via the API:waiting: In queue, not startedactive: Currently processingcompleted: Successfully generatedfailed: Generation failed (checkfailedReason)
What Gets Generated?
The AI analyzes your codebase and produces:- Overview: Project purpose and architecture
- Setup Instructions: Installation and configuration
- API Reference: Functions, classes, endpoints
- Usage Examples: Code snippets and workflows
- Directory Structure: File organization explanation
- Tech Stack: Dependencies and frameworks identified
generatedDocs field of your project.
Generation Limits
| Tier | Projects | Priority | Notes |
|---|---|---|---|
| Free (default) | 2 | Low (10) | Can be upgraded to 5 with code |
Free + FREE5DOCS | 5 | Low (10) | One-time code |
Free + WHATDOCFAM | +10 bonus generations | Low (10) | Limited redemptions |
| Pro ($4.99) | 10 repos | High (1) | Recurring limit |
| Pro ($9.99) | 25 repos | High (1) | Recurring limit |
| BYOK | Unlimited | Varies | Uses your API quota |
Viewing Your Documentation
After successful generation:- Navigate to
/p/:slugto view your live documentation - Access the project from your dashboard at
/dashboard - Edit and customize via
/editor/:projectId
isPublic: true).
Regenerating Documentation
To regenerate documentation for a repository:- Delete the existing project from your dashboard
- Re-import the repository from
/import - Configure and deploy again
If the repository hasn’t changed (same commit hash), WhatDoc will serve the cached version instead of regenerating.
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
Slug is already taken | Another project uses this slug | Choose a different slug |
UPGRADE_REQUIRED | Tier limit reached | Upgrade to Pro or use a promo code |
Failed to create project | Server error or invalid data | Check your configuration and retry |
Job stuck in queued | High queue traffic | Wait for workers to process (Pro users prioritized) |
Generation failed | Code parsing error or API timeout | Check failedReason in job status |
What’s Next?
Customizing Docs
Add your logo, branding, and custom navigation
Deploying Docs
Deploy to a custom subdomain or domain
