code wiki / _hdl_build / nx_feedfetch.nx
nx_feedfetch.nx
buildroot/runtime/_hdl_build/nx_feedfetch.nx
about
nx_feedfetch.nx -- the missing CLI consumer that makes the RSS/Atom capability REACHABLE.
WHY THIS EXISTS: nx_feed_extract has been in the tree since 2026-07-05 -- a real RSS 2.0 + Atom parser
(discover the feed link in a page shell, then parse <entry>/<item> into indexable text + a fresh-URL
crawl frontier). It is a LIBRARY with no main(), so nothing could ever call it: no deployed binary
referenced it, and the capability ruler scored rss-auto-acquire as GAP for that reason alone.
★I previously wrote on a published page that this organ was "deploy work, not build work". THAT WAS
WRONG -- a library cannot be deployed into reachability; it needs an entry point. This is that entry
point, and the correction is published alongside it.
Mirrors the proven nx_yt_probe shape (fetch over our own TLS -> hand the bytes to the extractor).
usage: nx_feedfetch <url>
Fetches the URL. If the body is already a feed, parses it. If it is a page shell, DISCOVERS the
<link rel=alternate> feed URL, resolves it against the origin, fetches that, and parses it.
Prints the discovered feed URL, the item count, and the extracted indexable text.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nxnx_feed_extract.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 23 | const FF_CAP: i64 = 4194304 // page/feed body arena |
| 24 | const FF_CERTDATA_CAP: i64 = 4194304 // trust-store parse arena |
| 25 | const FF_URL_CAP: i64 = 4096 |
| 26 | const FF_OUT_CAP: i64 = 1048576 // extracted indexable text |
| 27 | const FF_REDIRECTS: i64 = 6 |
functions
| 29 | func fw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 30 | func fnum(v: i64) -> i64 |
| 44 | func ff_has(buf: *u8, n: i64, lit: *u8) -> i64 called by 1: main |
| 59 | func ff_origin(url: *u8, out: *u8, cap: i64) -> i64 called by 1: main |
| 82 | func ff_resolve(origin: *u8, ref: *u8, out: *u8, cap: i64) -> i64 called by 1: main |
| 99 | func main(argc: i64, argv: *i64) -> i64 |