code wiki / _hdl_build / nx_ereader_sota_fetch.nx

nx_ereader_sota_fetch.nx

buildroot/runtime/_hdl_build/nx_ereader_sota_fetch.nx

5824 B86 linesdepth 21pulls 147 transitivereach 0 importersview sourcekind orphan library
docsdependenciesstructsconstsfunctions

about

nx_ereader_sota_fetch.nx -- HONEST research (operator 2026-07-04: "the rest of our library is still not state of the art in loading, serving, hotkeys... use the nishi researcher and see what ereaders do on github that are way ahead of us"). Fetches the GitHub topic search API for the SOTA e-reader / comic-server projects (Kavita, Komga, Koodo, foliate, Readium, epub.js...) + their READMEs with our sovereign Chrome client (we beat GitHub's wall). Parses to a COMPACT list (rank, full_name, stars, topics, desc) then dumps READMEs -> the library census is grounded on what these tools ACTUALLY do (loading/serving/keyboard), not memory. Temporary. license_tier: ORIGINAL

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_manga_sites.nx nx_ereader_sota_fetch.nx

imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nxnx_manga_sites.nx

imported by: nobody (leaf or entry point)

structs

none

consts

12const K_MAGIC_4194304: i64 = 4194304
13const K_MAGIC_2097152: i64 = 2097152
14const K_MAGIC_2400: i64 = 2400
15const K_MAGIC_2600: i64 = 2600

functions

17func iw(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 3: fetchcomplistreadme calls 1: sys_write
18func iseg(buf: *u8, a: i64, e: i64) -> i64 { if e>a { sys_write(1,(buf as i64+a) as *u8, e-a) } return 0 }
called by 1: complist calls 1: sys_write
19func jval(buf: *u8, n: i64, key: *u8, from: i64, bound: i64, sp: *i64, ep: *i64) -> i64
called by 1: complist calls 1: na_find_from
27func fetch(url: *u8, store: *TrustStore, buf: *u8, cap: i64) -> i64
called by 1: readme calls 3: sys_mmapiwsys_write
34func complist(buf: *u8, n: i64) -> i64
58func readme(owner_repo: *u8, store: *TrustStore, buf: *u8, cap: i64, shown: i64) -> i64
67func main() -> i64