0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
JSON request/response schemas for every /go/ endpoint — what backend implementations must fulfill and what VBService consumers can rely on.
JSON request/response schemas for every /go/ endpoint. VB ships the contracts and a VBService client; you ship a backend that fulfils them. Pick the worker, framework, or service of your choice.
Common conventions
Content type — all requests and responses are application/json. VBService sets the request content-type automatically and parses JSON responses.
Authentication — out of scope for the contract. Inject auth via VB.service.configure({ headers: { Authorization: '…' } }) and validate server-side however you like.
HTTP status codes — standard. 200 on read success, 201 on create, 202 on async accept, 204 when there is no body, 4xx/5xx on errors.
Pagination — query params limit, since where listed. Beyond v1, add cursor-based pagination as needed.
Error response
Every /go/ endpoint uses a single error envelope on non-2xx responses. VBService wraps this in a VBServiceError with { status, body, role, path } for consistent client-side handling.
Error response shape
{"error":"not_found","message":"Subscription sub_abc123 not found","status":404}
error — short snake_case code (not_found, invalid_input, rate_limited, unauthorized, internal)
message — human-readable detail; safe to show in dev consoles, not necessarily user-facing
status — mirrors the HTTP status code for clients that don’t plumb the response status through their wrapper
/go/notify — Notifications
Powers <notification-wc> in panel mode, plus the page-watch subscription flow.
GET /go/notify/messages
Fetch notifications for the current user/session.
Param
Type
Default
Purpose
since
ISO datetime
—
Only return notifications after this timestamp
type
string
—
Filter by type (update, alert, watch, stewardship, …)
Changelog / what’s-new entries in JSON. Same data source as /rss, different format. <notification-wc> can read this for “new release” notifications; build pipelines can render both feeds from one source.
GET /go/feed
Param
Type
Default
Purpose
since
ISO datetime
—
Only return entries after this date
limit
number
20
Maximum items
Response (200)
{"items":[{"id":"v3.0","type":"update","title":"v3.0 — Notification System","body":"New notification panel and service layer.","url":"/changelog#v3.0","date":"2026-04-10"}]}
Relationship to /rss./rss serves the same content as RSS/Atom for feed readers; /go/feed serves it as JSON for the notification panel and any in-app changelog component. Generate both from the same source — a CHANGELOG.md, a CMS, or a database.
Used by page-watch alerts, GoodURL digests, contact-form submissions, and newsletter welcomes. The contract is template-driven: VB names the template, the backend renders it.
VB defines named templates and the data fields each one expects. The backend implements the rendering — pick whichever templating engine you like.
Template
Data fields
Used by
page-watch-update
pageTitle, pageUrl, changeDescription
Page-watch (see page-watch.md)
goodurl-digest
items, score, trend
GoodURL daily digest
contact-form
name, email, message, subject
Contact-form submissions
newsletter-welcome
email, lists
Newsletter sign-ups
Reference implementations
None are required — the JSON shapes above are enough to write your own backend in any language. VB ships starter kits at admin/reference-implementations/:
Dev stub — single Node.js script with in-memory storage, seeded with sample notifications and feed entries. Run it with node admin/reference-implementations/dev-stub/server.mjs and point VBService.configure({ baseUrl: 'http://localhost:3010/go' }) at it. Wide-open CORS so it works from https://vb.test. Available now.
Cloudflare Worker — one Worker, one KV namespace for storage, optional Resend transport for email. wrangler deploy after replacing the KV id. Available now.
Express middleware — one app, four routers, pluggable storage adapter (in-memory default, Postgres example in the README), optional Nodemailer SMTP transport. npm start. Available now.