code wiki / _hdl_build / nx_feedfetch.nx

nx_feedfetch.nx

buildroot/runtime/_hdl_build/nx_feedfetch.nx

6452 B146 linesdepth 21pulls 147 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_https_fetch_follow.nx nx_feed_extract.nx nx_feedfetch.nx

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

main fw sys_write sys_exit nx_trust_store_load_from_c sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal trust_store_alloc sys_mmap ↻ nx_x509_trust_store_load sys_mmap ↻ x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_tag asn1_read_length asn1_read_length ↻ x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻

structs

none

consts

23const FF_CAP: i64 = 4194304 // page/feed body arena
24const FF_CERTDATA_CAP: i64 = 4194304 // trust-store parse arena
25const FF_URL_CAP: i64 = 4096
26const FF_OUT_CAP: i64 = 1048576 // extracted indexable text
27const FF_REDIRECTS: i64 = 6

functions

29func fw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
30func fnum(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
44func ff_has(buf: *u8, n: i64, lit: *u8) -> i64
called by 1: main
59func ff_origin(url: *u8, out: *u8, cap: i64) -> i64
called by 1: main
82func ff_resolve(origin: *u8, ref: *u8, out: *u8, cap: i64) -> i64
called by 1: main
99func main(argc: i64, argv: *i64) -> i64