code wiki / _hdl_build / nx_webpub_extract.nx

nx_webpub_extract.nx

buildroot/runtime/_hdl_build/nx_webpub_extract.nx

3212 B62 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_webpub_extract.nx -- SOVEREIGN render+extract half of the web-publishing best-practices research (operator 2026-06-17 "use the nishi researcher on our web publishing, give honest feedback"). Reads the six raw HTTP responses from nx_webpub_fetch, strips headers, renders HTML->text (nx_html_to_text), saves the text, runs ce_extract (number+unit fact claims). Lives in _hdl_build/ for the nx_claim_extract + ../nx_html_to_text import paths. expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_claim_extract.nx nx_html_to_text.nx nx_webpub_extract.nx

imports: nx_syscalls.nxnx_claim_extract.nxnx_html_to_text.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main we_puts sys_write render_one sys_mmap ce_read_file sys_openat_rd sys_read sys_close we_puts ↻ nx_html_to_text nx_html_to_text_x h2t_state_new sys_mmap ↻ sys_mmap ↻ h2t_scan_tag h2t_skip_to_gt h2t_scan_name h2t_is_name h2t_is_block_tag h2t_name_eq_lit h2t_lc h2t_lc ↻ h2t_is_suppress_tag h2t_name_eq_lit ↻ h2t_emit_newline h2t_name_eq_lit ↻ h2t_emit_raw h2t_find_href h2t_lc ↻ h2t_is_name ↻ h2t_decode_entity h2t_decode_numeric h2t_is_name ↻ nx_html_entity_lookup h2t_emit_codepoint h2t_emit_text_byte h2t_is_ws h2t_emit_text_byte ↻ sys_munmap

structs

none

consts

9const K_MAGIC_4194304: i64 = 4194304
10const K_MAGIC_4194303: i64 = 4194303

functions

12func we_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 2: render_onemain calls 1: sys_write
13func we_putn(v: i64) -> i64
called by 1: render_one calls 2: sys_mmapsys_write
22func render_one(raw_path: *u8, txt_path: *u8) -> i64
51func main() -> i64