CxWebApp - macOS shell + swift-app wired to CxLLM-SDK
|
Some checks are pending
build-and-push / image (push) Waiting to run
- All 14 panes rewritten with rich controls: KPIs, sparklines, meter gauges, presets, history sidebars, search/filter, bulk actions, schema-driven forms, copy buttons, auto-refresh. - Backend /api/system enriched with cpu_count, rss_bytes, mem_total, mem_used_pct, loadavg[], user/system CPU times, max_rss_kb. - CSS additions: .meter/.gauge, .seg, .chip(s), .spark, .slider, .dl, .link-card, details.card-d plus utility classes. - ui.js helpers: copyToClipboard, withCopy/bindCopyButtons, sparkline, meterRow, fmtBytes/fmtNum, historyStore, inputFromSchema, collectSchemaForm. - Files pane added; iCloud duplicate '*2' files removed. |
||
|---|---|---|
| .gitea/workflows | ||
| compose | ||
| include | ||
| share/cxai-mac | ||
| src | ||
| static | ||
| swift-app | ||
| .dockerignore | ||
| .gitignore | ||
| CMakeLists.txt | ||
| Dockerfile | ||
| README.md | ||
CxWebApp
C++ web application using Crow framework, built with CMake and Xcode.
Prerequisites
- macOS with Xcode and command-line tools installed
- CMake 3.22+ (
brew install cmake)
Build with Xcode
# Generate Xcode project
cmake -B build -G Xcode
# Open in Xcode
open build/CxWebApp.xcodeproj
Build and run the CxWebApp scheme in Xcode (⌘R).
Build from command line
cmake -B build
cmake --build build
./build/CxWebApp
Usage
Open http://localhost:8080 in your browser.
API Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/health |
Health check |
| GET | /api/items |
List all items |
| GET | /api/items/:id |
Get item by ID |
| POST | /api/items |
Create item |
| DELETE | /api/items/:id |
Delete item |
Example
# Create
curl -X POST http://localhost:8080/api/items \
-H "Content-Type: application/json" \
-d '{"name":"Test","description":"A test item"}'
# List
curl http://localhost:8080/api/items