Bento Spaces docs

Bento Spaces documentation

UI

Two modes

View (default)Edit
Empty containersempty space — invisibledashed outline, +, size badge
Filled containersthe widget, nothing elseno chrome: containers with a widget are locked
Gapsempty spacegap box with + ("Fill this space")
Shelf endsnothing+ at the start and the end
Selection—solid 2px accent outline, resize handles
Idledims/locks per the view linknever dims while editing

The toggle is the grid in the space dock; it becomes a ✓ while editing. Kiosk views have no edit toggle. A fresh browser opens in view; the chosen mode is remembered per device in localStorage (bento.mode.v1), so a refresh keeps whichever mode you were in.

Chrome

No separator lines: brand top-left, a space dock top-centre and an account dock top-right. Both are fixed layers over the canvas. The spaces dock (the letters) sits at the bottom centre. Its position is not a setting: it follows the space's orientation.

The bento canvas is its own layer, full 100vw × 100vh, underneath the docks. A horizontal space is centred; a vertical space starts at the top and scrolls behind the docks. Frame padding follows whichever docks are present, so the first and last squares can always clear them.

DockContentHorizontal spaceVertical space
Spacename + controlstop centrebottom right, vertical (controls open upwards)
Accountnotifications + marketplace + settings + accounttop righttop right, vertical stack
Spacesletters + +bottom centreleft rail, vertically centred

In a vertical space every dock is a vertical strip of the same width: the spaces rail on the left, the account icons stacked at the top right with the avatar nearest the corner (then settings, marketplace, notifications), and the space pill hanging at the bottom right with its controls opening upwards. The space name is dropped there — the pill is just the ⋯ expander with an accessible label — so the rail stays narrow. That keeps the chrome out of the shelf on a smaller screen. Below 720 px the phone toolbar takes over: the space dock expands across the top row and the spaces dock keeps its bottom placement.

The bell shows the unread count. A widget-release notification opens that widget's store page directly; the rest just mark read. Preferences inside the feed can mute feedback, publisher, marketplace or automation notifications; a muted group is not written to the feed.

The two top docks split by ownership. The account dock is always visible. The space dock is anchored by the space name:

ModeSpace dock
View, collapsedSocial ⋯
View, expandedSocial · fullscreen · share · export · pencil · grid
EditSocial · fullscreen · undo · redo · ✓

Settings holds Appearance (auto · light · dark), Offline widgets (last state or an offline screen), Zoom, Connectors and Automations. The Marketplace is an icon next to the settings gear in the account dock (and a button in the widget picker), so it is one click from the board. The settings icon is a gear. Share and export are space actions and live in the space dock.

The Connectors dialog stores a base URL and an optional bearer token, tests the connection and lists configured services. Each connector shows its cached health as Online · 2 min ago or Unreachable · reason, refreshed once per open when older than five minutes. Set up a Bento Bridge takes a bridge URL/token, checks health, lists /api/devices (falling back to /api/state for a single AC) and keeps a working connector. Pair a new bridge shows a one-time code the bridge redeems at startup, and Show deploy files emits docker-compose.yml, devices.json and .env (with an optional cloudflared service) as copyable text. The built-in Gree AC widget uses a connector to read /api/state, show power and temperatures, and send /api/power. It auto-binds when there is one connector, offers a picker when there are several, polls every 60 s and shows a private state in shared views. The HTTP card turns any connector path into labelled dotted-path fields (or inferred leaves), with Home Assistant, Gree AC and Pi-hole templates. The Home Assistant widget shows one entity and toggles lights/switches via homeassistant.toggle.

Orientation per space

A space is horizontal (shelf grows right) or vertical (its 4×4 squares stack downwards, one per screen — the phone layout). Chosen in the space dialog.

In edit mode each 4-box square carries a dashed outline in the gutter (so filled cards cannot hide it) plus a faint tint, and a small round grip handle (below the square in a horizontal space, on its left in a vertical one). Drag the handle onto another square to reorder whole squares; containers ride along. No guide-grid toggle.

Orientation is a device preference, not part of the space record: a 32:9 panel may show a space vertically while the desktop shows it horizontally, with the same account. It lives in device settings next to appearance and zoom, keyed by space id. The document never changes: the same containers and widgets are projected differently, so switching back and forth loses nothing. The chrome follows the projection: horizontal keeps top/bottom docks, vertical turns them into left/right rails.

Zoom

Zoom is one setting for every space on the device, changed only in Settings → Zoom. It is − level + with a miniature shelf that scales live while you press it, so the result is visible before closing the dialog. Each press changes the shelf by 10%, from 60% to 300% (100% is the default).

Creating

Nothing on the shelf is selectable text, in view or edit mode: a double-click on a plus or a label cannot highlight half the board. Links and buttons stay clickable, and real inputs stay selectable. The add buttons are a plain +, not a circled control: one centred in an empty container (the 2×2 size hint moves to its top-left corner) and one bare + at each end of the shelf.

