
AIGNE DocSmith
๐ AI-powered documentation that understands your code
AIGNE DocSmith is a powerful, AI-driven documentation tool built on the AIGNE Framework. It automatically analyzes your codebase to generate comprehensive, structured, and multi-language documentation that stays in sync with your code.
๐ฏ Why DocSmith?
- ๐ง Intelligent Analysis: Understands your code's structure, patterns, and intent.
- ๐ Comprehensive Coverage: Generates everything from API references to user guides.
- ๐ Global Ready: Supports 12 languages with professional-grade translation.
- ๐ Always Current: Automatically detects changes and updates documentation accordingly.
- โก Zero Config: Works out of the box with smart defaults and auto-detection.
AIGNE Ecosystem
DocSmith is part of the AIGNE ecosystem, a comprehensive AI application development platform.

As shown in the diagram, DocSmith integrates seamlessly with other AIGNE components, leveraging the platform's AI capabilities and infrastructure.
โจ Features
๐ค AI-Powered Generation
- Smart Structure Planning: Analyzes your codebase to create a logical and comprehensive documentation structure.
- Intelligent Content Creation: Generates detailed, contextual content that explains both the "what" and the "why."
- Adaptive Writing Styles: Supports multiple documentation styles, including Technical, User-Friendly, and Developer-Focused.
๐ Multi-Language Support
- 12 Language Support: English, Chinese (Simplified & Traditional), Japanese, Korean, Spanish, French, German, Portuguese, Russian, Italian, and Arabic.
- Professional Translation: Provides context-aware translations that maintain technical accuracy.
- Glossary Integration: Ensures consistent terminology across all languages.
๐ Seamless Integration
- AIGNE Hub Integration: Use the AIGNE Hub without API keys and switch between Google Gemini, OpenAI GPT, Claude, and more.
- Multiple LLM Support: Bring your own API keys for OpenAI, Anthropic, Google, and other providers.
- One-Click Publishing: Publish your docs and generate shareable links for your team. Publish to docsmith.aigne.io or your own Discuss Kit instance.
๐ Smart Updates
- Change Detection: Automatically identifies code changes and updates the relevant documentation.
- Targeted Regeneration: Updates specific sections with custom feedback and requirements.
- Version Awareness: Maintains a history of your documentation and tracks changes over time.
๐ Quick Start
Prerequisites
- Node.js 20+ and npm/pnpm
- No API keys required (uses the AIGNE Hub by default).
๐ฆ Installation
Install the AIGNE CLI globally:
npm install -g @aigne/cli
Verify the installation:
aigne doc --help
๐ Generate Your First Documentation
Navigate to your project directory and run:
aigne doc create
DocSmith will:
- ๐ Auto-detect your project's structure and tech stack.
- ๐ฏ Guide you through an interactive setup (first time only).
- ๐ Generate comprehensive documentation.
- ๐ Optionally translate it into multiple languages.
- ๐ Publish it to your preferred platform.
๐ง Advanced Configuration
LLM Providers
DocSmith supports multiple AI providers:
๐ฏ AIGNE Hub (Recommended)
- โ
No API keys required.
- โ
Easy model switching.
- โ
Built-in rate limiting and optimization.
aigne doc create --model google:gemini-2.5-pro
aigne doc create --model anthropic:claude-sonnet-4-5
aigne doc create --model openai:gpt-4o
๐ Custom API Keys
Configure your own API keys for direct provider access:
- OpenAI GPT models
- Anthropic Claude models
- Google Gemini models
- and more...
๐ Usage Guide
Core Commands
๐ Generate Documentation
aigne doc create
aigne doc create --forceRegenerate
aigne doc create --feedback "Add more API examples and troubleshooting sections"
๐ Update Existing Documents
aigne doc update
aigne doc update --docs overview.md --feedback "Add comprehensive FAQ section"
๐ Multi-Language Translation
aigne doc localize
aigne doc localize --langs zh --langs ja --docs examples.md --docs overview.md
aigne doc localize --glossary @path/to/glossary.md --feedback "Use technical terminology consistently"
๐ Publishing & Deployment
aigne doc publish
aigne doc publish --appUrl https://your-discuss-kit-instance.com
โ๏ธ Configuration Management
aigne doc init
aigne doc prefs
Configuration Options
DocSmith automatically detects your project's structure, but you can customize it to your needs:
- ๐ Documentation Styles: Technical, User-Friendly, Developer-Focused, Academic
- ๐ฏ Target Audiences: Developers, End Users, System Administrators, Business Users
- ๐ Languages: Choose from 12 supported languages.
- ๐ Source Paths: Customize which files and directories to analyze.
- ๐ค Output Settings: Configure the documentation structure and formatting.
๐ Supported Languages
DocSmith provides professional-grade translations for 12 languages:
| English | en | โ
Native |
| ็ฎไฝไธญๆ | zh-CN | โ
Full |
| ็น้ซไธญๆ | zh-TW | โ
Full |
| ๆฅๆฌ่ช | ja | โ
Full |
| ํ๊ตญ์ด | ko | โ
Full |
| Espaรฑol | es | โ
Full |
| Franรงais | fr | โ
Full |
| Deutsch | de | โ
Full |
| Portuguรชs | pt-BR | โ
Full |
| ะ ัััะบะธะน | ru | โ
Full |
| Italiano | it | โ
Full |
| ุงูุนุฑุจูุฉ | ar | โ
Full |
๐ค Contributing
We welcome contributions from the community! Here's how you can help:
๐ Reporting Issues
- ๐ Search existing issues first.
- ๐ Use our issue templates for bug reports and feature requests.
- ๐จ Include clear reproduction steps and details about your environment.
๐ก Feature Requests
- ๐ Share your ideas in GitHub Discussions.
- ๐ Check our roadmap for planned features.
- ๐ณ๏ธ Vote on existing feature requests.
๐ง Development Setup
git clone https://github.com/AIGNE-io/aigne-doc-smith.git
cd aigne-doc-smith
pnpm install
pnpm test
pnpm run lint
pnpm run lint:fix
๐ Code of Conduct
Please follow our community guidelines and maintain respectful, constructive communication.
๐ผ Enterprise & Production Use
๐ข Enterprise Features
- Team Collaboration: Multi-user workflows with role-based access.
- Custom Branding: White-label your documentation with your brand's identity.
- API Integration: Use REST APIs for automated documentation pipelines.
- Analytics: Track documentation usage and effectiveness.
๐ Security & Compliance
- Private Cloud: Deploy on your own infrastructure.
- SSO Integration: Connect with your existing identity providers.
- Audit Logs: Complete activity tracking and compliance reporting.
- Data Privacy: Your code never leaves your environment in private deployments.
๐ Support & Services
- Priority Support: Get direct access to our engineering team.
- Custom Training: We offer team onboarding and best practices workshops.
- Professional Services: We provide custom integrations and deployment assistance.
Contact us for enterprise licensing and deployment options.
๐ Documentation & Tutorials
- ๐ฆ Twitter - For updates and announcements.
- ๐ฎ Community - For real-time community chat.
๐ Showcase
See DocSmith in action with these real-world examples:
๐ License
This project is licensed under the Elastic License 2.0. See the LICENSE file for details.
What does this mean?
- โ
Free for most use cases: Including personal projects, internal use, and most commercial applications.
- โ
Open source: The full source code is available for review and contributions.
- โ
Commercial friendly: Use it in your business applications and services.
- โ Restrictions: You cannot offer DocSmith as a competing hosted service.
Learn more about the Elastic License 2.0