LexBridge is an AI-powered legal translation platform designed for refugees, asylum seekers, and legal professionals. It enables contextually-aware, accurate translations of legal documents while maintaining the highest standards of security and confidentiality.
-
AI-Powered Legal Translation Fine-tuned models for asylum and immigration law
-
Enterprise-Grade Security End-to-end encryption and GDPR compliance
-
Multi-Language Support Support for 10+ languages including Arabic, Dari, Pashto
-
Real-Time Processing Instant text extraction and translation
-
Responsive Design Optimized for mobile, tablet, and desktop
-
Modern UI/UX Built with
shadcn/uicomponents and Tailwind CSS
- Node.js 18+
- npm / yarn / bun
- Google AI API Key
git clone https://github.com/vijaybartaula/lexbridge-platform.git
cd lexbridge-platformInstall dependencies:
npm install # or yarn install / bun installSet up environment variables:
cp .env.example .env.localUpdate .env.local:
GOOGLE_API_KEY=your_google_api_key_here
GOOGLE_GENAI_API_KEY=your_google_genai_api_key_here
NEXT_PUBLIC_APP_URL=http://localhost:3000Run development server:
npm run dev # or yarn dev / bun devVisit: http://localhost:3000
- Frontend: Next.js 15, React 18, TypeScript
- Styling: Tailwind CSS,
shadcn/ui - AI/ML: Google Generative AI (Gemini 1.5 Flash)
- Document Processing:
pdf-parse,mammoth(coming soon) - State Management: React Hooks
- Deployment: Vercel
- Select source & target languages
- Paste text or use sample input
- Click Translate
- Review and verify translation
- Download final output
- Drag & drop or select files
- Automatic text extraction and language detection
- Translate and export
.pdf(PDF).docx,.doc(Word).txt(Text)
| Language | Code |
|---|---|
| English | en |
| Spanish | es |
| French | fr |
| Arabic | ar |
| Persian (Dari) | fa |
| Pashto | ps |
| Somali | so |
| Swahili | sw |
| Amharic | am |
| Tigrinya | ti |
(Additional languages in progress)
- Documents are not stored
- HTTPS/TLS encryption
- No personal data collected
- Fully GDPR compliant
- File validation
- Rate-limiting on endpoints
- Secure error handling
- CSP and modern security headers
npm run test # Unit tests
npm run test:integration # Integration tests
npm run test:e2e # End-to-end tests
npm run test:coverage # Coverage report- Unit: Utilities, components
- Integration: API endpoints
- E2E: Full user scenarios
- Connect GitHub repo to Vercel
- Add
.env.localvariables in Vercel dashboard - Deploy – automatic on every push to
main
npm run build
npm run startdocker build -t lexbridge-platform .
docker run -p 3000:3000 lexbridge-platformWe welcome all contributions. Please follow the standard workflow:
- Fork the repository
- Create a branch:
git checkout -b feature/my-feature - Commit:
git commit -m 'Add feature' - Push:
git push origin feature/my-feature - Open a Pull Request
- TypeScript strict mode
- ESLint & Prettier
- Conventional commits
- Bug Reports
- Feature Requests
- Documentation Fixes
| Metric | Target |
|---|---|
| Translation Speed | < 2 seconds |
| Doc Processing Time | < 5 seconds (10MB) |
| Uptime | 99.9% |
| Lighthouse Score (Mobile) | > 90 |
- Code splitting
- Image optimization
- CDN caching
- Lazy loading & dynamic imports
- Core translations
- Responsive UI
- Multi-language support
- User auth
- Translation history
- Batch document processing
- Rate-limit dashboard
- Legal form auto-fill
- NGO portal
- Real-time collaboration
- Analytics & insights
- Mobile app
- Offline translation
- OCR capabilities
- Custom AI model training
Licensed under the MIT License. See LICENSE for full text.
- Google AI – Generative AI platform
- Vercel – Hosting and deployment
- shadcn/ui – UI components
- Open Source Community – For tools and inspiration
Made for refugees, asylum seekers, and legal advocates. © 2024–2025 LexBridge. Empowering lives through technology.