How shashwattrigunayat/aetherstudio works
AetherCode is a full-stack collaborative IDE. Users authenticate, open a workspace, edit and synchronize files, collaborate in real time, and use terminal, debugging, execution, and AI tools. The graph keeps those distinct product capabilities alongside the account and workspace data layers. The README documents several integrations whose implementation was not sampled; those links are cited to the README, while source-level links rely on excerpts or SOURCE INDEX references.
Main entry points: handlers.js Socket event handlers · api.js HTTP API client · Workspace.js Workspace records · App.jsx Web app routes
Components 30
IDE experience
- Web app routes
frontend/src/App.jsx - Account state
frontend/src/stores/useAuth.js - Workspace dashboard
frontend/src/pages/DashboardPage.jsx - IDE workspace
frontend/src/pages/WorkspacePage.jsx - Editor and files
frontend/src/components/Editor/EditorArea.jsx - Terminal state
frontend/src/stores/useTerminal.js - AI assistant
frontend/src/components/AI/ChatPanel.jsx - HTTP API client
frontend/src/lib/api.js - Workspace state
frontend/src/stores/useWorkspace.js
Application services
- Authentication routes
backend/routes/auth.js - Workspace routes
backend/routes/workspace.js - AI routes
backend/routes/ai.js - Execution routes
backend/routes/execution.js - PTY terminal service
backend/services/terminalService.js - Debug service
backend/services/debugService.js - Sandboxed execution
backend/services/executionService.js - Gemini AI service
backend/services/aiService.js
Collaboration runtime
- Socket event handlers
backend/sockets/handlers.js - Yjs synchronization
backend/sockets/yjs-binding.js - WebRTC signaling
backend/sockets/webrtc-signaling.js
Persistence and sync
- Workspace records
backend/models/Workspace.js - Workspace disk sync
backend/services/workspaceFileSync.js - Filesystem watcher
backend/services/fileWatcherService.js - User records
backend/models/User.js
External tools
- MongoDB
- Redis
- Docker sandbox
- Google Gemini
Other components
- Developer
- Peer browser
Connections 38
- Developer → Web app routes: uses
frontend/src/App.jsx - Web app routes → Account state: routes to
- Web app routes → Workspace dashboard: routes to
frontend/src/App.jsx - Web app routes → IDE workspace: routes to
frontend/src/App.jsx - Account state → HTTP API client: calls
frontend/src/stores/useAuth.js - IDE workspace → Workspace state: uses
- Workspace state → HTTP API client: calls
frontend/src/stores/useWorkspace.js - Workspace state → Terminal state: coordinates
frontend/src/stores/useWorkspace.js - IDE workspace → Editor and files: renders
- HTTP API client → Authentication routes: requests
- HTTP API client → Workspace routes: requests
- HTTP API client → AI routes: requests
- HTTP API client → Execution routes: requests
- Authentication routes → User records: queries
backend/routes/auth.js - Authentication routes → MongoDB: persists users
- Workspace routes → Workspace records: queries
backend/routes/workspace.js - Workspace routes → Workspace disk sync: syncs files
backend/routes/workspace.js - Workspace routes → Filesystem watcher: manages watching
backend/routes/workspace.js - Workspace records → MongoDB: stores records
- Socket event handlers → Workspace records: loads workspace
backend/sockets/handlers.js - Socket event handlers → Workspace disk sync: syncs to disk
backend/sockets/handlers.js - Socket event handlers → Filesystem watcher: starts watcher
backend/sockets/handlers.js - Socket event handlers → Yjs synchronization: initializes
backend/sockets/handlers.js - Socket event handlers → WebRTC signaling: initializes
backend/sockets/handlers.js - Socket event handlers → PTY terminal service: dispatches terminal
backend/sockets/handlers.js - Socket event handlers → Debug service: dispatches debugging
backend/sockets/handlers.js - Editor and files → Yjs synchronization: syncs edits
- Yjs synchronization → Workspace records: stores CRDT state
- WebRTC signaling → Peer browser: relays signaling
- Terminal state → PTY terminal service: uses PTY
- Execution routes → Sandboxed execution: runs code
backend/routes/execution.js - Sandboxed execution → Docker sandbox: executes sandboxed
- AI routes → Gemini AI service: delegates
backend/routes/ai.js - Gemini AI service → Google Gemini: requests assistance
- Workspace disk sync → Filesystem watcher: supports sync
backend/services/fileWatcherService.js - Filesystem watcher → Workspace records: updates from disk
backend/services/fileWatcherService.js - Workspace disk sync → Workspace records: syncs files
- Socket event handlers → Redis: scales sockets