Bento Spaces documentation
Domains and surfaces
Status: the public host map is settled on bentospaces.com. The static UI, API, Studio, Manage, Marketplace and status page are built; www is a 301-only site. status and staging still need their IIS bindings and certificates (they currently fall through to an expired publish.releasefor.com certificate). The split deployment is the contract (static shell + API, CORS, cookie domain — see 17 — Split deployment). Manage has tabs for defaults, publishers, the market, reports, suggested and billing.
This document is the source of truth for public hostnames. Keep it and the deployment configuration in sync.
Host map
| Host | Audience | Responsibility |
|---|---|---|
bentospaces.com | the person | the webtop at /preview during launch, plus the static /docs and /developer pages; the root is the coming-soon page |
www.bentospaces.com | the person | 301 to the apex; never a second origin |
developer.bentospaces.com | widget creator | the Studio workspace: drafts, test bench, private test installs, versions, submissions, feedback/bugs, warnings and API keys |
api.bentospaces.com | all clients | the shared JSON API; the only door to stored data |
manage.bentospaces.com | operator | clients, groups, plans, publishers, verification, reports, moderation and takedowns |
marketplace.bentospaces.com | public | catalog and widget manifests; the canonical registry.json is served by the API |
staging.bentospaces.com | operator/testers | pre-release UI; never production customer data |
api.staging.bentospaces.com | staging UI | staging API with its own storage and its own session cookie |
status.bentospaces.com | public | static status and incident page |
The user experience, developer workspace, management console and marketplace are separate front ends. They are not separate backends.
Staging is the exception that needs its own API origin. A cookie scoped to .bentospaces.com is sent to every subdomain, so a staging UI and a staging API must set their own Auth:CookieDomain=.staging.bentospaces.com and a distinct Auth:CookieName; otherwise a staging sign-in can overwrite the production session.
Boundaries
- The API is the contract, not the store.
App_Datais storage. No front end reads - files directly.
- Studio belongs to
developer.bentospaces.com, not the root webtop. - Docs and the developer landing page are apex paths:
bentospaces.com/docsand bentospaces.com/developer. They are static pages, not separate origins.- The marketplace is a registry with a catalog, not a new widget runtime. The webtop
- installs from
https://marketplace.bentospaces.com/registry.jsonlike any other registry. - Manage is operator-only, cross-tenant, and audited. Personal account settings stay in
- the webtop unless a personal management console is added later.
- Display and share are paths, not subdomains:
/display/{token}and/v/{token}. - Staging and status are outside the app data plane. Staging has its own API and storage;
- status is static. Neither is an origin for production CORS.
- Desktop, mobile and TV are clients, not hosts. They call
api.bentospaces.com.
bentospaces.com ───────────┐
developer.bentospaces.com ─┼──> api.bentospaces.com ──> App_Data
manage.bentospaces.com ────┤
marketplace.bentospaces.com┘
Authentication and CORS
Two sessions, deliberately:
- User session for
bentospaces.com,developer.bentospaces.comand manage.bentospaces.com. The UI callshttps://api.bentospaces.comdirectly: the session- cookie is scoped to
.bentospaces.com,SecureandSameSite=Lax, and the API allows exactly - those origins with credentials. The hosts are same-site, so no
SameSite=Noneis required. - Admin session for
manage.bentospaces.com. It uses the normal account session plus the X-Manage-Sessionheader as a CSRF guard;/api/admin/*must not accept a user session. A- short-lived admin token is preferred for automation.
- CORS is an exact origin allowlist with
Access-Control-Allow-Credentials; no wildcard. - Marketplace is read-only and only needs its origin for the public registry.
- No UI host proxies
/api. The API is the one public contract; the UI hosts are static.
Rules:
HttpOnly,Secure,SameSite=Laxcookies.- Exact
Originallowlists; no*with credentials. - CSRF protection on mutations.
- No share tokens or account secrets in URLs, logs or exported HTML.
/api/v1is the future public/versioned prefix; the current/apistays as the internal- shape until a versioning change is made.
Future clients
One API, several clients:
| Client | Notes |
|---|---|
| Web | the current app; Studio is on the developer host |
| Desktop | webview shell, local cache, keyboard, OS keychain; can use API tokens |
| Mobile | tailored projection, touch, offline queue |
| TV | read-only, remote navigation, large type; display pairing |
Per-device settings (appearance, orientation, zoom, dock) stay client-side. Space JSON, layouts, widgets and entitlements come from the API.
Personal API tokens (Authorization: Bearer bt_…) with read/write scopes, optional expiry and revocation are built; manage them from the account view. Desktop, mobile and third-party clients can use them now. See Open work for what remains.
Marketplace and publishers
- The marketplace exposes a standard
registry.json; installs remain hash-pinned and show - permissions at install time.
- Publishing is free. Auto-publish runs validation before a release is listed.
- A publisher handle is permanent, and each widget has its own handle. Install ids are
publisher--widget, so developers can own the same widget handle independently.- Releases are immutable and versioned; the personal registry and WidgetMarket are read models
- over them. Tier (
unverified→official) does not gate auto-publish, but the public badge - only renders while the publisher is on the Publisher plan.
- Publisher states: unverified, verified, trusted, official; partner is a separate commercial
- plan, not a trust tier and not a ranking purchase.
- Enforcement states: under review (installs paused, listings searchable), banned (removed,
- existing marketplace widgets show a permanent warning). The current moderation controls expose
active/suspended/banned; suspended/banned hides registries and blocks releases.- Reports, warnings, moderation and publisher verification live on
manage.bentospaces.com. - A reader report about a market release lands in the operator queue; resolving or dismissing it
- notifies the reporter. The publisher never sees who reported.
- Bugs and suggestions go to the developer workspace; they are not moderated by the platform.
Related plans
- Connectors own base URLs, tokens and device IPs; widgets reference a connector and a
- path/entity. Secrets live in an encrypted vault, never in a widget or a share/export. The
- first slice and the multi-device supervisor are built — see Connectors.
- Gree bridge: a local LAN service exposes JSON (
/api/state,/api/power); the first - target is
192.168.0.110. Do not expose it on a public IP; use Tailscale/Cloudflare Tunnel - for remote access. A multi-device Bento Bridge is the user-facing product later.
- Home Assistant is a future connector, not the current Gree path.
Superseded ideas
/manage.app/as a path — replaced by the subdomains above.- Studio at
bentospaces.com/studio— moved todeveloper.bentospaces.com. - A raw public IP for the Gree bridge — rejected; use a tunnel and a token.
Open decisions
The actual root domain name.Resolved:bentospaces.com.Whetherdeveloper.bentospaces.comalso hosts docs/API keys, or those get a separate host.- **Resolved: public docs live at
bentospaces.com/docs, the “what is a developer” landing page at bentospaces.com/developer, and the working Studio atdeveloper.bentospaces.com.**- Whether personal account management stays in the webtop or gets a personal console.
- Email: deferred; no mailboxes yet. In-app notifications stay as they are, and VAPID uses
https://bentospaces.comas its contact until an email domain exists.Single .NET host with host-based routing, or separate deployments per host.**Resolved:- separate deployments.** The webtop and marketplace are static; the API and manage are their
- own services. See 17 — Split deployment.