Fast, lightweight, and built for modern Vibe coding. Run Claude Code on mobile or desktop, straight from your browser.
WebCode brings the power of Claude Code directly to your browser using WebContainer technology. No installations, no setup hassles - just open your browser and start coding with Claude's assistance in a full-featured terminal environment.
output2_cut.mp4
- π Browser-Based: Runs entirely in your browser - no backend servers required
- π± Cross-Platform: Works seamlessly on desktop and mobile devices
- β‘ Instant Boot: Lightning-fast WebContainer initialization
- π₯οΈ Full Terminal: Complete terminal experience with xterm.js
- π§ Development Ready: Includes package manager support (pnpm)
- π¨ Modern UI: Clean, responsive interface built with React and Tailwind CSS
- βοΈ Edge Deployment: Optimized for Cloudflare Workers deployment
- π Secure: Sandboxed environment for safe code execution
- Frontend Framework: React 19 with TypeScript
- Build Tool: Vite (Rolldown edition)
- Styling: Tailwind CSS v4
- Terminal: xterm.js with WebContainer API
- Container Technology: WebContainer by StackBlitz
- Deployment: Cloudflare Workers with Wrangler
- Development Server: Caddy for local proxying
- UI Components: Radix UI primitives
- Clone the repository:
git clone https://github.com/yourusername/webcode.git
cd webcode
- Install dependencies:
bun install
- Start the development server:
bun run dev
This will start both Vite and Caddy servers concurrently. The application will be available at http://localhost:5173
.
- Open the application in your browser
- Wait for the WebContainer to boot (you'll see a loading animation)
- Once ready, you'll have access to a full terminal environment
- Start coding with Claude Code commands directly in the terminal
The terminal supports standard Unix commands and includes:
- File operations (
ls
,cd
,mkdir
,touch
, etc.) - Text editing capabilities
- Package management with
pnpm
- Git operations
- Custom Claude Code integration
webcode/
βββ src/
β βββ components/ # React components
β β βββ Terminal.tsx # Terminal component wrapper
β β βββ TerminalPage.tsx # Main terminal page
β β βββ ui/ # Reusable UI components
β βββ hooks/ # Custom React hooks
β β βββ useWebContainer.ts # WebContainer management
β βββ lib/ # Utility libraries
β β βββ files/ # File templates (e.g., .jshrc)
β βββ utils/ # Helper functions
β βββ main.tsx # Application entry point
βββ public/ # Static assets
βββ Caddyfile # Caddy configuration
βββ wrangler.toml # Cloudflare Workers config
βββ package.json # Project dependencies
bun run build
- Configure your Cloudflare account:
wrangler login
- Deploy the application:
bun run deploy
bun run preview
bun run dev
- Start development server with hot reloadbun run build
- Build for productionbun run preview
- Preview production build locallybun run deploy
- Deploy to Cloudflare Workersbun run cf-typegen
- Generate Cloudflare types
We welcome contributions! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Follow the existing code style
- Write meaningful commit messages
- Add tests for new features
- Update documentation as needed
- Ensure all tests pass before submitting PR
This project is licensed under the MIT License - see the LICENSE file for details.
- Claude by Anthropic for the AI assistance
- StackBlitz team for WebContainer technology
- The open-source community for the amazing tools and libraries
Powered by WebContainer