Commit Graph

684 Commits

Author SHA1 Message Date
2faca684da Now Playing: a full view of what is playing (#475)
Tapping the player bar, or Enter on it, opens a sheet over the feeds and the
list: the episode's artwork large, its podcast, its show notes and Up Next.
The bar stays below it with the controls, so there is one set of them rather
than a second kept in step. Chapters are left for #477: nothing reads them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:40:02 +00:00
1fb1edd6b0 Podcasts shelf: your podcasts as their artwork (#474)
A place beside Up Next listing every feed with audio or video as a grid of
its artwork, with how many episodes are new, as Overcast's home screen
does. It is drawn from the feed list the page already holds; the feed list
gains `podcast`, an EXISTS per subscription over enclosures, which stops at
a podcast's first episode and is one index probe for a feed with no files.
Its cost on production's database is not measured: the EXPLAIN was not run.

The iOS app's generated messages (ios/Sources/Wire) are not regenerated:
there is no protoc here. Nothing in the app reads the new fields, and a
proto3 reader skips a field it does not know.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:37:53 +00:00
c65b80a06c Up Next: a queue that plays on by itself (#473)
Playing was one episode at a time: when one ended nothing followed. Up Next
is a per-account queue on the server (table `queue`, GET and PUT
/api/queue), so the phone and the browser share it. The page adds to it from
a row or the reader, reorders it by drag or arrow keys, and plays the next
when one ends; what is playing leaves it as it starts, as Overcast's does. An
episode 90% played leaves it on the server too, which covers the phone
playing on while the page is frozen.

The iOS app is told what follows (`{t:'next'}`, gated on the app saying it
can) and starts it at the end of an episode; the page takes it up through
nowPlaying as it does the car's pick. The Swift is not compiled here.

The page stub answered every unknown address with [], whose `.entries` is
Array.prototype.entries, so the queue read a function as its list; it now
answers /api/queue as an entry list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:31:40 +00:00
2ebe77b21e A search on Postgres starts from your feeds, not every feed's matches (#472)
After #459 a common word still took about 2 s: "apple" matched 61,674
items across every feed on the server, Postgres re-read each to confirm
the trigram match, and only then joined to the 1,151 in the searcher's
own feeds (EXPLAIN on production, 2026-11-17). The subquery
`e.feed_id IN (SELECT ... FROM subscriptions ...)` hid the feed list
from the planner, so the trigram index was always its way in.

Given as `e.feed_id = ANY(ARRAY(SELECT ...))`, the planner sees the
feeds and chooses per search: for "apple" this person's 20,152 items by
entries_seen, count 1.5 s to 0.38 s and the page of 50 1.1 s to 0.52 s;
for "kubernetes" still the trigram index, 21 ms; "the" 141 ms. Only for
a search, so ordinary lists keep their plans, and only on Postgres:
SQLite has no arrays and keeps the IN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:14:16 +00:00
54bfa5faf6 cargo deny passes: the SQLite advisory recorded as assessed (#467)
RUSTSEC-2026-0459 is SQLite before 3.54 returning stale page-cache memory
when it opens a database with a -wal file of another page size, which
needs a crafted pair of files someone else wrote. ipx opens only its own
state.db in its own data directory, and production runs on Postgres.
Its fix, libsqlite3-sys 0.39, is out of reach: sqlx-sqlite 0.9.0, the
latest, pins it below 0.38, and sea-orm 2.0.4 is on the same sqlx.

Ignored in deny.toml with that reason, as RUSTSEC-2026-0293 is, so a
new advisory fails the check again instead of hiding behind this one.
#467 stays open until sqlx can take the fix and the ignore comes out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:08:37 +00:00
9035306e22 A stuck scroll's report says where the drag began and who held it (#450)
Three scroll_stuck reports (2026-11-11, 11-12, 11-16) show a reader that
would not move with nothing wrong in what they record: no layer over it,
nothing inert, no transform, overflow auto. They started on the text (p,
a span in a pre, an image), not the left edge the swipe code cancels.

The report now also says where the finger began (x), how many touchmove
events the page saw during the drag (none would mean the browser kept
the gesture, as a scroller inside the text can), whether the touch was
cancelled, and how long since the reader was last slid across by a
swipe, which is the one thing a swipe changes on it and a suspect for
WebKit losing the scroller. The next report decides the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:39:34 +00:00
b046e66e54 Search reads items' plain text, trigram-indexed on Postgres (#459)
A search on All Subscriptions took 4.5-5 s: the page and its count each
matched lower(title) and lower(description) with LIKE '%q%' over every
entry, a parallel seq scan reading 554k buffers, about 4.3 GB, nearly all
of it descriptions' HTML in TOAST (EXPLAIN on production, 2026-11-14).

entries.search_text holds the title and the text with its markup taken
out (an image's alt and title kept, as Signals read them), lowercased
and cut at 4,000 characters; a pg_trgm GIN index on it keeps a part of a
word finding the word (#296's meaning). Chosen over a trigram index on
the HTML itself, several GB on the shared Postgres, and over full-text
search, which matches whole words only.

A new item gets its search text as it is stored. search.rs fills in the
rest behind the daemon, 500 at a time, and makes the index after,
CONCURRENTLY so scans go on, again if a build was cut off. A scan that
changes an item's title or text clears its search text for that pass to
make again; until then, and for every item stored before this, a search
matches it the old way, through a partial index on the ones without.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:34:01 +00:00
0cafe02599 Dependencies past eight of nine published advisories (#467)
ammonia 4.2.5 (mutation XSS through SVG and MathML, RUSTSEC-2026-0533),
pulldown-cmark 0.13.6 (wikilinks, 0414 and 0433), tokio 1.54.1
(AsyncFd, 0386), and async-compression 0.4.52, which let zstd go to
0.14.4 (0391), with zstd-safe 8.3.0 and zstd-sys (0398, 0403, 0410).

libsqlite3-sys (0459) stays at 0.37: sqlx-sqlite 0.9.0, the latest,
pins it below 0.38, so it waits on sqlx. Production runs on Postgres;
SQLite is the sample compose file's, the tests' and the load tests'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:04:41 +00:00
f652e6906b Swiping between items shows the next one's picture with its text (#471)
The preview a swipe draws beside the reader was built as the drag
began, so its pictures started loading then: its text showed first and
the picture popped in a moment later, flashing and pushing the text
down under the finger. Reported from the iOS app on an item with a
picture at its top.

The pictures of the items either side of the one open are now fetched
and decoded when it opens (a few each, parsed with DOMParser, which
loads nothing itself), so the preview draws them at once. And the end
of a swipe keeps the preview over the reader until the new item's
pictures are decoded, at most 300 ms, instead of swapping in the same
moment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:52:44 +00:00
Ray Slakinski
2b06db9d26 iOS: Sources/Wire regenerated from ipx.proto as of #470, comments only (#469)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:44:39 -05:00
Ray Slakinski
0fe2bf90ab iOS build 15 to TestFlight: protobuf to ipx (#469)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:44:26 -05:00
236bd02d88 Answers in protobuf from generated structs, and the page reads them (#470)
ipx-wire converted every protobuf answer at run time through
prost-reflect and serde_json::Value, so protobuf cost more than the JSON
it replaced: decoding 1,488 feeds took 1.50 ms that way against 0.37 ms
for serde_json and 0.09 ms for prost's own structs, and GET /api/feeds as
protobuf answered about 4 ms after JSON.

build.rs now generates those structs (prost-build from protox's
descriptors, still no protoc). An answer's JSON goes straight into its
struct with serde and out with prost, byte for byte what the runtime
path wrote (a test says so); bodies holding a google.protobuf.Value keep
the runtime path, as they are only ever read. ipx's calls to the
directory and ipx-play build and read the structs directly, through
From conversions beside the directory's own types.

The page asks for protobuf too, to see what it does in practice. It
reads it with web/src/wire.ts, about seventy lines and no library:
protobufjs alone was larger gzipped than all protobuf saves the page.
build.mts reads the .proto files into a table for it, and the answer
names its message in its Content-Type, so the page keeps no table of
routes. An answer of null stays JSON, since the empty message would be a
feed row of defaults. The offline worker decodes a kept answer to mark
what was read offline, and hands the page JSON.

The decoder's test caught `pos += varint()[0]`, which adds the length
to pos as it was before the varint was read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:21:41 +00:00
Ray Slakinski
baa6661622 iOS app asks ipx in protobuf, not JSON (#469)
The badge's and CarPlay's reads (/api/feeds, the entry lists) and the
player's writes (position, flags) now go as application/x-protobuf, the
messages generated from crates/wire/proto by ios/scripts/proto.sh into
Sources/Wire, committed so the build needs no protoc. SwiftProtobuf is
pinned to the generator's version, 1.41.0, whose code refuses another.

A read whose answer is not protobuf counts as no answer: a server from
before #465 answers JSON whatever it is asked, and JSON can decode as a
message of nothing, which would have set the badge to zero.

The outbox keeps its stored key, `json`, for the body, and marks the
new writes protobuf, so places saved offline by an older build are
still sent, as JSON.

Built for the simulator with Xcode 27.2; not run against a server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:00:10 -05:00
a96be2f14c build-image.sh refuses under 6 GB available, not 9: the cap alone
Tower sat at 8.6-9.1 GB available all evening and no build could start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:35:12 +00:00
c0998f1ac7 Protobuf beside JSON in ipx's, the directory's and ipx-play's APIs (#465); ipx's build touches crates/play (#466)
A client sending Accept: application/x-protobuf gets protobuf, and one
sending Content-Type: application/x-protobuf may send its body so; JSON
stays the default, so the page, the TUI and older iOS builds see nothing
new. ipx's own calls to the directory and ipx-play now go in protobuf.

The handlers are untouched. A new crate, ipx-wire, holds the .proto
files (compiled by protox in build.rs, so no protoc anywhere) and one
layer, negotiate, that converts JSON at the edge through prost-reflect,
by a table of each route's messages. Writing prost structs beside every
serde one would have doubled each type and every handler.

Protobuf cannot tell absent from empty or from null, and the PATCH
bodies depend on that: an Option<Vec> left out leaves the list, an empty
one clears it, and null clears a folder. So a list in a body is a
one-field message (absent or present), and null-to-clear is a
google.protobuf.Value. Numbers in a Value come back whole, or 3.0 would
not read as a usize.

Debug builds convert every JSON answer strictly and answer 500 for a
field missing from the .proto or a route missing from a table; the cargo
tests and the browser suite (125 tests) ran clean that way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:23:06 +00:00
2671d13489 Browser suite: ipxd list, a feed that moves for good, Atom with a bare ampersand (#463)
API coverage 78.0% to 80.0% (9174 of 11467 lines): follow_move and the catalogue's list,
and the parser's retry of an escaped Atom feed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 00:51:04 +00:00
b22016cbe5 Browser suite: feeds in every shape, a feed that starts failing, ipxd user (#463); coverage build's stylesheet named by its own hash (#464)
Atom, RSS with a bare ampersand and the iTunes and Media RSS fields, WordPress.com's posts,
and replies that are no feed are added through the API; a fixture feed turned 404, 403,
402, 500, a sentence, a web page linking its new address, garbled, a redirect loop and a
dropped connection says each, and after a day (error_since set back in the suite's SQLite)
in words, with the page's banner; ipxd user's commands and their refusals. API coverage
76.5% to 78.0%: failure.rs 12% to 91%, parse.rs 56% to 92%, cli.rs 44% to 86%.

#464: with IPX_COVERAGE=1 the page named app.css by the hash of it unminified while the
build wrote it minified. The worker's check from #449 reloaded the page for it, and its
throttle then swallowed the reload the #449 test waits for, which failed in every coverage
run. buildStyle now defaults to the page's choice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 00:12:44 +00:00
eda77e87c7 Ask in the page's own dialog, not confirm(), which the iOS app answered Cancel (#462)
Deleting a downloaded file from the iOS app did nothing: no DELETE reached ipx-web or ipx.
WKWebView answers confirm() Cancel without showing it unless the app implements the panel,
which 614f270 does (#453), but only once the app is rebuilt. ask() is a <dialog> of the
page's own, in the top layer, so it opens over a dialog already up (the file menu, Settings)
and leaves it as it was, and Escape answers it alone. Every confirm() in the page and the
admin page goes through it; the tests answer it rather than the browser's dialog, and the
warning before sharing a feed with its key in the address, untested before, now is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 23:32:15 +00:00
d1ba83bb7a ipx-play's metrics on 9191: 9189 is hnopml's (#458)
5d0ff1a put ipx-play's /metrics on 9189, but hnopml, in the same
compose project, has published 192.168.1.130:9189 since 2026-11-12 and
Prometheus scrapes it there as job="hnopml". Deployed as written,
ipx-play's port would have clashed with it. 9187 to 9190 are ipx, the
directory, hnopml and ipx-web; 9191 is free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:11:51 +00:00
614f270a90 iOS app: the page's confirm() is asked, not answered Cancel (#453)
WebViewController is the web view's WKUIDelegate but had no confirm
panel, so WebKit answered every confirm() false at once and showed
nothing: the page's nine confirm() calls, deleting a file and sharing a
Patreon address among them, could never go ahead in the app. It now
shows an alert with Cancel and OK. With another alert already up it
answers Cancel, as before, since one cannot be presented over the other.
The page has no alert() or prompt(), so those panels are left out.

Not compiled here: the Swift builds only on a Mac with Xcode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:08:43 +00:00
0222c0b69a Artwork that cannot be shown is not fetched again every hour (#448)
/api/art remembered a failed image for an hour, whatever the failure, so
an image that could never pass was fetched again on the next view after
that. In 2026-11-09..13, five images over the 20 MB limit were fetched
146 times, each read 20 MB chunk by chunk before being refused, about
3 GB for nothing; a 400 from b2c-contenthub.com was asked for 34 times.

Now a Content-Length over the limit is refused before the body is read,
and a failure that will still hold tomorrow is remembered for a day: a
4xx other than 408 and 429, or ipx's own refusal (too large, not an
image). Timeouts, 5xx and dropped connections still retry in an hour.

JPEG XL, which shkspr.mobi sends as application/octet-stream, was
refused as not an image; its two signatures are sniffed now, and Safari
shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 04:04:14 +00:00
f9f50fcf07 reap --dry-run says what would go, not that it went (#461)
A dry run printed "deleted <path> (N MB)" for every file and "deleted N
old file(s)" at the end, word for word a real reap, of files it kept:
Reaped and ReapDone carried no flag to say otherwise. Both now carry
dry_run (serde default false, so an older message still reads), and the
words are "would delete".

Found writing the browser suite's first test of retention, which ran on
the daemon's own clock and nowhere in the suite: over a tiny quota, a dry
reap lists the downloads and leaves them, and a reap with no limits
deletes nothing and only tidies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:59:02 +00:00
61c38bacc1 Browser suite: every service's /metrics, scraped as Prometheus does
Nothing in the browser suite asked ipx, the directory or ipx-play for
their metrics, though production's Prometheus scrapes all three every
15 s and the dashboard and alerts go blank if one stops answering. The
suite's servers get metrics ports (8799, 8797, 8790) and one test reads
each gzipped, checks every sample line is one Prometheus can parse, and
looks for the series that show it works: ipx's request histogram with
the route just asked for, the directory's snapshot from ipx, ipx-play's
build. ipx's metrics.rs went from 9% to 86% of lines run by the suite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:58:55 +00:00
373f862588 A page older than its script is loaded again, not run with it (#449)
Safari on a Mac threw at load on 2026-11-10: the script wired #sleep,
which the page it ran in did not have. #sleep and its script came in
together on 11-08, so the page was older than the script. The service
worker answers a navigation it cannot fetch with the page it kept last,
here one from before 11-08, and that page asked for its script by the old
hash; by then the network answered, and Caddy, which ignores ?v=, sent
today's app.js. The worker even kept it under the old name.

Every ?v= is the first 12 hex digits of the file's SHA-256, so the worker
now checks what it fetched against the name. On a mismatch it does not
keep or give the file, and loads the page again from the network, at most
once in 30 seconds so a page still unreachable is not reloaded round and
round.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:46:49 +00:00
abee943bf5 One place to get an episode's file where you are (#457)
Getting an episode onto a phone took two buttons in two states: download
it to the server, wait, then keep it on the device, beside Save to this
computer, Share and Delete, five buttons that did not say where each
copy went. Now a file has one button that brings it to where you are.
On a phone or in the iOS app it ends on the device; when iPX has not got
the file yet, iPX fetches it and the device's copy follows once iPX says
it is done (remembered in localStorage, so a page closed meanwhile
catches up when a list next shows the file). On a computer it has iPX
fetch the file, and with iPX's copy there saves one. A line beside the
size says where the file is, and the rarer actions, two of them
destructive, are under a menu.

isPlayable is false for any file not on iPX, so the phone's button is
decided by playsKind, the same test without the path. download_done now
marks the file as on iPX in what the page holds, so the open file's box
changes at once rather than after the list is fetched again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVA8TdTxe556JB3sR1n
2026-11-14 03:42:16 +00:00
Ray Slakinski
5d0ff1ac57 ipx-play: metrics for Prometheus, a dashboard row and a down alert (#458)
ipx-play sent traces and logged JSON but served no /metrics, so nothing showed whether
shared links were opening or failing. It now serves them on metrics_bind (9189 in
production, off the tunnel's port), with the directory's histogram and /proc reading:
requests by method, route and status (by route, so each shared episode is not a row of its
own, and an unknown address is route=""), episodes shared, memory, open files, uptime and
version.

The iPX dashboard gets an ipx-play row, its warnings join the other containers' log panel,
and alerts.py fires when Prometheus cannot reach it. The prod-check skill and docs/play.md
name it, with the scrape job and the OTEL_RESOURCE_ATTRIBUTES tag the trace panels need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 22:08:31 -05:00
47e093e313 Phone reader: back and the item's actions float over the text (#456)
On a phone they sat above the title and scrolled away with it, so
marking, pinning or sharing a long post meant scrolling back to its
top. Now back sits alone on the left and the actions in a capsule on
the right, sticky at the top of the reader, as Gmail's iOS reader does.
Each theme's own panel, frosted, so no theme changes colour; Glass gets
its sheen and a denser fill, since the text scrolls right under them,
and Classic its toolbar metal. Read and pin redraw the reader, which
now keeps its scroll position, since they are pressed mid-post. The
desktop reader is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVA8TdTxe556JB3sR1n
2026-11-13 17:43:45 +00:00
757ce5fbb3 Share never hands over a private feed's file (#455)
Share on a paid episode's file gave the file's own address, which for
Patreon is patreon.com/api/rss/u/<your id>/e/<n>.mp3?sig=..., signed for
the subscriber: whoever got it could download the episode as them. A
private feed's episode is now shared by its page alone, from the file
too, and with no page there is nothing to share. The access warning
matched any patreon.com address, so it warned on a post's page, which
asks for a sign-in and carries nothing of yours; it now matches
Patreon's feed and file addresses only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVA8TdTxe556JB3sR1n
2026-11-13 17:34:17 +00:00
45ef1e83f2 Share says why an episode gets no play link (#454)
A private feed's episode, or one ipx-play could not make a link for,
was offered its own address with no word of why, so someone expecting
a page anyone can play could not tell it was on purpose. The menu now
says the feed is private to them, or that the link could not be made
just now, beside the warning for an address carrying their access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 17:26:01 +00:00
b3636e648f Share works in the iOS app on an episode of a private feed (#452)
With no ipx-play link (a private feed, or no ipx-play set up), Share fell
back to the share sheet after the request for the link, which WebKit
refuses once an await has come between the press and it, and a Patreon
address went through confirm() first, which the iOS app answers Cancel
without showing anything (#453). Taps sent the request and nothing
appeared. That address now goes through the same menu as an ipx-play
link, so the sheet opens from a press of its own, and the warning about
an address that carries your access is written in the menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:57:25 +00:00
c133adf398 docs/play.md: the tunnel and traces reach ipx-play through the host's address
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:35:52 +00:00
ac246682f0 Dockerfile.play copies web/logo-dark.svg, which the directory crate embeds (#451)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:30:58 +00:00
Ray Slakinski
679a674fc9 Share an episode as a page, on ipx-play (#447)
Share handed over the raw file address or the item's link: no preview,
no time, nothing a person without iPX could do much with. Now, as
Overcast does, an episode shares as a short link to its own page,
play.ipxreader.app/e/<id>, which anyone can open: the show's art and
name, the episode's title, date, length and notes, a player on the
publisher's own file starting at ?t= if a time was shared, buttons to
subscribe in Apple Podcasts, Overcast, Pocket Casts or Castro, and Open
Graph tags for a preview where the link is pasted.

ipx-play is a service of its own (crates/play), built like the
directory: ipx sends it the episode with its token (POST /v1/shares)
and gets the link back. The id comes from the feed's address and the
guid, so the same episode is one link whoever shares it. Only episodes
of feeds the directory would be sent go there, by the directory's own
rule (snapshot_entries), so the two cannot disagree on what is private;
ipx-play also refuses an address that looks private. Anything else, and
any server without ipx-play set up, shares as before.

In the page, Share on an episode opens a menu once the link is back:
Share link, Share from 12:34 (the player's clock, or where you left
off), Copy link. A menu because the share sheet needs a press of its
own, and the request for the link used up the one that opened it.

The page runs no script: the start time is the media fragment #t=, and
its CSP loads nothing but its stylesheet, the art and the file.

Admin, Directory, Sharing episodes sets the address and token. The
browser suite starts its own ipx-play; it was not run here (no Caddy on
this Mac).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 09:24:18 -05:00
Ray Slakinski
171c77475a iOS: the app's settings in Settings, not behind a shake; iPhone upright (#445)
The server address and the player token were set from alerts that
opened on shaking the phone, which nobody finds. Settings now has a This
device section in the app: the server, the player token and its
address, and a Make button that creates an API token and hands it
straight to the app's keychain. The app sends what it has at ready
(appSettings) and takes setServer, setToken and clearToken; a new
server rebuilds the web view as the alert did. The first-launch prompt
and the Cannot reach alert stay native, since there is no page then.

The iPhone is portrait only; the iPad keeps all four orientations, which
Split View and Slide Over need (#434 checked the iPad's layout).

Build 14.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 08:39:54 -05:00
Ray Slakinski
69f1a38e9f iOS tests: CarPlay's episodes need a downloaded file (#443)
6d6bfe6 added Enclosure.path, which the tests' enclosures lacked, so the
test target no longer built. They now have one, and a test checks that a
picture and a file not yet fetched are passed over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 08:33:32 -05:00
6d6bfe6e1d iOS CarPlay: the phone's bar takes up the car's episode; only playable shows (#442, #443, #444)
#442: a car's pick told the page `replaced`, and the page closed its player bar, so leaving the
car with the episode playing left nothing on the phone to pause it. And when the car launched the
app, the page loaded later and was never told anything played. Now the app sends `nowPlaying`
(the item, its place, playing or not) on a car pick, at the page's `ready`, and on coming
forward, and the page's bar takes it up and drives the phone's player. `replaced` is still
handled for builds before this one.

#443: Shows listed every feed with items, blogs included. Now only feeds with a downloaded file,
and an episode only with a downloaded audio file: /media/{id} answers 404 before the download.

#444: tests/native-bridge.ts read its failure count before the CarPlay checks, so those could
fail and still exit 0. The count is read last now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVARreS9wxzH5o2rF7N
2026-11-11 23:08:14 +00:00
a55f08d4ff Tests for push passes, downloads, OPML round trips and directory refresh
Each against a local stand-in server: Apple's push service answering per token, a feed host
serving a login page and a torrent, a directory refresh of feeds that cannot be read. push.rs
takes the APNs address as a parameter so the test can point it at the stand-in. coverage.sh asks
for 8 GB free, not 9: its container is capped at 6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVARreS9wxzH5o2rF7N
2026-11-11 23:04:10 +00:00
75d099474c Terminal reader: play with mpv, mark read on move, folders and pins (#439, #440, #441)
p hands the item's downloaded file (/media/{id}) to mpv in its own window, with the token as a
header. Moving onto an item with j or k marks it read, as selecting one on the page does. The
feed list follows the page's order: pinned first, a subscribed OPML a folder that Space opens,
its unread the sum of its feeds', and P pins or unpins. scripts/build-tui.sh cross-builds the
binary for Linux and macOS under the same cap as the image builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVARreS9wxzH5o2rF7N
2026-11-11 23:04:02 +00:00
3a3900e959 Image builds keep compiled crates between builds (#438)
The ipx Dockerfile built its dependencies in a layer of stub crates,
which any change to Cargo.toml or Cargo.lock invalidated: all of them
compiled again in release, 405 crates, 170 s at the builder's cap. The
directory's had no such layer and compiled everything every time. Both
now build with cargo's registry and target/ as BuildKit cache mounts.
Measured on Tower: a Cargo.toml change rebuilds three crates in 52 s
instead of 405 in 170 s. The peak is about the same, since the ipx
crate itself is most of it; what goes is the minutes at the cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:05:12 +00:00
f9e4c1d800 CLAUDE.md: the home page deploys with wrangler and an API token from /src/.envrc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:38:12 +00:00
dccf9e1762 prod-check skill: the server's command in the container is ipxd (#437)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:32:55 +00:00
Ray Slakinski
2bb7ed2109 iOS: CarPlay (#420)
A CarPlay scene beside the phone's: In Progress, Unread and Shows as
CPListTemplates from ipx's API, read with the player's credentials, and
a pick played through the same Playback, so it resumes from the saved
place, saves as it goes and marks read at 90%. Now Playing is the
system's template over Playback's now-playing info.

When the car starts a different episode the page is sent
{t:"replaced"} and closes its player bar. Left open, the bar would have
gone on as the old episode while the host's clock belonged to the new
one, saving that time and marking the wrong item read.

The badge's fetch moves into API.get, which CarPlay shares. Build 13.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 08:10:34 -05:00
711b0395f1 A terminal reader, ipx; the server is ipxd (#437)
ipx-tui (crates/tui) is iPX's reader in ratatui: your feeds, a feed's
items, an item's text as plain text, read and flagged as on the page,
through the API with an API token. It installs as `ipx`, so the daemon's
binary is now `ipxd`: the Dockerfile, release script, tests and every
doc and message that names its commands follow.

Naming the binary ipxd alone renamed its crate, and with it every log
target (ipx::scan became ipxd::scan): the default filters are ipx=info,
so nearly every line would have been dropped and the dashboard's queries
on the targets gone blank. The daemon's code is now a library still
called ipx, under a five-line ipxd main.rs, and the targets are as they
were.

ratatui is taken without its default features: 32 new packages in place
of 78.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVDqdiQEMWAkNGQ2tYA
2026-11-09 11:52:10 +00:00
Ray Slakinski
f844cf349a iOS: Siri and Shortcuts, and a widget (#427, #428)
Siri: App Intents with phrases that need no setup: Resume, Pause,
Skip forward, Skip back, Set a sleep timer, How many unread. The
playback ones are AudioPlaybackIntents, run in the app and allowed to
start audio from the background. Playback is now one shared instance
(Playback.shared) so Siri and the widget reach it with no page loaded.
It remembers the last episode and its place (LastPlayed), so Resume
works with the app closed; the page, opened afterwards, does not know
about an episode started that way.

Widget: small and medium on the home screen, circular and rectangular
on the lock screen. It shows the unread count and the last episode,
with a Resume or Pause button (PlayPauseIntent, shared with Siri). It
draws what the app writes to the App Group group.net.sdf1.ipx. The app
asks for a redraw on play, pause, a new episode or a new count, not on
every position, since iOS rations redraws. Shared/ builds into both
targets, with WIDGET set in the widget's, where the player does not
exist.

ipx's push now carries content-available, which wakes the closed app
for a moment to give the widget the count the icon just got (#433).

Tested: unit tests for the snapshot and the remembered place, 19 in
all; in the simulator, playing an episode wrote the snapshot to the
App Group. Not testable there: Siri, and the widget drawn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 19:33:04 -05:00
8f888ae10e Admin page: an error toast no longer throws for want of haptic (#436)
toast() calls haptic() on an error since cf0dad7 (#430), and haptic is
native.ts's, which admin.js is not built from: every error toast on the
admin page threw a ReferenceError and showed nothing. Never deployed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 00:04:12 +00:00
Ray Slakinski
da6cda28a5 iOS: the entitlements file is XcodeGen's output, not source (#433)
project.yml holds aps-environment; the plist it writes is ignored, as
Info.plist is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 17:47:41 -05:00
Ray Slakinski
bd535851b0 The iOS app's icon count, pushed by ipx (#433)
Background refresh runs when iOS chooses, and for this app that has
been rarely, so the icon's unread count lagged until the app was
opened (#421). Now ipx sends the count:
- ipx: a push_devices table and POST/DELETE /api/push/devices. With
  [push] set to an APNs key, a task compares each phone's All
  Subscriptions unread count with the last sent, once a minute, and
  sends a changed one to Apple as a badge-only push: no alert, no
  sound. A token Apple says is gone is forgotten. The signing token is
  ES256 over the team and time, made again every forty minutes, inside
  Apple's limits.
- iOS: the aps-environment entitlement. The app registers for push
  once badge permission is given, each launch, and hands its token to
  the page.
- Page: registers the token with ipx as the person signed in, since
  the player's address (ipxapi) lets through only the player's paths,
  and removes it on signing out.

jsonwebtoken here is built without PEM support, so the .p8 key's
base64 is decoded in push.rs rather than turning on a feature and
changing Cargo.lock for one file.

cargo test -p ipx on macOS: 182 pass; the 3 that fail read /proc and
fail there without this change too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 17:47:28 -05:00
Ray Slakinski
e6414941ab iOS: the icon's count follows the page's (#421)
Reported: the unread count on the icon only changed when the app was
opened. Two reasons:
- Items read in the page never reached it, since only the player's own
  mark-read refreshed the badge.
- The background refresh that should bring new items runs when iOS
  chooses, which for this app has been rarely.

The page now sends All Subscriptions' count ({t:"unread", n}) each time
its list is drawn with a new one, so reading, and new items arriving
over the event stream while the app is open, set it at once. While an
episode plays the app is awake with the screen locked, so the player's
tick also re-checks every quarter of an hour.

With the app closed and nothing playing, the count still waits on iOS's
refresh. Push (#433) is what makes that exact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 17:18:43 -05:00
Ray Slakinski
b455c1ec8c iOS: iPX opens with no connection (#435)
A WKWebView runs no service worker unless the app lists its domains
in WKAppBoundDomains and the web view limits itself to them. So the
Info.plist lists ipodderx.sdf1.net, with Cloudflare Access's
(rays-sdf1.cloudflareaccess.com) and Authentik's (authentik.sdf1.net)
hosts so signing in still works. For a server in that list the web
view is made app-bound and #389's worker runs: the page and its lists
open offline from the second launch, since the first only installs the
worker.

The costs:
- Navigation elsewhere is refused, and the failure looked like the
  server being down. decidePolicyFor sends such links to Safari.
- With the key present, WebKit cuts the bridge for any server not in
  the list. That server then gets the page with its own audio, not
  the phone's player.

The web view is made again when the server changes, since being
app-bound is fixed when it is made.

A debug build adds localhost through a build script, so the simulator
can test against a page served on the Mac; the release archive's plist
was checked to have only the three. Tested in the simulator: opened
twice online, the server stopped, relaunched, and the page came up from
the worker. With the bridge still up on the app-bound host, the
phone's player played.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 17:08:27 -05:00
Ray Slakinski
cf0dad7380 iOS: presses are felt (#430)
The page asks the app for a haptic ({t:"haptic", kind}) and the app
plays the phone's own. A light tap for play, pause, flag and pull to
refresh; the system's success for marking read, one item or all; its
warning with an error toast. A browser has no host to ask, and an
older app ignores the message, so there is nothing to gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 16:57:51 -05:00