Skip to content

srdjan/uiclaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uiclaw

Browser UI app for zigclaw, hosted on top of zigttp SSR runtime.

What it does

  • queue-first UX for async requests
  • live ops snapshot panel (/v1/ops?view=state)
  • queue listing with filter + cancel
  • run summary inspection (/v1/runs/<id>/summary)
  • server-side token proxy: browser never receives gateway bearer token

Prerequisites

  • ../zigclaw built and gateway running
  • ../zigttp available locally
  • gateway token file at ../zigclaw/.zigclaw/gateway.token (or set env override)

Start zigclaw gateway

cd ../zigclaw
zig build
zig-out/bin/zigclaw gateway start --bind 127.0.0.1 --port 8787 --config zigclaw.toml

Run uiclaw

cd ../uiclaw
./scripts/run-local.sh

Then open:

open http://127.0.0.1:8090

Optional overrides

UICLAW_GATEWAY_URL=http://127.0.0.1:8787 \
UICLAW_GATEWAY_TOKEN_FILE=../zigclaw/.zigclaw/gateway.token \
UICLAW_ZIGTTP_DIR=../zigttp \
UICLAW_HOST=127.0.0.1 \
UICLAW_PORT=8090 \
./scripts/run-local.sh

Security model

  • scripts/run-local.sh injects gateway URL/token into a temporary generated handler file.
  • The temporary file is deleted on process exit.
  • Browser requests only hit uiclaw; all gateway calls are server-side via httpRequest(json) native bridge.
  • zigttp outbound bridge is restricted to the gateway host with --outbound-host.

About

Browser UI app for zigclaw, hosted on top of zigttp SSR runtime

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors