code wiki / (root) / nx_ui_serve.nx

nx_ui_serve.nx

buildroot/runtime/nx_ui_serve.nx

3299 B74 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind servicetopic ui
docsdependenciesstructsconstsfunctions

about

nx_ui_serve.nx -- serve the sovereign interactive UI LIVE, now STATEFUL. Composes THREE reused cores (no one-offs): - nx_http_server.nx -- listen / accept / read-request (the search site's core) - nx_ui_lib.nx -- the fd-based interactive render (composable open/close) - nx_recordlog.nx -- the reusable append-only record store A click GETs /?region=N&zoom=Z -> we LOG the pain spot (recordlog_append) and re-render the map PLUS a running tally (recordlog_count). So the body-map is a real tracker: click where it hurts, it persists, you see your history. Sovereign round-trip, ZERO JS, loopback-bound. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_http_server.nx nx_ui_lib.nx nx_recordlog.nx nx_ui_serve.nx

imports: nx_http_server.nxnx_ui_lib.nxnx_recordlog.nx

imported by: nobody (leaf or entry point)

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

main nx_http_server_addr_loopba nx_http_server_make_sockad nx_http_server_listen sys_ignore_sigpipe sys_mmap sys_socket sys_mmap ↻ sys_setsockopt sys_bind sys_close sys_listen ui_w sys_write ui_wn sys_write ↻ sys_mmap ↻

structs

none

consts

16const UI_MAGIC_8192: i64 = 8192
17const UI_MAGIC_1024: i64 = 1024
19const UI_PORT: i64 = 8181
20const PAINLOG: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/_offc/nx_painlog.tsv"

functions

22func main() -> i64