How snilth/dobspace works
DevMind (also identified as DobSpace in the server startup message) is a collaborative workspace for projects, tasks, courses, and assignments. Its main domain workflow is task management: authenticated project members create and update tasks, assign work, move tasks through review states, and receive activity and notification updates. Courses and assignment planning, calendars, reminders, workspace settings, and an AI chat are additional product areas. The sampled task router and AI endpoint show their persistence and integration paths; UI-to-router wiring and several unsampled router details are not asserted.
Main entry points: route.ts AI chat endpoint · prisma.ts PostgreSQL data · tasks.ts Task operations · index.ts Auth service
Components 33
Access and workspace
- Sign-in and registration
app/(auth)/login/page.tsx - Authentication API
app/api/auth/[...all]/route.ts - Auth service
lib/auth/index.ts - Workspace dashboard
app/(dashboard)/dashboard/page.tsx - Workspace settings
app/(dashboard)/settings/page.tsx
Project task workflow
- Project workspace
app/(dashboard)/projects/[id]/page.tsx - Task board
components/kanban/kanban-board.tsx - Task operations
lib/trpc/routers/tasks.ts - Project operations
lib/trpc/routers/projects.ts - Activity history
lib/trpc/routers/activityLog.ts
Courses and planning
- Course workspace
app/(dashboard)/courses/[id]/page.tsx - Assignment board
app/(dashboard)/courses/[id]/assignment-board.tsx - Course operations
lib/trpc/routers/courses.ts - Assignment operations
lib/trpc/routers/assignments.ts - Calendar views
components/calendar/calendar-page-client.tsx - Calendar data
lib/trpc/routers/calendar.ts
Updates and assistance
- Notifications
app/(dashboard)/notifications/page.tsx - Notification operations
lib/trpc/routers/notifications.ts - Reminders
lib/trpc/routers/reminders.ts - AI chat panel
components/chat/chat-panel.tsx - AI chat endpoint
app/api/ai/chat/route.ts - Workspace context builder
lib/ai/context-builder.ts - AI prompt builder
lib/ai/prompts.ts
Runtime services
- tRPC endpoint
app/api/trpc/[trpc]/route.ts - Application router
lib/trpc/router.ts - Request context
lib/trpc/init.ts - Project permission checks
lib/trpc/guards.ts - PostgreSQL data
lib/db/prisma.ts - Redis
lib/db/redis.ts - Realtime event publisher
lib/pusher/server.ts - Deadline and reminder jobs
lib/jobs/reminder-check.ts
Other components
- Workspace member
- Anthropic API
Connections 23
- Workspace member → Sign-in and registration: signs in
- Sign-in and registration → Authentication API: submits credentials
- Authentication API → Auth service: handles auth
- Auth service → PostgreSQL data: persists accounts
- Auth service → PostgreSQL data: creates workspace
- Workspace member → Project workspace: manages projects
- Task operations → Project permission checks: checks permissions
- Task operations → PostgreSQL data: reads and writes tasks
- Task operations → PostgreSQL data: records activity
- Task operations → Realtime event publisher: emits task events
- Task operations → PostgreSQL data: creates notifications
- Workspace member → Course workspace: plans coursework
- Workspace member → Calendar views: views schedule
- Workspace member → AI chat panel: asks workspace questions
- AI chat panel → AI chat endpoint: sends chat
- AI chat endpoint → PostgreSQL data: checks workspace access
- AI chat endpoint → Redis: limits requests
- AI chat endpoint → Workspace context builder: builds context
- AI chat endpoint → AI prompt builder: builds system prompt
- AI chat endpoint → Anthropic API: streams response
- tRPC endpoint → Application router: dispatches procedures
- tRPC endpoint → Request context: creates context
- Deadline and reminder jobs → PostgreSQL data: checks reminders