DocMint analyzes your GitHub repository — reading the actual source files, not just the metadata — and generates a complete, structured README in under 30 seconds. The result opens in a drag-and-drop block editor where you can reorder sections, edit inline, lock blocks you've written by hand, and export as Markdown or HTML.
- Paste a GitHub URL — any public repository works without authentication.
- DocMint reads the codebase — it fetches the file tree and parses
package.json,Dockerfile,.env.example, GitHub Actions workflows, and other config files to build an accurate picture of the project. - A README is generated — structured into sections (overview, installation, usage, tech stack, API routes, environment variables, contributing) based on what the repo actually contains.
- Edit in the block editor — drag sections to reorder, edit content inline, hide sections you don't need, or lock blocks to protect manual edits from being overwritten on regeneration.
- Export — download as
README.md, export as HTML, or copy to clipboard.
Prerequisites: Node.js 18+
git clone https://github.com/kcooperdev/docmint
cd docmint
npm installCopy the environment file:
cp .env.local.example .env.localStart the development server:
npm run devOpen http://localhost:3000.
| Variable | Description | Required |
|---|---|---|
GITHUB_TOKEN |
Personal access token for higher GitHub API rate limits. Without this, you're limited to 60 unauthenticated requests per hour. Create one at github.com/settings/tokens with public_repo scope. |
No |
OPENAI_API_KEY |
Enables AI-enhanced prose for the overview and features sections. Without this, DocMint uses structured template generation, which is still accurate since it pulls real data from the repo. | No |
- Next.js 15 — App Router, API routes, and server components
- TypeScript — end-to-end type safety across the codebase
- Tailwind CSS — utility-first styling
- Framer Motion — scroll-driven parallax and page transitions
- @dnd-kit — accessible drag-and-drop for the block editor
- react-markdown — live markdown rendering in the preview pane
src/
├── app/
│ ├── api/
│ │ ├── analyze-repo/ # Fetches and parses the GitHub repo
│ │ └── generate-readme/ # Assembles README sections from parsed data
│ ├── generate/ # Editor page
│ └── page.tsx # Landing page
├── components/
│ ├── editor/ # Block editor and markdown preview
│ └── landing/ # Landing page sections
└── lib/
├── github.ts # GitHub API client and repo analysis
├── readme-generator.ts # Section templates and markdown assembly
└── openai.ts # Optional AI enhancement layer
Pull requests are welcome. For significant changes, open an issue first to discuss what you'd like to change.
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Commit your changes and open a pull request
Distributed under the MIT License.

