Bento Spaces docs

Bento Spaces documentation

Open work

Status: 2026-12-03. This is the live backlog: if an item is not here, it is either built or not agreed. Update this file in the same change that closes an item.

The P0–P6 shelf, shell, widgets, sharing, registries, modules, connectors, automations, surfaces, Studio publishing, WidgetMarket, feedback, reports, notifications and the device-wide zoom are built and covered by node --test tests/*.test.js, scripts/api-smoke.mjs, scripts/billing-smoke.mjs and the 30 browser suites.

Intake and scope rules

Scope map:

ScopeCanonical doc
Access, tokens, sessionsDomains and surfaces · Security · API
Commercial, plans, push, analyticsCommercial · P7 in Roadmap
Connectors and bridgeConnectors
Studio and publishing18 — Studio
Widget catalogue14 — Widget catalogue
UI and interactionUI

Inbox (untriaged)

Raw ideas land here with a date and one line. Triage into a scope below before promoting one into the priority order; nothing here is a commitment to build it.

Priority order

  1. Live Paddle account and sandbox keys (P7)
  2. Connector and Bento Bridge gaps
  3. Widget catalogue
  4. Verification gaps

1. API tokens and the client gate ✅ done (2026-11-29)

Personal Bearer tokens with read/write scopes, optional expiry, hashed at rest and revoked from the account dialog. api-smoke covers create/list/use/read-only/revoke and the shell suite covers the UI. Device-specific rotation policy is still open, but clients can authenticate now.

2. Manage admin session ✅ done (2026-11-29)

The console signs in with an account listed in Manage:Operators; writes send X-Manage-Session: 1 as a CSRF guard. Manage:Token remains for automation. Sign-out uses the normal session, login keeps the account throttle, and api-smoke covers operator, non-operator and machine-token paths.

3. Billing, plans and the publisher plan (P7)

See Commercial and Roadmap.

3a. Plans and entitlements ✅ done (2026-11-29)

PlanCatalog owns Free/Plus/Publisher; /api/me returns entitlements, plan status and readOnly; space and wallpaper limits use it server-side, and a lapsed paid plan keeps its data but is read-only. An operator changes a plan with PUT /api/manage/accounts/{username}/plan. Covered by api-smoke.

3b. Provider adapter and fake checkout ✅ done (2026-11-29)

POST /api/billing/checkout creates a user-bound checkout, the disposable-storage fake provider activates the plan, and POST /api/billing/webhook applies normalized provider events idempotently by eventId. The account dialog offers upgrade/renew buttons when checkout is available. api-smoke and the shell suite cover it.

3c. Paddle adapter ✅ done (2026-11-30)

Paddle is the chosen merchant of record. Billing:Provider=paddle creates a hosted checkout with the API key, verifies Paddle-Signature (HMAC-SHA256 over {ts}:{raw body}, five-minute window) and normalizes subscription.* into the existing event contract. The provider subscription is persisted, so a renewal that carries only the subscription id still resolves the account. Renewals extend the period, past_due is read-only and a cancellation keeps access to the paid period end. scripts/billing-smoke.mjs runs the whole path against a local Paddle mock; api-smoke keeps covering the disposable fake.

3d. Live Paddle account — open

Invoices, receipts, refunds and cancellation now stay in Paddle: the account dialog's Manage billing button asks the server for a short-lived customer-portal session for the account's own customer id. Grandfathering is a policy, not a migration: a new price id does not touch existing subscriptions, and the bought price id is recorded on the subscription.

The paid verified badge is done: /manage still decides verification, but the check only renders while the publisher is on the Publisher plan. A lapse hides the badge and keeps the record.

The go-live check is built: /manage has a Billing card with the provider, sandbox/live, key and webhook state, both price ids, subscription/event counts and a Verify prices call, so a bad price id fails in the console instead of at checkout. The operator steps for the sandbox are in Paddle sandbox runbook.

Acceptance

4. Push notifications ✅ done (2026-11-29)

Self-hosted Web Push with no third-party SDK: VAPID keys are generated on the host, a browser subscription is stored per device, and release notifications are encrypted per RFC 8291 and sent to every subscribed browser. The bell gains a Browser notifications toggle and a Send test button; the service worker shows the OS notification and focuses Bento Spaces on click. Real delivery was verified in Firefox on macOS against Mozilla's push service.

Acceptance

5. Publisher analytics ✅ done (2026-11-29)

GET /api/studio/analytics and the Studio section show aggregate installs, version spread and last-install date per publisher widget. Counts come from installed libraries, expose no reader identity, and require the Publisher plan. api-smoke covers the aggregate and the 403 gate.

6. Connector and Bento Bridge gaps

From Connectors:

7. Studio gaps ✅ done (2026-11-29)

Verification evidence, decision history and module asset uploads are built. Up to five text assets (1–32 KB each, 96 KB total) ride inside the immutable release and reach the module as ctx.asset(name); the Studio editor bundles files into the draft and the validator runs on the client, the server and check-widgets/api-smoke. No Studio gaps remain.

8. Widget catalogue

9. Verification gaps

Parked by request

Recently done (do not reopen)