
How I Built an AI That Generates README Files and API Docs from Any GitHub Repo
Every developer has been there: you've built something great, but writing the documentation feels like a second project. README files go stale, API references never get written, and onboarding new contributors is painful. I built Code Documentation Generator to solve this — a single POST request that returns production-ready Markdown documentation for any public GitHub repo. What it does Send a GitHub repo URL, get back structured Markdown documentation. That's it. Three output formats: Full documentation — README + API reference + usage examples, all in one README only — project overview, installation, usage, contributing guide API reference — every function/class/method documented with parameters and return types It uses Claude AI under the hood to actually understand your code, not just parse it. So the output reads like a human wrote it. The API (one request) curl -X POST https://code-docs-api.peakline-ops.workers.dev/v1/generate \ -H "Content-Type: application/json" \ -d '{ "repo_
Continue reading on Dev.to Webdev
Opens in a new tab



