code wiki / _hdl_build / nishi.nx
nishi.nx
buildroot/runtime/_hdl_build/nishi.nx
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
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
structs
| none |
consts
| none |
functions
| 29 | func _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 } |
| 34 | func _pn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 38 | func _readline(out: *u8, cap: i64) -> i64 |
| 62 | func _parse_num(s: *u8, n: i64) -> i64 called by 1: main |
| 77 | func _is_http(s: *u8, n: i64) -> i64 |
| 88 | func _try_redirect(buf: *u8, n: i64, r: *i64, cur: *u8, urlcap: i64) -> i64 called by 1: nish_fetch_render calls 6: sys_mmapnx_http_response_headernx_redirect_resolve_p_pnsys_write |
| 125 | func nish_fetch_render(cur: *u8, urlcap: i64, store: *TrustStore, cr: *u8, priv: *u8, called by 1: main calls 20: sys_now_mssys_now_realtime_secsys_mmapnx_http_resp_allocnx_https_get_p+14 |
| 325 | func main(argc: i64, argv: *i64) -> i64 |