How yantrik-collab-coding/yantrik works
Yantrik is a desktop collaborative AI-coding product: users authenticate, open a shared project workspace, chat with teammates or an AI agent, and review code changes. The backend serves project, chat, file, and community APIs; the desktop shell adds local file synchronization. The graph preserves documented forum, hackathon, billing, and profile capabilities. Several route implementations and UI pages were not sampled, so their internal connections are omitted where the available evidence does not establish them.
Main entry points: main.py API application · ProjectPage.tsx Project workspace UI · App.tsx App routing · llm.py LLM routing
Components 30
Desktop and UI
- App routing
frontend/src/App.tsx - Sign-in UI
frontend/src/pages/AuthPage.tsx - Dashboard
frontend/src/pages/Dashboard.tsx - Desktop shell
electron/main.js - Local file sync
electron/file-sync.js
Coding workspace
- Project workspace UI
frontend/src/pages/ProjectPage.tsx - Chat panel
frontend/src/components/ChatPanel.tsx - Agent steps UI
frontend/src/components/AgentSteps.tsx - File tree UI
frontend/src/components/FileTree.tsx - Diff viewer
frontend/src/components/DiffViewer.tsx - Terminal UI
frontend/src/components/Terminal.tsx - Project API
backend/routers/projects.py - Chat and agent API
backend/routers/chat.py - Workspace files API
backend/routers/files.py
Accounts and community
- Authentication API
backend/routers/auth.py - Forum API
backend/routers/forum.py - Friends API
backend/routers/friends.py - Hackathon API
backend/routers/hackathon.py - Billing and keys API
backend/routers/billing.py - Forum UI
frontend/src/pages/ForumPage.tsx - Hackathon pages
frontend/src/pages/HackathonPage.tsx - Profile page
frontend/src/pages/ProfilePage.tsx
Backend runtime
- API application
backend/main.py - Agent executor
backend/core/agent_executor.py - LLM routing
backend/core/llm.py - Diff and risk analysis
backend/core/diff_engine.py - Model catalog
backend/core/models.py - SQLite data
backend/core/database.py
Other components
- User
- LLM providers
Connections 35
- User → App routing: uses
frontend/src/App.tsx - App routing → Sign-in UI: routes to
frontend/src/App.tsx - App routing → Dashboard: routes to
frontend/src/App.tsx - App routing → Project workspace UI: routes to
frontend/src/App.tsx - App routing → Forum UI: routes to
frontend/src/App.tsx - App routing → Hackathon pages: routes to
frontend/src/App.tsx - Sign-in UI → Authentication API: syncs account
frontend/src/pages/AuthPage.tsx - API application → Authentication API: mounts
backend/main.py - API application → Project API: mounts
backend/main.py - API application → Chat and agent API: mounts
backend/main.py - API application → Workspace files API: mounts
backend/main.py - API application → Forum API: mounts
backend/main.py - API application → Friends API: mounts
backend/main.py - API application → Hackathon API: mounts
backend/main.py - API application → Billing and keys API: mounts
backend/main.py - Project workspace UI → Project API: requests project
frontend/src/pages/ProjectPage.tsx - Project workspace UI → Workspace files API: requests models
frontend/src/pages/ProjectPage.tsx - Project workspace UI → Chat panel: renders
frontend/src/pages/ProjectPage.tsx - Project workspace UI → File tree UI: renders
frontend/src/pages/ProjectPage.tsx - Project workspace UI → Diff viewer: renders
frontend/src/pages/ProjectPage.tsx - Project workspace UI → Terminal UI: renders
frontend/src/pages/ProjectPage.tsx - Chat panel → Agent steps UI: renders
frontend/src/components/ChatPanel.tsx - Chat and agent API → Agent executor: executes plan
backend/routers/chat.py - Agent executor → LLM routing: calls
backend/core/agent_executor.py - Agent executor → Diff and risk analysis: generates diff
backend/core/agent_executor.py - LLM routing → SQLite data: reads API keys
backend/core/llm.py - LLM routing → Model catalog: resolves provider
backend/core/llm.py - LLM routing → LLM providers: calls provider
backend/core/llm.py - Chat and agent API → SQLite data: stores messages and jobs
backend/routers/chat.py - Workspace files API → SQLite data: stores files and versions
backend/routers/files.py - Authentication API → SQLite data: reads and writes users
backend/routers/auth.py - Desktop shell → Local file sync: imports sync
electron/main.js - Forum UI → Forum API: uses API
- Hackathon pages → Hackathon API: uses API
- Profile page → Billing and keys API: manages keys