$ account samueltuoyo15
Dokugen is an open-source, AI-powered documentation generator delivered as a monorepo (Turborepo + pnpm). The core product is a CLI that generates, updates, and maintains README files, AI commit messages, licenses, changelogs, and OG social cards. It ships three CLI clients (TypeScript, Python, and a Go stub), a companion Express backend that proxies AI API calls (DeepSeek, OpenRouter, Gemini) and tracks usage via Supabase, a Next.js documentation site, a minimal VS Code extension, and a Remotion promotional video project. The architecture is client-server: CLIs detect project type using a heuristic pattern-matching algorithm, scan files, and send compressed payloads to the backend for AI generation, with streaming SSE responses. The system also includes auto-update mechanisms, interactive menus, and caching. While the product is functional and well-structured, there is significant duplication across CLI implementations (e.g., project detection logic is nearly identical in TypeScript and Python but drifts), a Go client that is only a placeholder, and a VS Code extension that is boilerplate. The codebase demonstrates solid engineering practices (rate limiting, security hardening, Docker multi-stage builds) but suffers from maintenance overhead due to the multi-language surface and some stale generated artifacts.