Arrange Home and cards
Add plugin cards and shortcuts to Home, resize and move them, and spread them over several pages.
Open Home
Home is the first item in the sidebar and the first screen in Spiti.app and the web app. It shows cards and shortcuts from your plugins on a grid. A Space with no open tabs also shows Home. Press ⌘K and choose Home to go there from anywhere.
A card is a small live view from a plugin, like an iPhone widget: a timer, a count, a chart. Cards update on their own. Click a card to open its plugin's page, or use its buttons to act in place, such as starting a timer. A shortcut opens a plugin's page.
Changes to Home save as you make them. If Home is open in two windows, the other one updates to match.
Add cards and shortcuts
Choose Edit at the top of Home, then Add. The Add to Home gallery lists each plugin's cards with a live preview. Pick a size, then choose Add card. A card with options shows them first, with Add card…. Under Shortcuts, choose Add shortcut to add a plugin's page. Use Search cards and plugins to filter the list.
New items go to the first free spot on the current page. Items fill the grid left to right, top to bottom, with no gaps, and reflow in the same order when you resize the window.
Before any plugin offers cards or a page, Home shows Browse plugins, which opens Plugins, and Add a shortcut.
Move, resize and remove items
Choose Edit to start editing. Items wiggle and show a − badge. Then:
- Move: drag an item. Other items move out of the way.
- Resize: drag the corner handle, which snaps to the sizes the card offers.
- Remove: click the − badge.
- Finish: choose Done or press Escape.
Right-click any item, in or out of edit mode, for its menu: Edit card… to change its options, Resize to Small, Wide or Large, Move to page, Remove and Edit Home. Only the sizes and options a card offers are listed.
Each card keeps its own options, so the same card can appear twice, for example showing two different notes.
| In edit mode | Keys |
|---|---|
| Select an item | Tab |
| Move the selected item | Arrow keys |
| Resize it | 1 Small, 2 Wide, 3 Large |
| Remove it | Delete |
| Undo the last change | ⌘Z |
| Finish editing | Escape |
Undo covers every change since you chose Edit. Press ⌘K and choose Edit Home to open Home ready to edit.
Use several pages
Home can have several pages, like the iPhone Home Screen. Switch pages with the dots at the bottom, a two-finger swipe on the trackpad, or ⌘← and ⌘→.
In edit mode, the Page menu at the top has Add page, Move page left, Move page right and Delete page…. Deleting a page with items asks first; the plugins and their data stay. To move an item to another page, drag it to the edge of the screen and hold, or right-click it and choose Move to page.
When plugins change
- Installing a plugin adds its cards to the gallery, not to Home.
- Removing a plugin removes its items from Home.
- A paused plugin's cards show Paused and keep their place.
- Turning off Cards in a plugin's Surfaces card hides its cards and keeps their places, so turning it back on restores them.
A card that can't load shows Retry. A card button shows a spinner while it runs, a check when it's done, and shakes with a message when it fails.
For plugin authors
Declare card ids and labels under views.cards in spiti.json, then list each card in defineViews({ cards }) with its title, sizes (1x1, 1x2, 2x2), defaultSize, component, and optionally a Zod config schema and samples for the gallery preview. A config field can take its choices from a query with .meta({ options: "queryName" }), which Spiti turns into the Edit card form.
In the component, useCard(config) from @spiti/sdk/ui returns the card's size, measured width and height, and parsed config. Build it with Card from @spiti/sdk/components/card-kit and its blocks (Card.Header, Card.Metric, Card.List with Card.Row, Card.Progress, Card.Chart, Card.Countdown, Card.Button, Card.Empty). Each block measures the space it gets: a list shows the rows that fit, a chart fills what's left, and a progress is a ring in square cards and a bar in wide ones. Spiti draws the frame and the loading, error and paused states. A card can have up to three buttons. Show a card inside your page with <PluginCard card="id" size="1x2" />.