Professional document creation platform with AI-powered content generation that produces consulting-grade reports and presentations.
- Strategic Consulting - McKinsey-style with 2x2 matrices and chevron flows
- Global Policy - Evidence-based with data tables and statistical sidebars
- Investment Banking - Financial focus with waterfall charts and valuations
- Executive Briefing - Ultra-concise single-page format
- Research Report - Academic styling with literature review structure
- International Development - Impact-focused with beneficiary-centered language
- Generate with AI - Create entire sections instantly
- Improve Writing - Make professional, concise, add data, executive tone
- Change Style - Adapt to policy language or consulting tone
- Smart Suggestions - Context-aware content recommendations
- Streaming Responses - Real-time word-by-word generation
- Undo/Redo - Full generation history with 50-item buffer
- Template-specific styling and color schemes
- Section-based document organization
- Real-time content editing
- Comprehensive export functionality
- PDF: Perfect formatting with web/print quality options
- PowerPoint (PPTX): Editable slides with template styling
- Word (DOCX): Fully editable documents with styles
- HTML: Standalone web pages for sharing
- PNG/JPG: High-resolution image export
- Export Modal: Interactive configuration with progress tracking
- Charts: Bar, Line, Pie/Donut, Waterfall with no gridlines and subtle colors
- Diagrams: 2x2 Matrix, Process Flows (Chevron/Arrow), Timelines, Icon Stats
- Chart Builder: Interactive builder with CSV import and AI suggestions
- Export: PNG and SVG export capabilities
- Template Matching: Colors automatically match document templates
- Framework: Next.js 14 with App Router
- Language: TypeScript
- Styling: Tailwind CSS with custom premium theme
- UI Components: Shadcn/ui with Radix UI primitives
- Charts: Recharts with custom premium themes
- AI Integration: Ready for OpenAI, Anthropic, or custom LLMs
- Icons: Lucide React
- Export: HTML2Canvas for PNG export
# Install dependencies
npm install
# Run development server
npm run dev
# Build for production
npm run build
npm startSee INSTALLATION.md for detailed installation instructions and troubleshooting.
- Visit
http://localhost:3000 - Browse templates at
/templates - View visualizations at
/visualizations - Start creating at
/editoror/editor-ai(AI-powered) - Select a template and begin writing
- Use AI features to generate and enhance content
- Add premium charts and diagrams to your documents
See AI_FEATURES.md for comprehensive documentation on:
- AI generation modes
- Template-specific prompts
- API endpoints
- Integration with LLM providers
- Custom hooks and components
See VISUALIZATIONS.md for comprehensive documentation on:
- Premium chart types (Bar, Line, Pie, Waterfall)
- Smart diagrams (Matrix, Process Flow, Timeline, Icon Stats)
- Chart builder and customization
- Data import and export
- Template-specific themes
See EXPORT_GUIDE.md for comprehensive documentation on:
- Multiple format support (PDF, PPTX, DOCX, HTML, PNG)
- Quality settings and optimization
- Page range selection
- Email delivery
- Progress tracking
Create .env.local:
OPENAI_API_KEY=your_openai_key
ANTHROPIC_API_KEY=your_anthropic_key
The app includes mock AI responses. To integrate real AI:
- Install AI SDK:
npm install openaiornpm install @anthropic-ai/sdk - Update
/app/api/ai/generate/route.tswith your provider - Add API keys to environment variables
elite-doc-generator/
βββ app/
β βββ api/ai/generate/ # AI generation endpoint
β βββ editor/ # Basic editor
β βββ editor-ai/ # AI-powered editor
β βββ templates/ # Templates page
β βββ dashboard/ # Dashboard
βββ components/
β βββ editor/ # Editor components
β β βββ ai-toolbar.tsx
β β βββ content-block.tsx
β β βββ smart-suggestions.tsx
β βββ ui/ # UI components
βββ lib/
β βββ templates.ts # Template registry
β βββ prompts.ts # AI prompt templates
β βββ hooks/ # Custom hooks
βββ templates/ # Template definitions
β βββ strategic-consulting.ts
β βββ global-policy.ts
β βββ investment-banking.ts
β βββ executive-briefing.ts
β βββ research-report.ts
β βββ international-development.ts
βββ public/ # Static assets
Each template includes:
- Custom color schemes and typography
- 4-6 pre-structured sections
- Template-specific AI prompts
- Professional styling and layouts
- Category-specific vocabulary
Contributions welcome! Areas for enhancement:
- Additional document templates
- More AI generation modes
- Export functionality (PDF, DOCX)
- Collaborative editing
- Version control
- Template customization
MIT License - feel free to use for personal or commercial projects
- INSTALLATION.md - Detailed setup and troubleshooting
- COMMANDS.md - All npm commands and utilities
- STATUS.md - Complete project status
- PROJECT_SUMMARY.md - Comprehensive overview
- SETUP_COMPLETE.md - Quick start checklist
Ready to start? Run npm install && npm run dev and visit http://localhost:3000 π
All dependencies updated to latest secure versions:
- Next.js 15.0.3 - Latest stable with security fixes
- 0 vulnerabilities - All npm audit issues resolved
- See SECURITY.md for details
- See MIGRATION_NEXT15.md for upgrade notes