code wiki / _hdl_build / nx_scilib_page.nx
nx_scilib_page.nx
buildroot/runtime/_hdl_build/nx_scilib_page.nx
about
nx_scilib_page.nx -- DATA-DRIVEN UI for the sovereign Nishi KNOWLEDGE library (the foundationed research
corpus: papers / wiki mirrors / research artifacts). Distinct from the sibling nx_library_page.nx, which is
the MEDIA library (video/photos/games). Operator law: every capability needs a live UI we iterate on. Emits
web_assets/library.html STRAIGHT FROM the library model -- iterates lib_list, pulls lib_meta(title/source/
bytes) + a lib_get snippet per doc, renders a browsable instant-filter catalog. CX differentiator = the
provenance: every doc is CID-signed + lineage-traced to god + in the no-link-rot corpus. Read-only +
public-safe (no controls, no secrets). Honest scope: browse + client-side keyword filter; the sovereign
BM25 ranked-search endpoint (ls_best_bm25 server-side) is the next rung. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_library.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
| 13 | const SP_OUT: *u8 = "web_assets/library.html" |
functions
| 15 | func sp_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 16 | func sp_we(fd: i64, p: *u8, n: i64) -> i64 { if n>0 { sys_write(fd,p,n) } return 0 } |
| 21 | func sp_num(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 24 | func sp_esc(fd: i64, p: *u8, n: i64) -> i64 |
| 41 | func sp_snip(body: *u8, blen: i64, out: *u8, cap: i64) -> i64 called by 1: main |
| 55 | func main() -> i64 |