# WebCode
**Repository Path**: myzonehome/WebCode
## Basic Information
- **Project Name**: WebCode
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-01-15
- **Last Updated**: 2026-01-15
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# WebCodeCli
็ฎไฝไธญๆ | English
๐ Code Anywhere, Anytime | ้ๆถ้ๅฐ๏ผไบ็ซฏ็ผ็จ
Remote AI Programming Assistant supporting full-platform coding experience on phones, tablets, and computers
---
## ๐ Online Demo
Want to try it quickly? No installation required, just visit the online demo:
| Demo URL | Username | Password |
|----------|----------|----------|
| **[https://webcode.tree456.com/](https://webcode.tree456.com/)** | `treechat` | `treechat@123` |
> โ ๏ธ **Note**: This demo environment is for demonstration purposes only. Please do not store sensitive information.
---
## ๐ฌ Community
Join our WeChat group to get the latest updates, report issues, and share your experiences:
---
## โจ Core Features
WebCodeCli is an **online AI programming platform** that allows you to remotely control various AI CLI programming assistants through a web browser, enabling **true code anywhere, anytime** - whether you're on the subway, in a coffee shop, or lounging on the sofa, you can code as long as you have a browser!
### ๐ฏ Main Features
- **๐ฑ Mobile Programming** - Full mobile adaptation, touch optimized, smooth coding experience on phones
- **๐ค Multiple AI Assistant Support** - Integration with mainstream AI programming tools like Claude Code CLI, Codex CLI, GitHub Copilot CLI, etc.
- **โก Real-time Streaming Output** - Instantly see AI's thinking and coding process with typewriter effect
- **๐ Session Workspace** - Each session has an independent working directory with file isolation for security
- **๐จ Code Highlighting Preview** - Monaco Editor code highlighting, Markdown rendering, multi-view switching
- **๐ Secure Execution** - Sandbox environment, command whitelist, injection protection
## ๐ฅ๏ธ Supported AI CLI Tools
### โ
Fully Supported (Streaming JSON Parsing)
| Tool | Command | Features | Status |
|------|---------|----------|--------|
| **Claude Code CLI** | `claude` | MCP server, session recovery, stream-json output, proxy system | ๐ข Enabled |
| **Codex CLI** | `codex` | Sandbox execution, web search, Git integration, JSONL output | ๐ข Enabled |
### ๐ง To Be Extended
| Tool | Command | Features | Status |
|------|---------|----------|--------|
| **GitHub Copilot CLI** | `copilot` | GitHub integration, fine-grained permissions | ๐ก Configured, pending adaptation |
| **Qwen CLI** | `qwen` | YOLO mode, checkpoints, extension system | ๐ก Configured, pending adaptation |
| **Gemini CLI** | `gemini` | Google AI, simple configuration | ๐ก Configured, pending adaptation |
> ๐ For detailed CLI tool usage instructions, please refer to [cli/README.md](./cli/README.md)
>
> ๐ก **Extension Support**: To add new CLI tool adapters, please refer to the existing implementations in the `WebCodeCli.Domain/Domain/Service/Adapters/` directory
## ๐ฑ Mobile Support
WebCodeCli is fully optimized for mobile devices:
- **Responsive Layout** - Adapts to phones, tablets, and desktop screens
- **Touch Optimization** - 44px touch targets, gesture support, press feedback
- **iOS Adaptation** - Solves Safari 100vh issue, adapts to notch screens
- **Portrait/Landscape Switching** - Seamless switching without content loss
- **Virtual Keyboard Adaptation** - Auto-adjusts viewport during input
### Tested Device Support
- โ
iPhone SE / iPhone 12-14 / iPhone Pro Max
- โ
iPad Mini / iPad Pro
- โ
Android phones (various sizes)
- โ
Chrome / Safari / Firefox / Edge mobile versions
## ๐ Quick Start
### Option 1: Docker One-Click Deployment (Recommended)
**No configuration required, start in 30 seconds!** The system will automatically guide you through all configuration on first visit.
```bash
# Clone the project
git clone https://github.com/xuzeyu91/WebCode.git
cd WebCode
# One-click start
docker-compose up -d
# Visit http://localhost:5000
# First visit will automatically enter the setup wizard
```
> ๐ For detailed deployment documentation, see [DEPLOY_DOCKER.md](./DEPLOY_DOCKER.md)
### Option 2: Local Development
#### Requirements
- .NET 10.0 SDK
- Installed AI CLI tools (such as Claude Code CLI, Codex CLI)
#### Installation and Running
```bash
# Clone the project
git clone https://github.com/xuzeyu91/WebCode.git
cd WebCode
# Restore dependencies
dotnet restore
# Run the application
dotnet run --project WebCodeCli
```
The application will start at `http://localhost:5000`, visit `/code-assistant` to start coding!
### Configure CLI Tools
Configure your AI CLI tools in `appsettings.json`:
```json
{
"CliTools": {
"Tools": [
{
"Id": "claude-code",
"Name": "Claude Code",
"Command": "claude",
"ArgumentTemplate": "-p \"{prompt}\"",
"Enabled": true
},
{
"Id": "codex",
"Name": "OpenAI Codex",
"Command": "codex",
"ArgumentTemplate": "exec \"{prompt}\"",
"Enabled": true
}
]
}
}
```
## ๐๏ธ Technical Architecture
```
WebCodeCli/
โโโ WebCodeCli/ # Main project (Blazor Server)
โ โโโ Components/ # Blazor components
โ โโโ Pages/ # Pages
โ โ โโโ CodeAssistant/ # Programming assistant page
โ โโโ wwwroot/ # Static resources
โ โโโ Program.cs # Application entry
โโโ WebCodeCli.Domain/ # Domain layer (DDD)
โ โโโ Domain/
โ โ โโโ Model/ # Domain models
โ โ โโโ Service/ # Domain services
โ โ โโโ Adapters/ # CLI adapters
โ โโโ Repositories/ # Data repositories
โโโ cli/ # CLI tools documentation
```
### Tech Stack
| Category | Technology |
|----------|------------|
| **Frontend Framework** | Blazor Server + Tailwind CSS |
| **UI Component Library** | Ant Design Blazor |
| **Code Editor** | Monaco Editor |
| **AI Features** | Microsoft Semantic Kernel |
| **Data Access** | SqlSugar ORM (Sqlite/PostgreSQL) |
| **Real-time Communication** | Server-Sent Events (SSE) |
| **Process Management** | System.Diagnostics.Process |
## ๐ Features
### Chat & Interaction
- โ
Left-right split layout (top-bottom on mobile)
- โ
Message history
- โ
Streaming output (typewriter effect)
- โ
Shortcut send (Ctrl+Enter)
- โ
Clear session
### Preview & Display
- โ
Code highlighting preview (Monaco Editor)
- โ
Markdown rendering
- โ
HTML live preview
- โ
Raw output view
- โ
Multi-tab switching
### Workspace Management
- โ
Session-isolated workspace
- โ
File upload/download
- โ
File tree browsing
- โ
Auto-cleanup of expired workspaces
### Security Features
- โ
Command whitelist validation
- โ
Input escaping (injection prevention)
- โ
Concurrency limits
- โ
Timeout control
## ๐ Documentation
- [Quick Start Guide](./docs/QUICKSTART_CodeAssistant.md)
- [Code Assistant Usage Guide](./docs/README_CodeAssistant.md)
- [CLI Tool Configuration Guide](./docs/CLIๅทฅๅ
ท้
็ฝฎ่ฏดๆ.md)
- [Mobile Compatibility Guide](./docs/็งปๅจ็ซฏๅ
ผๅฎนๆงไผๅ่ฏดๆ.md)
- [Codex Configuration Guide](./docs/Codex้
็ฝฎ่ฏดๆ.md)
- [Environment Variables Configuration](./docs/็ฏๅขๅ้้
็ฝฎๅ่ฝ่ฏดๆ.md)
## ๐ก Recommended Skills
Excellent Skills resources to enhance AI programming assistant capabilities:
- [**planning-with-files**](https://github.com/OthmanAdi/planning-with-files) - File-based project planning and task management skill
- [**Anthropic Skills**](https://github.com/anthropics/skills) - Official Anthropic Skills collection providing various Claude enhancement capabilities
- [**UI/UX Pro Max Skill**](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) - Professional UI/UX design and development skill
> ๐ก **Tip**: These Skills can be used with AI assistants like Claude Code CLI to enhance code generation, project planning, UI design capabilities, and more.
## ๐ง Use Cases
### 1. Mobile Office
Control AI programming assistants on the server remotely through a browser on your phone, handling code tasks anytime.
### 2. Remote Development
Remotely drive Claude Code or Codex for code development through a web interface, no local development environment installation required.
### 3. Code Review
Use AI assistants to quickly review code, generate test cases, and refactor code.
### 4. Learning Programming
Beginners can learn programming through AI assistants and get instant feedback and suggestions.
## ๐ ๏ธ Advanced Configuration
### Workspace Configuration
```json
"CliTools": {
"TempWorkspaceRoot": "D:\\Temp\\WebCodeCli\\Workspaces",
"WorkspaceExpirationHours": 24,
"NpmGlobalPath": "",
"MaxConcurrentExecutions": 3,
"DefaultTimeoutSeconds": 300
}
```
| Configuration | Description | Example Value |
|---------------|-------------|---------------|
| `TempWorkspaceRoot` | Temporary workspace root directory for storing session-isolated working files | `D:\\Temp\\WebCodeCli\\Workspaces` |
| `WorkspaceExpirationHours` | Workspace expiration time (hours), automatically cleaned after expiration | `24` |
| `NpmGlobalPath` | NPM global installation path (optional, leave empty for auto-detection) | `C:\\Users\\YourUsername\\AppData\\Roaming\\npm\\` or leave empty `""` |
| `MaxConcurrentExecutions` | Maximum concurrent executions | `3` |
| `DefaultTimeoutSeconds` | Default timeout (seconds) | `300` |
> ๐ก **Tips**:
> - **Windows Users**: NPM global path is typically `C:\Users\{username}\AppData\Roaming\npm\`
> - **Linux/Mac Users**: NPM global path is typically `/usr/local/bin/` or `~/.npm-global/bin/`
> - Workspace directory should use absolute path with sufficient disk space
## ๐ค Contributing
Issues and Pull Requests are welcome!
## ๐ License
This project uses the **AGPLv3** open source license.
- Open Source Usage: Follow the [AGPLv3](https://www.gnu.org/licenses/agpl-3.0.html) agreement
- Commercial Licensing: For commercial licensing, please contact **antskpro@qq.com**
For details, please refer to the [LICENSE](LICENSE) file.
---
๐ Let AI be your coding companion, anytime, anywhere ๐