How debojit-dev0/webcrunner works
Web C Shell is a browser-based C editor and terminal backed by a workspace-restricted Node/Express server. Users edit and save C files, browse the workspace, and issue shell commands; run compiles a selected C source with gcc, then streams program output and accepts stdin through the terminal. The README documents sidebar navigation, command history, shell utilities, and sandboxed paths. The server and frontend excerpts are partial, so the map shows documented capabilities without inferring finer internal wiring; the root-level files are used as the primary implementation.
Main entry points: server.js HTTP server and routes · index.html Editor and terminal view · script.js Editor, sidebar, terminal · workspace Sandboxed project files
Components 15
Browser interface
- Editor and terminal view
public/index.html - Editor, sidebar, terminal
public/script.js - Interface styling
public/style.css
Workspace API
- HTTP server and routes
server.js - Save, open, list files
server.js - Sandbox path and cwd
server.js
Command execution
- Command dispatch
server.js - Native shell built-ins
server.js - Host shell utilities
- C run handler
server.js - gcc compiler
- Compiled C process
- Interactive process control
server.js
Workspace state
- Sandboxed project files
workspace
Other components
- Developer
Connections 20
- Developer → Editor and terminal view: uses
- Editor and terminal view → Editor, sidebar, terminal: loads
- Editor and terminal view → Interface styling: styles with
- Editor, sidebar, terminal → HTTP server and routes: calls API
- HTTP server and routes → Editor and terminal view: serves UI
- HTTP server and routes → Save, open, list files: routes files
- Save, open, list files → Sandboxed project files: reads and writes
- Save, open, list files → Sandbox path and cwd: resolves paths
- HTTP server and routes → Command dispatch: routes commands
- Command dispatch → Native shell built-ins: dispatches built-ins
- Command dispatch → Sandbox path and cwd: checks sandbox
- Command dispatch → Host shell utilities: runs other commands
- Native shell built-ins → Sandboxed project files: operates on files
- HTTP server and routes → C run handler: routes run requests
- C run handler → Sandbox path and cwd: resolves source
- C run handler → Sandboxed project files: reads C source
- C run handler → gcc compiler: compiles source
- C run handler → Compiled C process: starts executable
- Editor, sidebar, terminal → Interactive process control: polls, inputs, stops
- Interactive process control → Compiled C process: controls stdin and process