The widget picker lists the account's library — enabled built-ins plus installed widgets — with a search box and a Marketplace button. Installing happens in that popup, so the picker never lists the whole catalog. Removing every widget leaves an empty picker that points at the Marketplace.

  1. Gap + → "Fill this space", grouped:
  2. From next door (copies) · Fill it all (whole, rows, columns, cells, half + quarters) ·
  3. Leave one empty · Half · One cell · Patterns (full-height seams only).
  4. Partial fills leave the remainder as a new gap box.
  5. Empty container + → widget picker, filtered to widgets whose sizes include this
  6. container's size (or fit: stretch). Choosing one fills the slot and locks the container.
  7. Shelf end + → insert a pattern, shifting whole blocks sideways.

Container rules

StateMoveResizeDelete
Emptyyes, inside its own 4×4 block only (clamped at the line)yes, min 1×1, width stops at the square's right edgeyes, leaves a gap
Fillednonono

A container never crosses a block boundary. Inserting a pattern slides whole blocks, so a filled container moves with its block and stays put within it.

Empty containers in view

Empty containers are editor scaffolding. In edit mode they are visible, selectable and keep their place in the grid. In view mode, a shared view and an HTML export:

The stored layout is untouched — leaving view mode brings every empty container back, exactly where it was. Gaps between filled widgets are preserved, because that spacing is part of the composition.

If the shelf is still wider than the screen, it is centred with safe alignment: the left edge stays reachable and the viewport scrolls, instead of clipping both sides to centre an oversized shelf.

Widget visual language

Widget cards follow the same principles as Android home-screen widgets, translated into Bento Spaces' own tokens:

Choosing a tint. Edit space → Widget cards has three choices:

ChoiceResult
Auto (default)each card keeps its per-type accent
Neutralevery card is a plain raised surface, no wash
Colourone swatch tints every card in the space

The choice is stored with the space (widgetTint), so it follows the space across devices, into a share link and into an export.

The HTML export carries data-kind, data-size and the space tint, so an exported card keeps the same tint and padding as the live one.

Configuring a widget

Every container shows a single ⋯ actions button in its top-right corner only in edit mode. It opens the same menu as a right-click:

ItemWhat it does
Configure widget…only for widgets with settings; opens their dialog
Refresh…only for widgets that poll; sets this placement's cadence, with Default naming the widget's own interval (e.g. 10 minutes), plus Off and 30 s–1 h
Duplicateonly on a filled box: copies the widget into a new container (type + props), starting flush at the right end of the shelf. An empty box has nothing to duplicate, so it only offers Delete
Delete / Remove widgetempty box: deletes the box; filled: removes the widget and leaves the box empty

So a tablet can edit without a context menu, and there is one handle instead of three buttons. The button is hidden until the block is hovered, selected or keyboard-focused; on touch it stays visible while editing.

Configuration itself opens a settings dialog — the same shell, fields and Save/Cancel actions as Edit space, so it looks the same everywhere.

Refresh is a placement setting, not a widget-type setting. The menu's Refresh… entry changes only this box, and the value is stored in that placement's props with its space: the same weather card can refresh every minute in one space and every hour in another. Off loads once and stops polling; Default returns to the widget's own interval. Widgets that do not poll (clock, countdown, note, …) do not offer the entry.

The dialog is generated from the widget's config schema: text, number, boolean, select and multiline fields. Widgets without a schema get no gear (the Gree card's gear opens the connector dialog instead). The gear is shelf chrome, so it is absent in view mode, in a shared view, on a paired display and in an HTML export.

Double-click in view mode is deliberately unused. It is reserved for per-widget shortcuts (open a feed item, expand a chart) without colliding with editing. Nothing opens a settings prompt from view mode any more.

Moving widgets

Selection and keyboard

Idle lock

Per view link: after (30 s – 15 min), mode (dim | lock).

Shared view (visitor)

Opening a /v/{token} link shows only the shelf: no brand, no docks, no edit toggle, no selectable text, and a quiet Exit view button so the owner can preview their own link without getting stuck in it. Widgets that were mounted are removed from the DOM by the idle lock; a card asks for the PIN (or "tap to resume" when the link has no PIN). Wrong PIN shows an error and is throttled.

With display: true the same link becomes a device pairing, served at /display/{token}. It is read-only, has no PIN and never idle-locks; the exit button and all edit chrome are gone.

Share dialog (owner)

Opened from the share icon in the space dock.

Panel and mobile

The unit is derived from the viewport, so there is no per-device size setting (the device-wide zoom scales it on top, above):

That keeps a 1440×900 desktop at the design 80 px while a short 32:9 panel fills its height.

Display (paired panel)

Space dock → share → Pair a display returns /display/{token}.

Phone

Square (iPad)

Brand, space and account docks on top, spaces dock below; two blocks visible.

Export (single file)

The export icon in the space dock opens a popup; Download HTML writes one .html file for the current space. The dialog is the future home for export/viewer permissions.

Motion and tone

Calm, dark-first, uniform gap and radius, no drop shadows on containers, outline never border, 120 ms transitions, prefers-reduced-motion honoured everywhere.