How Languine architecture works
mainLanguine is designed as a Vercel-native application. The architecture relies on several key components:
- Web Dashboard: A Next.js app hosted on Vercel that manages projects and configuration.
- Authentication: The dashboard is secured via Vercel Deployment Protection. The CLI and GitHub Action authenticate using a single
LANGUINE_API_KEY. - Background Processing: Long-running translation tasks are handled by Vercel Workflows, which provide durable and resumable execution.
- AI Orchestration: All AI requests pass through the Vercel AI Gateway, allowing you to switch between models (like OpenAI or Anthropic) via a single configuration (
AI_MODEL). - Data Persistence: A serverless Postgres database managed via Drizzle ORM.