- Browse a library/catalog and download books on the reader, no phone needed: device.json catalog
- Send something to a server when a book is closed / the reader sleeps: device.json events
- Fetch a fresh sleep-screen image every night: device.json events -> sleep.enter download
- A settings form, sign-in page, or any custom UI: plugin.js
- Convert formats (HTML->EPUB), sign requests (OAuth 1.0a), scrape HTML: plugin.js
- Tools that work on files already on the SD card (rename, organise): plugin.js with "mount": "files"
- Let a script or app on another computer trigger plugin actions: plugin.js + job queue
Rule of thumb from the firmware authors: if the service is "log in, list a JSON/XML catalog, download files", put it on the device. If it needs computed request bodies or format conversion, do it in the browser.