How thisiskaii/intellidocs works
IntelliDocs is an academic document editor that imports and manages research documents, learns each user’s formatting behavior, and suggests formatting choices alongside writing assistance. The main path runs from the editor through authenticated API routes and prediction services to personalized suggestions and feedback; separate branches cover document conversion, collaboration, and professor review. The README documents major features not visible in the sampled excerpts; those are represented at their supported enclosing paths, with uncertain wiring omitted.
Main entry points: api.ts API client · documentController.ts Document operations · main.py ML prediction API · Document.tsx Document workspace
Components 29
Editor and workspace
- App routing
frontend/src/App.tsx - Document workspace
frontend/src/pages/Document.tsx - TipTap editor
frontend/src/components/editor/TiptapEditor.tsx - Writing assistance
frontend/src/components/editor - API client
frontend/src/services/api.ts - Yjs collaboration
frontend/src
Application API
- HTTP app
server/src/index.ts - Authentication
server/src/controllers/authController.ts - Document operations
server/src/controllers/documentController.ts - Document routes
server/src/routes/documentRoutes.ts - Document and share data
server/src/models/documentModel.ts - Python bridge
server/src/ai/bridge/pythonBridge.ts
Prediction and learning
- Formatting services
server/src/controllers/formattingController.ts - Behavior capture
server/src/controllers/behaviorController.ts - Personalization logic
server/src/skills - ML prediction API
ml/src/main.py - Model storage
ml/storage.py - Behavior feature store
ml/src/main.py - Grammar and spelling
ml/grammar
Review and integrations
- MCP assistant
server/src/mcp/mcpServer.ts - Provider client
server/src/ai/aiClient.ts - Professor review
server/src/controllers/professorController.ts - Drive import
server/src/controllers/driveController.ts
Other components
- Writer
- Professor
- Supabase
- Redis
- LLM provider
- Google Drive
Connections 33
- Writer → App routing: uses
- App routing → Document workspace: routes to
- Document workspace → TipTap editor: edits in
- Document workspace → API client: requests
- TipTap editor → Writing assistance: uses
- API client → HTTP app: calls
- HTTP app → Document routes: mounts
- Document routes → Document operations: dispatches
- Document operations → Document and share data: reads and writes
- Document operations → Python bridge: converts files
- Python bridge → ML prediction API: HTTP conversion
- Document operations → Supabase: resolves shares
- HTTP app → Authentication: mounts auth routes
- Authentication → Supabase: auth and profiles
- API client → Formatting services: requests formatting
- Formatting services → Personalization logic: invokes
- Personalization logic → ML prediction API: predicts
- ML prediction API → Model storage: loads models
- Model storage → Supabase: downloads and uploads
- ML prediction API → Behavior feature store: queries sequences
- Behavior capture → Redis: buffers behavior
- Behavior capture → Personalization logic: feeds learning
- Formatting services → Behavior capture: records feedback
- API client → Grammar and spelling: requests checks
- Writing assistance → MCP assistant: asks assistant
- MCP assistant → Provider client: requests completion
- Provider client → LLM provider: sends prompt
- Professor → Professor review: reviews documents
- Professor review → Document and share data: accesses documents
- API client → Drive import: imports files
- Drive import → Google Drive: exports and downloads
- Drive import → Python bridge: converts files
- Writer → Yjs collaboration: collaborates