code wiki / _hdl_build / nx_vizsla_serve.nx
nx_vizsla_serve.nx
buildroot/runtime/_hdl_build/nx_vizsla_serve.nx
about
nx_vizsla_serve.nx -- NISHI VIZSLA: the sovereign HTTP transport that makes the first-party UI LIVE in the
Nishi browser. Operator 2026-06-22: manage relationships IN the first party nishi browser, privacy-first.
Binds 127.0.0.1 ONLY (never exposed), no third-party, your data never leaves the box.
GET /<tid> -> fork nx_vizsla_render -> serve that tenant's sovereign 0-JS page (GET / -> elderwesto)
POST /v/submit -> read the form body -> fork nx_vizsla_action submit -> 303 redirect back to GET /<tid>
Socket accept loop is the proven gallery_serve idiom (fork-per-conn, reap). A `handle <base> <reqfile>` CLI
mode runs the router over a request read from a file (gateable without socket timing). tid validated
[A-Za-z0-9_-] = no path traversal. license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.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
| 10 | const K_MAGIC_719468: i64 = 719468 |
| 11 | const K_MAGIC_146097: i64 = 146097 |
| 12 | const K_MAGIC_146096: i64 = 146096 |
| 13 | const K_MAGIC_1460: i64 = 1460 |
| 14 | const K_MAGIC_36524: i64 = 36524 |
| 15 | const K_MAGIC_86400: i64 = 86400 |
| 16 | const K_MAGIC_65536: i64 = 65536 |
| 17 | const K_MAGIC_1048576: i64 = 1048576 |
| 18 | const K_MAGIC_18097: i64 = 18097 |
functions
| 20 | func vs_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 22 | func vs_cat(dst: *u8, off: i64, s: *u8) -> i64 |
| 28 | func vs_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 42 | func vs_match(req: *u8, rn: i64, pat: *u8) -> i64 |
| 50 | func vs_valid_tid(s: *u8) -> i64 called by 1: vs_handle |
| 68 | func vs_pathtid(req: *u8, rn: i64, out: *u8) -> i64 called by 1: vs_handle |
| 86 | func vs_keyeq(req: *u8, rn: i64, p: i64, key: *u8, kl: i64) -> i64 called by 1: vs_bodyfield |
| 95 | func vs_bodyfield(req: *u8, rn: i64, key: *u8, out: *u8) -> i64 |
| 125 | func vs_civil(z0: i64, out: *i64) -> i64 called by 1: vs_today |
| 143 | func vs_today(out: *u8) -> i64 |
| 157 | func vs_readall(path: *u8, szp: *i64) -> *u8 |
| 172 | func vs_render(base: *u8, tid: *u8, rbuf: *u8) -> i64 |
| 211 | func vs_redirect(tid: *u8, rbuf: *u8) -> i64 |
| 220 | func vs_run_action(base: *u8, tid: *u8, action: *u8, body: *u8) -> i64 |
| 244 | func vs_handle(req: *u8, rn: i64, base: *u8, rbuf: *u8) -> i64 |
| 276 | func main(argc: i64, argv: *i64) -> i64 |