Skip to main content

Web Development

Setup

Prerequisites

  • Node.js 22.12 through 24.x
  • Bun 1.0+
  • pnpm 8+

Install & Run

Project Structure

Server Development

Core Services

API Routes

  • HTTP: /api/... (sessions, git, config, worktrees)
  • WebSocket: /ws (binary v3 framing; see docs/websocket.md)

PTY Management

Client Development

Lit Components

WebSocket Client

Terminal Integration

Build System

Development Build

Production Build

Bun Compilation

Testing

Unit Tests

E2E Tests

Performance

Optimization Techniques

Benchmarks

Debugging

Server Debugging

Client Debugging

Common Issues

See Also