How dinesh-2007/visual-second-brain works
SudoShift is a visual productivity workspace for organizing goals, projects, tasks and related materials on interactive canvases. The main user flow is to enter the workspace, open the editor, and build a connected board from typed nodes. The editor also exposes collaboration, inbox, AI-assistance and planning capabilities. Authentication and Supabase-backed data services support the application. The excerpts establish the main routing, canvas and registry relationships; several feature modules are represented by their exact tree paths but were not sampled, so their internal behavior and some wiring are not asserted.
Main entry points: Editor.tsx Canvas editor · supabase.ts Supabase client · App.tsx Application routes · registry.tsx Node registry
Components 22
App and access
- Application routes
src/App.tsx - Authentication
src/auth/AuthContext.tsx - Protected routes
src/auth/ProtectedRoute.tsx - Workspace home
src/pages/Home.tsx - User profile
src/pages/Profile.tsx
Canvas workspace
- Canvas editor
src/pages/Editor.tsx - Interactive canvas
src/components/canvas/Canvas.tsx - Node sidebar
src/components/layout/Sidebar.tsx
Planning content
- Node registry
src/nodes/registry/registry.tsx - Node type map
src/nodes/registry/nodeTypes.ts - Goals and projects
src/nodes/goal - Tasks and events
src/nodes/task - Notes and resources
src/nodes/resource - Node presentation
src/components/nodes/NodeWrapper.tsx - Table node
src/components/nodes/TableNode.tsx
Collaboration
- Notifications inbox
src/components/Inbox.tsx - Priority matrix
src/components/layout/EisenhowerMatrixWidget.tsx
Data and assistance
- AI assistant
src/components/canvas/AiAssistantWidget.tsx - AI request service
src/lib/aiDumpService.ts - Supabase client
src/lib/supabase.ts
Other components
- User
- Supabase
Connections 26
- User → Application routes: opens
src/App.tsx - Application routes → Protected routes: protects routes
src/App.tsx - Protected routes → Authentication: checks session
src/auth/ProtectedRoute.tsx - Application routes → Workspace home: routes to
src/App.tsx - Application routes → Canvas editor: routes to
src/App.tsx - Application routes → User profile: routes to
src/App.tsx - Authentication → Supabase client: uses client
src/auth/AuthContext.tsx - Workspace home → Supabase client: uses client
src/pages/Home.tsx - User profile → Supabase client: uses client
src/pages/Profile.tsx - Canvas editor → Interactive canvas: renders
src/pages/Editor.tsx - Canvas editor → Node sidebar: renders
src/pages/Editor.tsx - Canvas editor → Node type map: uses types
src/pages/Editor.tsx - Interactive canvas → Node type map: uses types
src/components/canvas/Canvas.tsx - Node sidebar → Node type map: uses types
src/components/layout/Sidebar.tsx - Node sidebar → Priority matrix: renders
src/components/layout/Sidebar.tsx - Node registry → Goals and projects: registers
src/nodes/registry/registry.tsx - Node registry → Tasks and events: registers
src/nodes/registry/registry.tsx - Node registry → Notes and resources: registers
src/nodes/registry/registry.tsx - Node presentation → Table node: wraps node
src/components/nodes/TableNode.tsx - Canvas editor → Notifications inbox: renders
src/pages/Editor.tsx - Canvas editor → Supabase client: uses client
src/pages/Editor.tsx - Notifications inbox → Supabase client: uses client
src/components/Inbox.tsx - Canvas editor → AI assistant: renders
src/pages/Editor.tsx - AI assistant → AI request service: requests AI
src/components/canvas/AiAssistantWidget.tsx - AI request service → User: sends request
src/lib/aiDumpService.ts - Supabase client → Supabase: connects
src/lib/supabase.ts