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
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
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
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
e48ea07e44
Add system prompt, glossary, presets for Ollama/WebLLM, image translation support
2025-11-30 16:45:41 +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