Rundown is an app for iPhone, Mac and Apple Watch that shows a feed of items. Each item is a
card: a stock price, a parcel, a pull request, an inbox, the weather — whatever you want to keep an
eye on.
Behind every item is an action: a small JavaScript file that fetches something, keeps state
between runs, decides whether that deserves a notification, and describes its own card. The app
itself knows nothing about stocks or parcels. It provides the sandbox, the schedule, the
notifications and the card, and every action follows the same contract.
It collects nothing about you. The only network traffic is what your actions declare, and your
own server if you pair one. Privacy has the details.
Use the examples
Twenty-six actions come with the app: weather, official warnings, air quality, calendars,
countdowns, departures, flights, fuel, electricity and exchange rates, parcels, football, game
deals, the App Store, Home Assistant, GitHub, stocks, feeds, JSON APIs, web pages, website
uptime, an IMAP mailbox, Steamworks, Steam discussions and Kleinanzeigen. Most need no account
at all.
…or write your own
One file, one class, three methods. Save it in the Actions folder and the card updates within a
second. TypeScript typings check it as you type.
On every screen
The same feed on the Mac, with a sidebar, an inspector and a menu bar item. Widgets on the Home
Screen and the desktop, and an Apple Watch app with a complication.
On time, if it matters
iOS decides when apps run in the background. A small self-hosted server runs the same scripts
on a real schedule and pushes notifications, even when the app is closed.
A script file that defines a class extending Action. It declares its inputs, notification types, schedule and network access, and implements run, onNotify and summary. One action can back many items.
Item
An action configured for one thing, as it appears in the feed: its input values (secrets live in the Keychain), schedule, notification switches, last state and last card. One “Stock threshold” action can back three items: AAPL, MSFT and NVDA.
State
The JSON value run() returns. It replaces the previous one after every successful run, and the next run sees it as previous.
Store
A small key-value area per item for things that outlive a run but don’t belong on the card: history, baselines, “already alerted” flags.
Summary
What summary() returns: a description of the card, which the app draws with native components.
Host
Whatever runs the script: the iPhone or Mac app, rundown-cli, or the companion server. They all follow the same rules.
Load the script in a fresh, isolated JavaScript context.
run(ctx) fetches and returns the new state. This is the only phase with network access.
onNotify(previous, current, ctx) compares the new state with the last one and asks for
notifications.
summary(current, ctx) describes the card.
Commit. State, store and card are saved together, and only then are notifications
delivered. If anything failed, nothing is saved: the card keeps its last good content and
shows the error below it.
Because the card is saved, opening the app never runs JavaScript. The feed, the widgets and the
watch all draw from the last saved cards, instantly.
Menu paths are written the way the app shows them: Settings › Server. Anything in monospace
is a literal: a path, a file, a command or a field of the action contract. On the iPhone, Settings
is under More; on the Mac it has its own window (⌘,).