adds frontend

This commit is contained in:
2026-05-16 16:36:51 -07:00
parent 40c63dc4e2
commit c00913ec35
17 changed files with 1473 additions and 0 deletions

View File

@@ -51,3 +51,23 @@ For visual debugging, expose VNC from the worker:
```
The worker image starts Xvfb internally, so callers do not need to mount the host X11 socket or override the entrypoint.
## Web UI
The web path is split into three roles:
- `src/frontend-server.mjs` serves the static UI and proxies `/api/*` and `/archives/*` to the backend.
- `src/backend-server.mjs` manages archive lookup, job state, and the archive index.
- `src/worker-server.mjs` runs inside the browser worker container and wraps `archivePage()` over HTTP.
Run the full stack with:
```sh
docker compose -f docker-compose.example.yml up --build
```
Then open `http://localhost:5731`. Direct path archival is supported, for example:
```text
http://localhost:5731/https://example.com
```