code wiki / _hdl_build / nx_library_page.nx

nx_library_page.nx

buildroot/runtime/_hdl_build/nx_library_page.nx

5506 B95 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind tooltopic library
docsdependenciesstructsconstsfunctions

about

nx_library_page.nx -- MLIB-007 (CALLOUT-012). The ENDPOINT: emit the nishi-library UI via the PROVEN nx_web_builder (responsive CSS baked in -> the browser-exceeds-desktop / responsive desktop+TV+mobile surface). v1: ONE unified mixed-media grid (auto-fit responsive grid) over ALL pillars (video/photos+gifs/audio/books+manga/3D-STL/games) + search + trust signals; UX gated by wb_ux_compliant. Writes knowledge/nishi-library.html, then READS IT BACK and asserts the markers (no blind emit, rule 5). Live playback / GPU decode / cast / scrub-latency ride the browser RUNTIME = the next slice (MLIB-008). Self-validating gate (LIBPAGEGATE). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_web_builder.nx nx_library_page.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_web_builder.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 lp_puts sys_write wb_doc_open bt_default_brand wb_doc_open_branded wb_w sys_write ↻ bas_emit_head bas_emit_one sys_mmap bas_lookup sys_mmap ↻ bas_esc_attr bas_app bas_fw sys_write ↻ bt_emit_root_fd sys_mmap ↻ bt_emit_root_buf bt_app sys_mmap ↻ bt_slice_eq bt_ident_safe bt_value_safe bt_find bt_app_n sys_write ↻ bt_emit_dark_fd sys_mmap ↻ bt_emit_dark_root_buf bt_app ↻ sys_mmap ↻ bt_slice_eq ↻ bt_ident_safe ↻ bt_value_safe ↻ bt_app_n ↻ sys_write ↻ pol_emit

structs

none

consts

11const LP_MAGIC_60000: i64 = 60000
13const LP_OUT: *u8 = "knowledge/nishi-library.html"

functions

15func lp_puts(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
20func lp_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
22func lp_readfile(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
31func lp_contains(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main
39func main() -> i64