code wiki / _hdl_build / nx_scilib_page.nx

nx_scilib_page.nx

buildroot/runtime/_hdl_build/nx_scilib_page.nx

8295 B127 linesdepth 10pulls 13 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_itoa_lib.nx nx_library.nx nx_scilib_page.nx

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

main sys_openat_wr lib_count cat_count ss_open_cached ssc_init sys_mmap ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_cat ↻ ss_loadfile ss_load_aux2 ssl_total_keys ssl_pow2 ssl_build ss_r32 ssl_lookup ss_manifest_free sys_munmap ssc_retire_handle sys_mmap ↻ cat_idx_load sys_mmap ↻ ss_hget sys_mmap ↻ ss_idx_find ss_r32 ↻ ss_len ss_kcmp cat_idx_key sp_w sys_write sp_num nxi_fd

structs

none

consts

13const SP_OUT: *u8 = "web_assets/library.html"

functions

15func 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 }
called by 2: sp_escmain calls 1: sys_write
16func sp_we(fd: i64, p: *u8, n: i64) -> i64 { if n>0 { sys_write(fd,p,n) } return 0 }
called by 1: main calls 1: sys_write
21func sp_num(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 1: main calls 1: nxi_fd
24func sp_esc(fd: i64, p: *u8, n: i64) -> i64
called by 1: main calls 3: sp_wsys_mmapsys_write
41func sp_snip(body: *u8, blen: i64, out: *u8, cap: i64) -> i64
called by 1: main
55func main() -> i64