How gopichand577/peaklyy_forge works
Peaklyy Forge is a browser-based coding IDE and online judge. Users edit projects in the frontend, run code through HTTP or interactive WebSockets, and can practice problems, submit solutions, review results, or inspect execution metrics. The graph separates frontend workspace and practice flows from backend execution, judging, and observability. Some UI and server relationships are supported only by the README or SOURCE INDEX; those evidence limits are reflected in the citations.
Main entry points: judgeController.js Judge API · api.js API Client · EditorContext.jsx Editor State · index.js HTTP and WebSocket Server
Components 28
IDE Frontend
- IDE Workspace
client/src/pages/Home.jsx - Code Editor
client/src/components/editor/Editor.jsx - Editor State
client/src/context/EditorContext.jsx - Web Preview
client/src/components/preview/Preview.jsx - Terminal Output
client/src/components/console/Output.jsx - API Client
client/src/services/api.js - Terminal Socket
client/src/services/terminalSocket.js
Practice Platform
- Practice Workspace
client/src/components/practice/PracticeView.jsx - Problem Catalog
client/src/components/practice/ProblemCatalog.jsx - Submission History
client/src/components/practice/SubmissionsHistory.jsx
Code Execution
- HTTP and WebSocket Server
server/index.js - Compiler API
server/controllers/compilerController.js - Language Dispatcher
server/services/compilerService.js - Language Runners
server/services/compilers/pythonRunner.js - Interactive Execution
server/services/interactiveExecution.js - Process Runner
server/utils/processRunner.js - Execution Workspaces
server/utils/tempManager.js
Online Judge
- Judge API
server/controllers/judgeController.js - Problem Repository
server/models/problemRepository.js - Problem Catalog Data
server/data/problems.js - Submission Queue
server/services/queueService.js - Judge Engine
server/services/judgeEngine.js - Submission Store
server/data/submissionsStore.js - Draft Store
server/data/draftsStore.js
Observability
- Monitoring Dashboard
client/src/components/monitoring/MonitoringView.jsx - Execution Metrics
server/services/metricsService.js - Monitoring API
server/routes/monitoringRoutes.js
Other components
- Developer
Connections 36
- Developer → IDE Workspace: uses
- IDE Workspace → Code Editor: renders
client/src/pages/Home.jsx - IDE Workspace → Practice Workspace: renders
client/src/pages/Home.jsx - IDE Workspace → Monitoring Dashboard: renders
client/src/pages/Home.jsx - Code Editor → Editor State: reads and updates
client/src/components/editor/Editor.jsx - Web Preview → Editor State: reads workspace
client/src/components/preview/Preview.jsx - Editor State → API Client: calls
client/src/context/EditorContext.jsx - Editor State → Terminal Socket: opens session
client/src/context/EditorContext.jsx - Editor State → Terminal Output: updates output
- API Client → HTTP and WebSocket Server: HTTP requests
- Terminal Socket → HTTP and WebSocket Server: WebSocket session
- HTTP and WebSocket Server → Compiler API: mounts routes
server/index.js - HTTP and WebSocket Server → Judge API: mounts routes
server/index.js - HTTP and WebSocket Server → Interactive Execution: dispatches sessions
server/index.js - Compiler API → Language Dispatcher: executes code
server/controllers/compilerController.js - Language Dispatcher → Language Runners: dispatches by language
server/services/compilerService.js - Language Runners → Process Runner: runs subprocesses
server/services/compilers/pythonRunner.js - Language Runners → Execution Workspaces: creates workspaces
server/services/compilers/pythonRunner.js - Interactive Execution → Process Runner: runs subprocesses
server/services/interactiveExecution.js - Interactive Execution → Execution Workspaces: creates workspaces
server/services/interactiveExecution.js - Compiler API → Execution Metrics: records executions
server/controllers/compilerController.js - Practice Workspace → Problem Catalog: presents problems
- Practice Workspace → API Client: requests practice data
- Judge API → Problem Repository: loads problem data
server/controllers/judgeController.js - Problem Repository → Problem Catalog Data: reads catalog
server/models/problemRepository.js - Judge API → Submission Queue: enqueues evaluations
server/controllers/judgeController.js - Submission Queue → Judge Engine: runs evaluation
server/services/queueService.js - Judge Engine → Process Runner: runs test cases
server/services/judgeEngine.js - Judge Engine → Execution Workspaces: creates workspaces
server/services/judgeEngine.js - Judge API → Submission Store: reads and saves submissions
server/controllers/judgeController.js - Judge API → Draft Store: reads and saves drafts
server/controllers/judgeController.js - Submission History → API Client: requests history
- Judge API → Execution Metrics: records judge outcomes
- Monitoring Dashboard → API Client: requests metrics
client/src/components/monitoring/MonitoringView.jsx - API Client → Monitoring API: requests monitoring
- Monitoring API → Execution Metrics: reads metrics
server/routes/monitoringRoutes.js