Welcome to WhatDoc
Connect your GitHub. Get beautiful, AI-generated documentation instantly. Every developer knows the pain: you build something great, but writing the docs feels like a second full-time job. So you don’t. Your README stays a one-liner, your API has no reference, and your users bounce. WhatDoc fixes this. Connect your GitHub, import a repo, pick a template, and get production-ready documentation in under 60 seconds.What is WhatDoc?
WhatDoc is an AI-powered documentation generator that automatically creates production-ready docs from your codebase. It analyzes your repository, understands your code structure, and generates comprehensive documentation tailored to your project type.WhatDoc uses advanced AI models (Gemini, OpenAI, Claude) to understand your code and generate contextual documentation — not just generic templates.
Key Features
Smart Code Ingestion
Shallow-clones your repo, walks the directory tree, filters noise (lockfiles, dist, tests), and compresses source via a regex-based minifier before sending to the LLM.
14+ Professional Templates
Choose from Twilio, Django, MDN, AeroLaTeX, Fintech, DevTools, and more. Every template is responsive, dark-mode ready, and gorgeous.
Custom Subdomains
Every project gets its own
yourproject.whatdoc.xyz subdomain — instant shareable docs.BYOK (Bring Your Own Key)
Plug in your Gemini, OpenAI, or Claude API key for unthrottled, limit-free generation. Stored in local storage, never touches our servers.
GitHub OAuth
Connect your GitHub, import repos (public or private), and generate docs in one flow.
Live Editor
Edit your generated documentation in a rich markdown editor. Changes save instantly.
One-Click Deploy
Generate → customize → deploy. Your docs go live at a permanent URL in seconds.
Command Palette
Power-user keyboard shortcuts (
Ctrl + Space) for fast navigation between projects.How It Works
WhatDoc uses a multi-stage pipeline to go from raw repo to polished docs:Shallow Clone
Uses
simple-git with --depth 1 to clone your repository to /tmp. Fast, ephemeral, and nothing persists on disk.Code Ingestion
Walks the directory tree, filters noise files (lockfiles,
dist/, tests, existing READMEs), and applies the Regex Guillotine minifier:- Strips block comments (
/* ... */) - Collapses consecutive
//comment runs - Truncates base64 blobs and long string literals
- Respects
.gitignorepatterns
AI Generation
Sends the concatenated codebase to your chosen LLM (Gemini/OpenAI/Claude). The system prompt instructs the AI to detect your repo type (REST API vs frontend vs CLI) and adapt the doc structure accordingly.
Free tier is capped at ~200k tokens with smart file-boundary cutoff. BYOK users get the full context window.
Supported Project Types
WhatDoc automatically detects and adapts to your codebase:| Project Type | What Gets Generated |
|---|---|
| REST API | Endpoint reference, authentication, request/response examples |
| Frontend | Component documentation, props, hooks, state management |
| CLI Tool | Command reference, flags, usage examples |
| Library | API reference, installation, usage patterns |
| Full-stack | Architecture overview, API routes, frontend components |
Template Showcase
Choose from 14+ professionally designed templates:- Twilio
- Django
- MDN
- AeroLaTeX
- Fintech
- And 9 more...
API-first dark layout with sidebar nav — perfect for REST APIs and developer tools.
Tech Stack
Backend
- Express 5 - HTTP server
- MongoDB + Mongoose - Database & ODM
- Gemini/OpenAI/Claude - AI-powered doc generation
- simple-git - Ephemeral repo cloning
- ignore -
.gitignore-aware file filtering - JWT + bcrypt - Authentication
- Zod - Schema validation
Frontend
- React 19 - UI framework
- Vite - Build tool & dev server
- TailwindCSS - Utility-first styling
- React Router - Client-side routing
- React Markdown - Markdown rendering
- React Syntax Highlighter - Code blocks
Who It’s For
Open Source Maintainers
Stop copy-pasting README boilerplate. Generate comprehensive docs that attract contributors.
Startups
Ship polished API documentation without hiring a technical writer.
Solo Developers
Focus on building. Let AI handle the documentation.
Teams
Standardize documentation across all your microservices.
What’s Next?
Quick Start Guide
Ready to generate your first docs? Follow our quickstart guide to go from zero to deployed in 5 minutes.
