AI-Powered Document Review for Google Docs
Get professional writing feedback on your Google Docs with the power of AI agents
Features • Quick Start • Configuration • AI Agents • Deployment
- 🤖 Multi-Agent AI Review — 7 specialized AI agents analyze your document simultaneously
- 📄 Google Docs Integration — Direct integration with Google Docs API
- 🎯 Context-Aware Analysis — Customize review based on target audience and tone
- 💬 Inline Commenting — Grammarly-style inline suggestions with hover cards
- � Multi-Provider Support — Choose between Google Gemini or OpenAI models
- 🇮🇩 Indonesian Focus — Optimized for Bahasa Indonesia writing (EYD compliant)
- ⚡ Real-time Processing — Stream agent results as they complete
| Agent | Description |
|---|---|
| Typo Checker | Fixes mechanical errors and spelling mistakes |
| Tone & Clarity | Improves flow, readability, and simplifies complex sentences |
| Fact & Logic | Checks internal consistency and logical errors |
| EYD Expert | Enforces formal Indonesian grammar (EYD V) |
| Structure | Analyzes document organization and flow |
| Redundancy | Identifies repetitive content and filler words |
| Inclusivity | Ensures language is inclusive and unbiased |
- Node.js 18+
- Google Cloud Console project with Docs API enabled
- API keys from Google AI Studio and/or OpenAI
# Clone the repository
git clone https://github.com/yourusername/docs-comment-injector.git
cd docs-comment-injector
# Install dependencies
npm install
# Copy environment file
cp .env.example .envCreate a .env file with your credentials:
# Google OAuth (for Google Docs access)
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secret
# Authentication
BETTER_AUTH_SECRET=your_random_secret
BETTER_AUTH_URL=http://localhost:5173
# AI Providers (at least one required)
GEMINI_API_KEY=your_gemini_api_key
OPENAI_API_KEY=your_openai_api_keynpm run devOpen http://localhost:5173 in your browser.
Customize your review by specifying:
Target Audience:
- General • Technical • Academic • Business • Casual
Tone Preference:
- Professional • Casual • Academic • Friendly
- Gemini 3 Pro (latest)
- Gemini 2.5 Pro
- Gemini 2.5 Flash
- Gemini 2.5 Flash Lite
- GPT-4o Mini
- GPT-4o
- GPT-4 Turbo
| Layer | Technology |
|---|---|
| Framework | React Router v7 |
| Language | TypeScript 5.9 |
| Styling | TailwindCSS 4 |
| Auth | Better Auth |
| Database | SQLite (Kysely) |
| AI SDK | Google GenAI, OpenAI |
| Icons | Lucide React |
# Build the image
docker build -t docs-comment-injector .
# Run the container
docker run -p 3000:3000 \
-e GOOGLE_CLIENT_ID=xxx \
-e GOOGLE_CLIENT_SECRET=xxx \
-e BETTER_AUTH_SECRET=xxx \
-e GEMINI_API_KEY=xxx \
docs-comment-injectornpm run build
npm start- ☁️ Google Cloud Run
- 🚀 Fly.io
- 🌊 Digital Ocean App Platform
- 🔷 Azure Container Apps
- 🟠 AWS ECS
- 🚂 Railway
docs-comment-injector/
├── app/
│ ├── components/ # React components
│ ├── routes/ # Page routes
│ ├── services/ # AI & API services
│ │ └── providers/ # Gemini & OpenAI providers
│ ├── types/ # TypeScript definitions
│ └── lib/ # Utilities
├── public/ # Static assets
└── build/ # Production build
MIT © 2025
Built with ❤️ using React Router & Google Gemini