How opiagile/direito-lux-mvp works
Direito Lux is a SaaS legal-practice platform. Its main user workflow is to access the web application, manage and search legal cases, monitor case updates, and receive reports or notifications; AI-assisted legal analysis and conversational bots are additional capabilities. The repository is organized as a Next.js frontend and Go/Python service subsystems. The README documents the product capabilities and broad service architecture, but most inter-service wiring is not evidenced in the excerpts, so those connections are not inferred.
Main entry points: page.tsx Web interface · jurisprudence_service.py AI analysis · notification_service.go Notifications · service.go Case monitoring
Components 19
Web application
- Web interface
frontend/src/app/(dashboard)/dashboard/page.tsx - Authentication
services/auth-service/internal/infrastructure/http/auth_handler.go
Legal case services
- Case monitoring
services/process-service/internal/application/service.go - DataJud integration
services/datajud-service/internal/application/datajud_service.go - Case search
services/search-service/internal/infrastructure/http/handlers/search_handlers.go
AI and conversational tools
- AI analysis
services/ai-service/app/services/jurisprudence_service.py - Local AI API
services/ai-service/app/main_local.py - AI data access
services/ai-service/app/db/database.py - Legal AI models
services/ai-service/app/models/jurisprudence.py - Conversational bot
services/mcp-service/internal/application/services/tool_service.go
Tenant and billing
- Tenant management
services/tenant-service/internal/application/tenant_service.go - Subscriptions and payments
services/billing-service/internal/application/payment_service.go
Reports and notifications
- Notifications
services/notification-service/internal/application/services/notification_service.go - Delivery channels
services/notification-service/internal/infrastructure/providers/factory.go - Reports and dashboards
services/report-service/internal/application/services/report_service.go - Document templates
template-service/internal/infrastructure/http/handlers/handlers.go
Other components
- Legal staff
- CNJ DataJud API
- Remote AI service
Connections 20
- Legal staff → Web interface: uses
README.md - Web interface → Authentication: authenticates with
- Web interface → Case monitoring: manages cases
- Web interface → Case search: searches cases
- Web interface → AI analysis: requests analysis
- Web interface → Reports and dashboards: views analytics
- Web interface → Notifications: views notifications
- Web interface → Tenant management: manages workspace
- Web interface → Subscriptions and payments: manages plan
- Case monitoring → DataJud integration: monitors via
README.md - DataJud integration → CNJ DataJud API: queries
README.md - Local AI API → Remote AI service: delegates AI requests
services/ai-service/app/main_local.py - AI analysis → Legal AI models: uses models
services/ai-service/app/services/jurisprudence_service.py - AI analysis → AI data access: reads decisions
- Conversational bot → Case monitoring: offers case tools
README.md - Conversational bot → Case search: offers search tools
README.md - Notifications → Delivery channels: dispatches through
- Notifications → Legal staff: delivers updates
README.md - Reports and dashboards → Legal staff: presents analytics
README.md - Document templates → Legal staff: provides templates
README.md