Skip to content

Commit d2cd5be

Browse files
dyshayclaude
andcommitted
feat: add web UI with React + Tailwind (--web flag)
- Refactor event channel from mpsc to broadcast for multi-consumer support - Add clap CLI parsing with --web and --web-port flags - Add axum web server serving static files, WebSocket, and REST API - Add Serialize/Clone derives to ProxyEvent and related types - Create React + Tailwind v4 + Vite frontend with: - RequestList sidebar with live status indicators - PromptPanel with collapsible system prompt - ResponsePanel with auto-scroll during streaming - WebSocket hook with auto-reconnect - Bump version to 0.2.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0a1fb2d commit d2cd5be

24 files changed

Lines changed: 6776 additions & 23 deletions

Cargo.lock

Lines changed: 2200 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "proxyclawd"
3-
version = "0.1.3"
3+
version = "0.2.0"
44
edition = "2021"
55
rust-version = "1.93"
66

@@ -21,11 +21,15 @@ crossterm = "0.28"
2121
serde = { version = "1", features = ["derive"] }
2222
serde_json = "1"
2323
uuid = { version = "1", features = ["v4"] }
24-
chrono = "0.4"
24+
chrono = { version = "0.4", features = ["serde"] }
2525
tokio-util = { version = "0.7", features = ["io"] }
2626
tokio-stream = "0.1"
2727
anyhow = "1"
2828
thiserror = "2"
2929
tracing = "0.1"
3030
tracing-subscriber = "0.3"
3131
tracing-appender = "0.2"
32+
clap = { version = "4", features = ["derive"] }
33+
axum = { version = "0.8", features = ["ws"] }
34+
tower-http = { version = "0.6", features = ["fs"] }
35+
tower = "0.5"

frontend/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

frontend/eslint.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
import { defineConfig, globalIgnores } from 'eslint/config'
7+
8+
export default defineConfig([
9+
globalIgnores(['dist']),
10+
{
11+
files: ['**/*.{ts,tsx}'],
12+
extends: [
13+
js.configs.recommended,
14+
tseslint.configs.recommended,
15+
reactHooks.configs.flat.recommended,
16+
reactRefresh.configs.vite,
17+
],
18+
languageOptions: {
19+
ecmaVersion: 2020,
20+
globals: globals.browser,
21+
},
22+
},
23+
])

frontend/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html lang="en" class="dark">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>ProxyClawd</title>
7+
</head>
8+
<body class="bg-gray-950 text-gray-100">
9+
<div id="root"></div>
10+
<script type="module" src="/src/main.tsx"></script>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)