code wiki / _hdl_build / nishi.nx

nishi.nx

buildroot/runtime/_hdl_build/nishi.nx

21789 B532 linesdepth 21pulls 157 transitivereach 0 importersview sourcekind tooltopic nishi
docsdependenciesstructsconstsfunctions

about

nishi.nx -- SOVEREIGN browse CLI + interactive navigator (the Nishi browser). (B)-AUTHORIZED tutor build; flagged backfill debt (re-author from spec later). nishi <https-url> one-shot: fetch + render + link list, then exit nishi interactive REPL (prompt for first URL) nishi -i <https-url> interactive, starting at the given URL Interactive commands: <number> follow that link | <url> open | b back | r reload | q quit (EOF also quits) live DNS -> sovereign TLS 1.3 -> HTTP/1.1 GET -> follow 3xx (abs+relative) -> de-chunk -> gunzip (Content-Encoding) -> charset (header + <meta>) -> UTF-8 -> HTML->text + absolute link list. No curl/zlib/Playwright/gcc. Composes existing sovereign organs only. Artifact = Linux x86-64 ELF (WSL).

dependencies 12 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_https_get.nx nx_http_response_parse.nx nx_html_to_text.nx nx_redirect_resolve.nx nx_gzip_wrap.nx nx_charset.nx nishi.nx

diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_itoa_lib.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_get.nxnx_http_response_parse.nxnx_html_to_text.nxnx_redirect_resolve.nxnx_gzip_wrap.nxnx_charset.nxnx_html_extract_links.nxnx_js_eval.nx

imported by: nobody (leaf or entry point)

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

main nx_trust_store_load_from_c sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close 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 sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id sys_mmap ↻ asn1_expect_tag ↻

structs

none

consts

none

functions

29func _p(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 }
34func _pn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
38func _readline(out: *u8, cap: i64) -> i64
called by 1: main calls 2: sys_mmapsys_read
62func _parse_num(s: *u8, n: i64) -> i64
called by 1: main
77func _is_http(s: *u8, n: i64) -> i64
called by 1: main calls 1: _lc
88func _try_redirect(buf: *u8, n: i64, r: *i64, cur: *u8, urlcap: i64) -> i64
125func nish_fetch_render(cur: *u8, urlcap: i64, store: *TrustStore, cr: *u8, priv: *u8,
325func main(argc: i64, argv: *i64) -> i64