AW

avansaber/webclaw

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

18 stars 质量 56 趋势 22GPL-3.0

Webclaw: the auto-generated web UI for ERPClaw, the AI-native ERP. Builds its screens from the modules you install.

概览

The universal web dashboard for OpenClaw skills. One interface for every skill — zero per-skill custom code. Webclaw reads your installed skills' SKILL.md files and automatically renders forms, data tables, charts, and dashboards. Install it once, and every skill you add gets a browser UI instantly. - — reads SKILL.md metadata to generate forms, tables, and detail views automatically - — DataTable, FormView, DetailView, ChatPanel, ChartPanel, KanbanBoard, CalendarView, TreeView - — access tokens (15 min) + refresh tokens (7 days, httpOnly cookies) - — permission checks before every skill action - — context-aware assistant that understands which skill you're viewing - — card-based layouts on small screens - — one-command SSL setup - — all mutating actions logged - Python 3.10+ - Node.js 20+ - npm - nginx - certbot - git The easiest way to install Webclaw is through OpenClaw: This runs scripts/check_deps.sh (verifies prerequisites) then scripts/install.

README

以下为原文 README 节选,完整内容请查看原文。

WebClaw — Turn Any Skill Into a Website

The universal web dashboard for OpenClaw skills. One interface for every skill — zero per-skill custom code.

Webclaw reads your installed skills’ SKILL.md files and automatically renders forms, data tables, charts, and dashboards. Install it once, and every skill you add gets a browser UI instantly.

Features

  • Schema-driven rendering — reads SKILL.md metadata to generate forms, tables, and detail views automatically
  • 8 generic UI components — DataTable, FormView, DetailView, ChatPanel, ChartPanel, KanbanBoard, CalendarView, TreeView
  • JWT authentication — access tokens (15 min) + refresh tokens (7 days, httpOnly cookies)
  • Role-based access control — permission checks before every skill action
  • AI chat panel — context-aware assistant that understands which skill you’re viewing
  • Mobile responsive — card-based layouts on small screens
  • HTTPS via Let’s Encrypt — one-command SSL setup
  • Audit logging — all mutating actions logged

Architecture

Browser → Cloudflare → nginx (80/443)
                         ├── /api/*  → FastAPI (port 8001)
                         └── /*      → Next.js (port 3000)
Layer Technology
Frontend Next.js 16, React 19, shadcn/ui, Tailwind v4
Backend FastAPI, uvicorn, httpx
Auth JWT (PyJWT), PBKDF2-HMAC-SHA256 passwords
Database SQLite (~/.openclaw/webclaw/webclaw.sqlite)
Proxy nginx with rate limiting
SSL Let’s Encrypt via certbot

Quick Start

Prerequisites

  • Python 3.10+
  • Node.js 20+
  • npm
  • nginx
  • certbot
  • git

Install via OpenClaw

The easiest way to install Webclaw is through OpenClaw:

clawhub install webclaw

This runs scripts/check_deps.sh (verifies prerequisites) then scripts/install.sh (builds everything and starts services).

Manual Install

# Clone the repo
git clone https://github.com/avansaber/webclaw.git
cd webclaw

# Backend
python3 -m venv .venv
.venv/bin/pip install -r api/requirements.txt

# Frontend
cd web
npm install
npm run build
cd ..

# Database
.venv/bin/python3 -c "
import sys, os
sys.path.insert(0, 'api')
os.environ['WEBCLAW_DB_PATH'] = os.path.expanduser('~/.openclaw/webclaw/webclaw.sqlite')
os.makedirs(os.path.dirname(os.environ['WEBCLAW_DB_PATH']), exist_ok=True)
from db import get_connection
conn = get_connection(os.environ['WEBCLAW_DB_PATH'])
conn.close()
print('Database initialized')
"

# Start services (development)
.venv/bin/uvicorn api.main:app --host 127.0.0.1 --port 8001 &
cd web && npm run dev &

Then open http://localhost:3000/setup to create your admin account.

Production Install

For production, use the install script which also configures nginx and systemd:

sudo bash scripts/install.sh

This will:

  1. Create a Python venv and install dependencies
  2. Build the Next.js frontend (npm run build)
  3. Initialize the SQLite database (9 tables)
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add avansaber/webclaw
新手?先看 mcpskill.org 教程 →