code wiki / (root) / nx_lib_serve.nx

nx_lib_serve.nx

buildroot/runtime/nx_lib_serve.nx

4268 B114 linesdepth 4pulls 4 transitivereach 12 importersview sourcekind librarytopic lib
docsdependenciesstructsconstsfunctions

about

nx_lib_serve.nx -- sovereign QUERY/SERVE layer for the nishi-library, on nx_lib_store. This is the MIGRATION rung: the program's read path moves to .nx, reading the sovereign catalog store and emitting the JSON an API returns -- REPLACING serve.py's SQLite _read_work path. No shell, no python, no 3rd-party. Built + run by the WOMB. license_tier: ORIGINAL | genealogy_id: nishi_library_sovereign_serve_2026_06_30

dependencies 2 imports · 7 importers

nx_syscalls.nx nx_lib_store.nx nx_lib_serve.nx nx_lib_gbif_probe.nx nx_lib_http.nx nx_lib_ingest_json_test.nx nx_lib_openalex_probe.nx nx_lib_parse_test.nx nx_lib_probe.nx nx_lib_serve_test.nx

imports: nx_syscalls.nxnx_lib_store.nx

imported by: nx_lib_gbif_probe.nxnx_lib_http.nxnx_lib_ingest_json_test.nxnx_lib_openalex_probe.nxnx_lib_parse_test.nxnx_lib_probe.nxnx_lib_serve_test.nx

structs

none

consts

9const K_MAGIC_1048576: i64 = 1048576

functions

12func lsv_cat(out: *u8, off: i64, s: *u8) -> i64
called by 1: nx_lib_serve_work
20func lsv_field(rec: *u8, reclen: i64, n: i64, outp: *i64, outlen: *i64) -> i64
called by 1: lsv_cat_field
42func lsv_cat_field(out: *u8, off: i64, rec: *u8, reclen: i64, n: i64) -> i64
called by 1: nx_lib_serve_work calls 2: sys_mmaplsv_field
62func nx_lib_serve_work(hk: *u8, out: *u8) -> i64
88func nx_lib_serve_list(out: *u8) -> i64