samueltuoyo15/Dokugen
소개
정리되지 않은 저장소를 취업용 포트폴리오로 바꿔 보세요. 채용 담당자가 실제로 읽을 만큼 명확한 README와, 숙련된 개발자처럼 보이는 Git 기록을 만들어 주는 전문적인 Conventional Commits를 생성합니다.
개발 도구What you can do
- Compressed Uploads: Efficiently packages codebases with 70–90% upload size compression to support analyzing larger projects without hitting API size limits.
- Safe Environment Template Inspection: Securely reads .env.example to extract accurate environment variable requirements and defaults for your documentation, while strictly ignoring .env* secret files.
- AI CHANGELOG Generator: Analyzes your Git commit history and automatically generates or updates a clean CHANGELOG.md adhering to Keep a Changelog standards out-of-the-box.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDokugen: The Smart README Generator

Overview
Dokugen helps developers automate their documentation workflow by analyzing your codebase and generating exactly what you need. It takes a look at your codebase, figures out what your project does, and then writes a clear, detailed README so you don't have to spend time doing it yourself. It's built to make sure your project always has professional and accurate documentation. No complicated setup is required, just straightforward functionality that keeps your documentation in sync with your actual code.
System Architecture / Design
Dokugen uses a client-server architecture. CLI clients (Python, TypeScript) interact with a backend API server, which then communicates with Gemini AI for README generation and Git commit message creation. User profile data is stored securely in a Supabase database.
flowchart LR
subgraph Clients["Dokugen Clients"]
TSCLI["TypeScript CLI"]
PythonCLI["Python CLI"]
end
API["API Server (Node.js Express)"]
AI["AI Model (Gemini)"]
DB[("Supabase Database")]
TSCLI --> API
PythonCLI --> API
API --> AI
API --> DB
style TSCLI fill:#1f3a60,stroke:#3b82f6,stroke-width:2px,color:#fff
style PythonCLI fill:#1f3a60,stroke:#3b82f6,stroke-width:2px,color:#fff
style API fill:#4a1525,stroke:#ec4899,stroke-width:2px,color:#fff
style AI fill:#5c1d24,stroke:#ef4444,stroke-width:2px,color:#fff
style DB fill:#022c22,stroke:#10b981,stroke-width:2px,color:#fff
Features
Interactive Menu: Run
dokugenwith no arguments to navigate all tool actions through a console prompt, making it easy to use for new and experienced developers.sequenceDiagram actor User participant CLI as "Dokugen CLI" User->>CLI: Run "dokugen" CLI->>CLI: Display interactive options CLI->>User: Select action (Generate, Update, Commit) User->>CLI: Choose an action CLI->>CLI: Execute selected commandSmart Updates: Re-run the generation process without losing your manual modifications. Only auto-generated blocks get updated, ensuring your personalized content remains.
sequenceDiagram actor User participant CLI as "Dokugen CLI" participant API as "API Server" participant AI as "AI Model" User->>CLI: Run "dokugen update" CLI->>API: Send project data + existing README API->>AI: Analyze code and README AI->>API: Return updated README sections API->>CLI: Send updated content CLI->>User: Write merged README.mdAI-Powered Commits: Automatically stages changes and generates conventional commit messages using AI, based on your staged files. This helps maintain a consistent and clear commit history.
sequenceDiagram actor User participant CLI as "Dokugen CLI" participant Git as "Local Git" participant API as "API Server" participant AI as "AI Model" User->>CLI: Run "dokugen aic" CLI->>Git: Get staged changes (diff) CLI->>API: Send diff for analysis API->>AI: Request commit message AI->>API: Return generated message API->>CLI: Send commit message CLI->>User: Confirm / Edit message User->>CLI: Accept message CLI->>Git: Commit changesCompressed Uploads: Efficiently packages codebases with 70–90% upload size compression to support analyzing larger projects without hitting API size limits.
Safe Environment Template Inspection: Securely reads
.env.exampleto extract accurate environment variable requirements and defaults for your documentation, while strictly ignoring.env*secret files.AI CHANGELOG Generator: Analyzes your Git commit history and automatically generates or updates a clean
CHANGELOG.mdadhering to Keep a Changelog standards out-of-the-box.Language & Framework Agnostic: Works out of the box with any programming language or framework (JavaScript, TypeScript, Python, Rust, Go, Java, PHP, C++, Django, React, etc.). You don't need Node.js or Python to be the main language of your codebase; simply install the Dokugen CLI globally using Node (
npm/pnpm/yarn) or Python (pip/uv) on your system, and run it in any project folder.
Installation
This project is a monorepo. Here's how to get it running:
Prerequisites
- Node.js: Version 18 or higher
- pnpm: Recommended package manager (you can also use
npmoryarn) - Python 3.8+: For the Python CLI client
- Go 1.24+: For the Go CLI client
Global Setup
Clone the Repository:
git clone https://github.com/samueltuoyo15/Dokugen.gitNavigate to the Project Root:
cd DokugenInstall All Dependencies: We use a workspace structure with pnpm, so installing at the root handles dependencies for all apps (CLI, Server) at once.
pnpm install # or npm install # or yarn install
Or Download Standalone Binary (No Node.js/Python Required)
Experimental: Standalone binaries are currently experimental and unstable. If you run into issues, please use the Node.js or Python packages instead.
Setting up the Server
The server requires environment variables to run.
Navigate to the Server Directory:
cd apps/serverCreate a
.envfile: Create a.envfile in theapps/server/directory and add the following variables. Replace placeholders with your actual keys and URLs.PORT=3000 NODE_ENV=development BACKEND_DOMAIN=http://localhost:3000 OPENAI_API_KEY=your_api_key_here OPENAI_BASE_URL=https://api.openai.com/v1 # Or any compatible provider like OpenRouter, DeepSeek README_MODEL_NAME=gpt-4o COMMIT_MODEL_NAME=gpt-4o-mini SUPABASE_CLIENT_URL=your_supabase_url SUPABASE_PUBLISHABLE_KEY=your_supabase_publishable_key SUPABASE_SECRET_KEY=your_supabase_secret_keyBuild and Run the Server:
pnpm run build pnpm startFor development, you can use
pnpm run dev.
Setting up the Python CLI Client
Navigate to the Python CLI Directory:
cd apps/cli/clients/pythonSet Up a Virtual Environment: It's recommended to use a Python virtual environment to manage dependencies.
python -m venv .venv # Activate virtual environment # On Windows: .venv\Scripts\activate # On macOS/Linux: source .venv/bin/activateInstall in Editable Mode: Install the package and its development dependencies.
pip install -e .
Setting up the TypeScript CLI Client
Navigate to the TypeScript CLI Directory:
cd apps/cli/clients/typescriptBuild the Project: Compile the TypeScript code.
pnpm run buildInstall Globally:
pnpm install -g . # or link it for development pnpm link --global
Usage
Dokugen offers an interactive assistant and standalone commands to manage your README files and Git commits.
Interactive Assistant
Simply run dokugen in your project folder to open the interactive setup assistant. From here, you can generate a README, update files, revert backups, or run AI-assisted Git commits.
dokugen
Standalone Commands
Generate README
Scan your project files and create a new README.md.
dokugen generate
To generate a README using a custom template from a public GitHub repository, like this:
dokugen generate --template https://raw.githubusercontent.com/username/repo/main/README.md
Smart Update README
Intelligently rebuilds auto-generated sections (like the tech stack, API details, and file layout) while keeping your custom text, notes, and badges intact.
dokugen update
AI Git Commit (aic)
Analyze your staged files, automatically generate a Conventional Commit message, commit, and optionally push.
dokugen aic
You can also push immediately after committing:
dokugen aic --push
Safety Backup Revert (revert)
Accidentally generated something you didn't like? Restore your previous README instantly from our automatic backup.
dokugen revert
AI CHANGELOG Generator (changelog)
Analyze your Git commit history and automatically generate or update a structured CHANGELOG.md adhering to Keep a Changelog standards.
Note:
dokugen changelogworks out-of-the-box using Dokugen's server key! Optionally, if you wish to use your own custom OpenRouter key, setOPENROUTER_API_KEYin your environment:# Windows (PowerShell): $env:OPENROUTER_API_KEY="your_custom_api_key" # macOS / Linux / Termux: export OPENROUTER_API_KEY=your_custom_api_key
dokugen changelog
You can also specify custom version tags or limit the commit search:
dokugen changelog --version-tag v1.2.0 --limit 30
Technologies Used
| Category | Technology |
|---|---|
| Monorepo | Turborepo |
| Backend | TypeScript, Node.js, Express.js, Supabase |
| AI | Gemini |
| Client | TypeScript, Python, Go |
| Frontend | React, Next.js (likely in future plans or for a web dashboard) |
| Dev Tools | pnpm |
Contributing
We welcome contributions to Dokugen! Before contributing, please make sure to read our Contribution Guide (CONTRIBUTION.md).
It covers our basic rules (like no emojis, cleaning up debug logs) and simple setup steps for each app in the repository.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author Info
- Samuel Tuoyo
- X (Twitter)
Badges
관련 프로젝트 살펴보기
불러오는 중…