Local Daemon
The weblayer binary can run the local REST and WebSocket daemon used by the
browser extension.
The daemon binds to 127.0.0.1:17891 by default. Override the bind address with:
Local Data
Encountered site content is stored in per-site SQLite databases under the WebLayer data directory. X.com content is stored at:
Override the root data directory with:
For development, reset the X.com database on startup with:
Logging
Daemon output goes through structured logs on stdout. The default log level is
debug; override it with RUST_LOG.
Incoming posts are not logged by default. To enable captured-content log events:
Enable an X.com page overlay with daemon-side debug counters:
Endpoints
GET /healthGET /dashboardGET /dashboard/rules/{id}GET /v1/eventsPOST /v1/dom/analyzePOST /v1/dom/feedbackGET /v1/content?site=x.com&q=codexGET /v1/content/annotations?site=x.com&storageKey=x:id:123POST /v1/content/annotations?site=x.comGET /v1/content/stats?site=x.comGET /v1/feedback?site=x.comGET /v1/rule-suggestions?site=x.comGET /v1/rules?site=x.comPOST /v1/rules?site=x.comGET /v1/rules/{id}?site=x.comPOST /v1/rules/{id}?site=x.comPOST /v1/rules/{id}/status?site=x.comGET /v1/rules/{id}/catches?site=x.comGET /v1/rules/{id}/validate?site=x.com