3d37ce4582
feat: Update Docker and Kubernetes for database infrastructure
...
- Update backend Dockerfile with PostgreSQL deps and entrypoint
- Add entrypoint.sh with db/redis wait and auto-migration
- Add /ready endpoint for Kubernetes readiness probe
- Enhance /health endpoint with database and Redis status
- Update k8s deployment with PostgreSQL and Redis services
- Add proper secrets management for database credentials
- Update k8s readiness probe to use /ready endpoint
2025-12-31 10:58:41 +01:00
550f3516db
feat: Add PostgreSQL database infrastructure
...
- Add SQLAlchemy models for User, Translation, ApiKey, UsageLog, PaymentHistory
- Add database connection management with PostgreSQL/SQLite support
- Add repository layer for CRUD operations
- Add Alembic migration setup with initial migration
- Update auth_service to automatically use database when DATABASE_URL is set
- Update docker-compose.yml with PostgreSQL service and Redis (non-optional)
- Add database migration script (scripts/migrate_to_db.py)
- Update .env.example with database configuration
2025-12-31 10:56:19 +01:00
c4d6cae735
Production-ready improvements: security hardening, Redis sessions, retry logic, updated pricing
...
Changes:
- Removed hardcoded admin credentials (now requires env vars)
- Added Redis session storage with in-memory fallback
- Improved CORS configuration with warnings for development mode
- Added retry_with_backoff decorator for translation API calls
- Updated pricing: Starter=, Pro=, Business=
- Stripe price IDs now loaded from environment variables
- Added redis to requirements.txt
- Updated .env.example with all new configuration options
- Created COMPREHENSIVE_REVIEW_AND_PLAN.md with deployment roadmap
- Frontend: Updated pricing page, new UI components
2025-12-31 10:43:31 +01:00
721b18dbbd
Restore provider selection, model selection, and context/glossary in file uploader
2025-11-30 22:57:21 +01:00
dfd45d9f07
Fix admin login endpoint to accept JSON instead of form data
2025-11-30 22:49:39 +01:00
80318a8d43
Complete admin dashboard with user management, config and settings tabs
2025-11-30 22:44:10 +01:00
d31a132808
Commercial frontend cleanup: fix admin TypeError, simplify UI for end users, add Suspense boundaries
2025-11-30 22:28:59 +01:00
3346817a8a
Add OpenRouter provider with DeepSeek support - best value for translation (.14/M tokens)
2025-11-30 22:10:34 +01:00
b65e683d32
Add translation cache for faster repeated translations (5000 entry LRU cache with hit rate tracking)
2025-11-30 21:37:11 +01:00
d2b820c6f1
Hide admin section in sidebar, optimize translation service with parallel processing, improve UX
2025-11-30 21:33:44 +01:00
fcabe882cd
feat: Add complete monetization system
...
Backend:
- User authentication with JWT tokens (auth_service.py)
- Subscription plans: Free, Starter (), Pro (), Business (), Enterprise
- Stripe integration for payments (payment_service.py)
- Usage tracking and quotas
- Credit packages for pay-per-use
- Plan-based provider restrictions
Frontend:
- Landing page with hero, features, pricing preview (landing-sections.tsx)
- Pricing page with all plans and credit packages (/pricing)
- User dashboard with usage stats (/dashboard)
- Login/Register pages with validation (/auth/login, /auth/register)
- Ollama self-hosting setup guide (/ollama-setup)
- Updated sidebar with user section and plan badge
Monetization strategy:
- Freemium: 3 docs/day, Ollama only
- Starter: 50 docs/month, Google Translate
- Pro: 200 docs/month, all providers, API access
- Business: 1000 docs/month, team management
- Enterprise: Custom pricing, SLA
Self-hosted option:
- Free unlimited usage with own Ollama server
- Complete privacy (data never leaves machine)
- Step-by-step setup guide included
2025-11-30 21:11:51 +01:00
29178a75a5
feat: Add complete production deployment infrastructure
...
- Docker configuration:
- Multi-stage Dockerfiles for backend (Python 3.11) and frontend (Node 20)
- Production docker-compose.yml with all services
- Development docker-compose.dev.yml with hot-reload
- Nginx reverse proxy:
- SSL/TLS termination with modern cipher suites
- Rate limiting and security headers
- Caching and compression
- Load balancing ready
- Kubernetes manifests:
- Deployment, Service, Ingress configurations
- ConfigMap and Secrets
- HPA for auto-scaling
- PersistentVolumeClaims
- Deployment scripts:
- deploy.sh: Automated deployment with health checks
- backup.sh: Automated backup with retention
- health-check.sh: Service health monitoring
- setup-ssl.sh: Let's Encrypt SSL automation
- Monitoring:
- Prometheus configuration
- Grafana dashboards (optional)
- Structured logging
- Documentation:
- DEPLOYMENT_GUIDE.md: Complete deployment instructions
- Environment templates (.env.production)
Ready for commercial deployment!
2025-11-30 20:56:15 +01:00
8f9ca669cf
Performance optimization: batch translation for 5-10x speed improvement
...
- GoogleTranslationProvider: Added batch translation with separator method
- DeepLTranslationProvider: Added translator caching and batch support
- LibreTranslationProvider: Added translator caching and batch support
- WordTranslator: Collect all texts -> batch translate -> apply pattern
- ExcelTranslator: Collect all texts -> batch translate -> apply pattern
- PowerPointTranslator: Collect all texts -> batch translate -> apply pattern
- Enhanced Ollama/OpenAI prompts with stricter translation-only rules
- Added rule: return original text if uncertain about translation
2025-11-30 20:41:20 +01:00
54d85f0b34
feat: Add admin dashboard with authentication - Admin login/logout with Bearer token authentication - Secure admin dashboard page in frontend - Real-time system monitoring (memory, disk, translations) - Rate limits and cleanup service monitoring - Protected admin endpoints - Updated README with full SaaS documentation
2025-11-30 19:33:59 +01:00
500502440c
feat: Add SaaS robustness middleware - Rate limiting with token bucket and sliding window algorithms - Input validation (file, language, provider) - Security headers middleware (CSP, XSS protection, etc.) - Automatic file cleanup with TTL tracking - Memory and disk monitoring - Enhanced health check and metrics endpoints - Request logging with unique IDs
2025-11-30 19:25:09 +01:00
8c7716bf4d
Add Next.js frontend with WebLLM, OpenAI support - Add complete Next.js frontend with Tailwind CSS and shadcn/ui - Integrate WebLLM for client-side browser-based translations - Add OpenAI provider support with gpt-4o-mini default - Add Context & Glossary page for LLM customization - Reorganize settings: Translation Services includes all providers - Add system prompt and glossary support for all LLMs - Remove test files and requirements-test.txt
2025-11-30 19:02:41 +01:00
a4ecd3e0ec
Add MCP server and configuration for AI assistant integration
2025-11-30 16:53:53 +01:00
e48ea07e44
Add system prompt, glossary, presets for Ollama/WebLLM, image translation support
2025-11-30 16:45:41 +01:00
465cab8a61
Add WebLLM model selection and cache management
2025-11-30 11:57:58 +01:00
9410b07512
Add WebLLM support, fix progress bar blocking at 90%, add timeout protection
2025-11-30 11:54:33 +01:00
1d2784602b
Add Ollama vision image translation with checkbox option
2025-11-30 11:48:29 +01:00
abe77e3b29
Add Ollama support, progress bar, and professional UI redesign
2025-11-30 11:27:13 +01:00
793d94c93e
Initial commit: Document Translation API with Excel, Word, PowerPoint support
2025-11-30 10:48:58 +01:00