code wiki / _hdl_build / nx_browse.nx

nx_browse.nx

buildroot/runtime/_hdl_build/nx_browse.nx

9130 B186 linesdepth 21pulls 154 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_browse.nx -- ONE-organ sovereign browse: read URL from _url.txt -> fetch the page (own DNS+TLS1.3+ HTTP) -> ALSO fetch its <link rel=stylesheet> sheets (load.php) and append them as <style> blocks so the render applies the PAGE'S OWN CSS (@media-filtered) -> styled PNG. 100% sovereign, no curl/V8/gcc.

dependencies 9 imports · 0 importers

nx_syscalls.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_https_get.nx nx_http_response_parse.nx nx_html_tokenizer.nx nx_dom_query.nx nx_html_entities.nx nx_render_html.nx nx_browse.nx

imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_get.nxnx_http_response_parse.nxnx_html_tokenizer.nxnx_dom_query.nxnx_html_entities.nxnx_render_html.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close _bp sys_write sys_write ↻ nx_trust_store_load_from_c sys_mmap ↻ sys_read_file ↻ nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal trust_store_alloc sys_mmap ↻ nx_x509_trust_store_load sys_mmap ↻ x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_tag asn1_read_length asn1_read_length ↻ x509_read_tlv

structs

none

consts

none

functions

14func _bp(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 1: main calls 1: sys_write
15func _bn(fd: i64, v0: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
27func _browse_fetch(url: *u8, store: *TrustStore, cr: *u8, priv: *u8, lenbox: *i64) -> *u8
54func _scheme_host(url: *u8, ulen: i64, out: *u8) -> i64
called by 1: main
70func _has_stylesheet(src: *u8, off: i64, len: i64) -> i64
called by 1: main
83func main() -> i64