How sabarinath1805-loyal/vaultr-ai works
Mike is a legal AI platform for document review, drafting, research, and reusable workflows. A typical user works in the web app or Word add-in, opens or uploads legal material, then chats with it, reviews suggested edits, or runs a tabular or assistant workflow. The backend routes requests through domain services and chat engines, with Supabase for application data and R2-compatible storage for files. The graph preserves README-documented capabilities; links between unsampled subsystems are omitted where their implementation relationship is not evidenced.
Main entry points: supabase.ts Supabase · chat.routes.ts Legal chat · engine Chat engine · documents Documents
Components 21
User experiences
- Web app
frontend/src/app - Word add-in
word-addin/src/taskpane/App.tsx
Legal workspaces
AI and workflows
- Legal chat
backend/src/modules/chat/chat.routes.ts - Chat engine
backend/src/modules/chat/engine - Tabular review
backend/src/modules/tabular/tabular.routes.ts - Workflows
backend/src/modules/workflows/workflows.routes.ts - Word chat API
backend/src/modules/word-chat/wordChat.routes.ts - Case research
backend/src/lib/courtlistener.ts - Model providers
backend/src/lib/llm/providers.ts
Backend platform
- API routes
backend/src/app.ts - Authentication
backend/src/middleware/auth.ts - Supabase
backend/src/lib/supabase.ts - Object storage
backend/src/lib/storage.ts - Memory scheduling
backend/src/lib/memory/schedule.ts
Other components
- Legal user
- Model services
- CourtListener
Connections 18
- Legal user → Web app: uses
README.md - Legal user → Word add-in: uses
README.md - Web app → API routes: requests
- Word add-in → Word chat API: chats through
- Authentication → Supabase: authenticates with
backend/src/middleware/auth.ts - Legal chat → Chat engine: invokes
backend/src/modules/chat/chat.routes.ts - Legal chat → Memory scheduling: schedules
backend/src/modules/chat/chat.routes.ts - Legal chat → Supabase: reads and writes
backend/src/modules/chat/chat.routes.ts - Tabular review → Supabase: reads and writes
backend/src/modules/tabular/tabular.routes.ts - Workflows → Supabase: reads and writes
backend/src/modules/workflows/workflows.routes.ts - Documents → Supabase: reads and writes
backend/src/modules/documents/documents.routes.ts - Projects → Supabase: reads and writes
backend/src/modules/projects/projects.routes.ts - Documents → Object storage: stores files
backend/src/modules/documents/documents.routes.ts - Uploads → Object storage: stores files
- Chat engine → Model providers: selects providers
- Model providers → Model services: calls
README.md - Chat engine → Case research: supports research
README.md - Case research → CourtListener: queries cases
README.md