Repository navigation
The first release.
- The logo's home plate is filled rather than outlined, matching the pressbox-darwin and pressbox-android app icons. It is also pressbox-iced's icon on Linux.
Server
-
pressboxd: feeds and users declared in NixOS (
services.pressbox), with shared feeds plus each user's own, and fully separate read and starred state per user. RSS 0.9x/1.0/2.0, Atom and JSON Feed, with conditional requests, backoff and sanitized HTML. -
Full articles:
fullText = trueon a feed fetches each new item's page and keeps its main content, for feeds that only carry a summary. -
Retention by count (
maxItemsPerFeed) and age (maxAgeDays); starred items are always kept. -
Full-text search (SQLite FTS5).
-
Devices pair with a short code that a signed-in device or
pressboxctlapproves; admins can approve for anyone. Pairing requests are limited per client address, withbehindProxyfor reverse proxies. -
HTTP API under
/api/v1, includingGET /api/v1/versionwithout a token. -
systemd integration: notify and watchdog, socket activation, credentials, journald logging, and a backup timer.
-
pressboxctl: status, users, devices, pairing, refresh, backups, OPML export,opml-to-nix, anddiscoverto find a site's feeds. -
A feed keeps its artwork and medium when it answers 304 Not Modified. They were cleared, so feeds that honour their ETag or Last-Modified lost their artwork after the first fetch with nothing new; the upgrade fetches feeds with no artwork in full once to get it back. An RSS feed whose items the two parsers count differently keeps its channel artwork and medium too.
-
Podcasts (Podcasting 2.0). Items carry their audio and video as
media: the RSS<enclosure>(or Atom enclosure link, or JSON Feed attachment), anypodcast:alternateEnclosures (video, other bitrates, HLS), and the episode's duration, artwork, season and episode,podcast:chaptersandpodcast:transcripts. Feeds carry their artwork andpodcast:medium. -
Each user's playback position is kept per item:
PUT /api/v1/items/{id}/position, returned asposition. Item lists takemediaandin_progressfilters. -
GET /api/v1/items/{id}/chaptersand/transcriptread an episode's chapters file and best transcript (JSON, WebVTT, SRT, HTML or text) into one JSON shape each, so clients don't parse them; files are kept for a week. -
An Up Next queue per user:
GET /api/v1/queuelists the episodes to play next, andPUT /api/v1/queuereplaces it with a list of ids, which is how clients add, remove and reorder. Marking an item read takes it out, and queued episodes are kept from pruning. Database migration 9 adds the table. -
Database migration 7 adds the columns and a table for those files, and 8 fetches every feed in full once, so episodes stored before the upgrade get their media.
-
Item lists page by cursor:
GET /api/v1/itemstakescursorand returnsnext_cursor, which stays fast deep into a list (a page after 4,900 items: 7.6 ms to 0.3 ms).offset/next_offsetstill work for older clients. -
API responses are compressed (gzip, brotli) when the client accepts it.
-
Feed parsing, sanitizing and database work run off the async runtime, so a large feed or a long write no longer holds up API requests.
-
Full articles are fetched in the background, at most four feeds at once, instead of holding a feed-polling slot until every page has loaded.
-
Feed and article bodies are cut off at their size limit as they download, even without a
Content-Length. -
Entries unchanged since the last fetch are no longer re-sanitized (a new database column records each one's digest as sent), and per-feed pruning only runs when something was added or
maxAgeDaysis set. -
POST /api/v1/items/read-allmarks a whole list read in one request (any filters, search included), or only from a given item down. -
A socket from systemd that isn't a TCP stream (
ListenDatagram=, say) is refused at startup with a clear message, instead of failing on the first connection. -
Feeds report
episodesandunread_episodes: how many of their items, in all and unread, are podcast episodes (have media). Clients use them to show podcasts, news or both. -
Titles keep text that only looks like a tag. Every
<...>was removed, so "Why Vec beats LinkedList" was stored as "Why Vec beats LinkedList" and "a < b and c > d" as "a d". Atom titles now follow theirtype, JSON Feed titles are kept as written, and RSS titles (and chapter and enclosure titles) lose only lowercase HTML tags such as<b>or<em>. Items stored before this release are corrected on the first fetch after upgrading. -
An item's
urland a feed'ssite_urlare absolutehttp(s)URLs or left out, as media URLs already were. A feed could putjavascript:orfile:links there, which clients pass to the browser orxdg-open. -
A feed that lists more entries than
maxItemsPerFeed(a long-running podcast, say) no longer has the older ones stored, counted as new and pruned again on every fetch. They also showed as unread for a moment each time. -
Giving a feed a new id in the configuration (same URL) renames it. It used to add the new id and keep the old one as a removed feed while it had starred items, which were then listed twice.
-
The URLs feeds supply (article pages for
fullText, podcast chapters and transcripts) are only fetched from public addresses, by name, by address or after a redirect, so a feed cannot make pressboxd send requests to the machine it runs on or to the local network.fetchPrivateAddresses = true(fetch_private_addressesinpressbox.toml) lifts this for feeds on your own network. Feeds themselves are still fetched from wherever theirurlsays. -
A feed whose entries cannot be stored (a full disk, say) backs off like any failing feed, with the reason as its error. It used to stay due, so its server was asked again every second for as long as storing failed. If not even that can be recorded, the scheduler waits a minute before trying again.
-
POST /api/v1/refreshandpressboxctl refreshleave alone feeds fetched within the last minute, and failing feeds fetched within the last ten, so a client that refreshes often (or a failing feed that asked for a pause withRetry-After) does not have every feed fetched again each time. -
The transcript served for an episode is one in the show's language when there is one, rather than the best format in any language. A
podcast:transcriptwithout alanguagegets the channel's as itslang, as the specification says, and those are listed first.
Desktop client
-
Up Next: the server's queue in the sidebar, Add to Up Next and Play next on episodes (
a,n), ↑ and ↓ (J,K) to reorder, and the next episode starts when one ends. -
Plays podcasts with GStreamer: audio in the background, video above the article, with a player bar (progress, chapters, skip, speed without pitch change), clickable chapters and a transcript that follows playback. Positions sync with the server and episodes played to the end are marked read. Appears in the system's media controls (MPRIS, macOS Now Playing). The Nix package carries the GStreamer plugins it needs.
-
pressbox-iced, a desktop reader built with iced 0.14 (clients/iced): sources with unread counts (unread, all, starred, tags, feeds), the item list with search and paging, and the article with star, read/unread and open in browser. Pairs itself, or uses the TUI'sclient.jsonand token; can approve other devices. Birdland colors, following the system's light or dark mode. Packaged with a desktop entry; Home Manager installs it withprograms.pressbox.desktop.enable. -
A server address that isn't one (
http://bad host) is reported when you press Pair. -
Saving a token over an existing token file closes it to other users (mode 0600); the mode was only set when the file was created. The same goes for
pressbox pairin the terminal client.
Terminal client
-
pressbox, a terminal reader (ratatui). -
Up Next, a row under Starred that lists the server's queue:
aadds an episode or takes it out,nplays it next,J/Kreorder, and the next episode starts when one ends. -
Plays podcasts in mpv:
pplays or pauses,Vplays the video,xstops,,/.seek,[/]move between chapters and-/+change the speed. The position syncs with the server, so playback resumes on any client, and an episode played to the end is marked read. The reader lists chapters andtshows the transcript.client.json(and Home Manager) can set theplayer. -
Pages by cursor, falling back to offsets with an older server; asks for gzip responses. Loading more items no longer repeats the first page.
-
Mmarks the selected item and every item below it read, including ones not loaded yet. -
ucycles unread, all and read items, so read posts can be listed on their own. -
mpv's control socket is made in
$XDG_RUNTIME_DIR, which only you can reach, instead of the shared temporary directory (still the fallback when it is unset).
Project
-
Licenses: server AGPL-3.0-only, clients GPL-3.0-only, logo CC-BY-SA-4.0; REUSE compliant.
-
Checks: NixOS and Home Manager module tests, a NixOS VM test, treefmt and reuse lint;
cargo denyin CI. -
SECURITY.md: how to report a vulnerability privately, and what's in scope. -
just releasemakes a release from a clean, pushed master: it checks that the changelog entry forversioninCargo.tomlis dated, runsjust verify, tags and pushesvX.Y.Z, and publishes the GitHub release with the entry as its notes.