code wiki / _hdl_build / nx_nishi_embed.nx
nx_nishi_embed.nx
buildroot/runtime/_hdl_build/nx_nishi_embed.nx
about
nx_nishi_embed.nx -- SOVEREIGN IFRAME REPLACEMENT for the Nishi ecosystem (operator: "iframe replacement with
similar capabilities but none of the bullshit ... s class exceed"). Emits <nishi-embed> -- a native Web
Component (custom element + Shadow DOM) that hydrates a Nishi CAPABILITY (search/estate/office tool) INLINE on
any page, with the iframe's good parts and none of its bullshit:
ISOLATION : Shadow DOM encapsulates style+DOM both ways -- WITHOUT a nested browsing context (iframe's weight)
CAPABILITY : embeds declare capability+scope (capability-based), not an opaque cross-origin document
COMMS : typed CustomEvents up to the host (composed) -- not postMessage string soup + origin checks
PRIVACY : same-origin sovereign fetch only; ZERO third-party script, ZERO trackers/ads, ZERO consent-popup
SIZING : auto-sizes to content (no fixed iframe height / scroll-in-scroll)
SOVEREIGN : hand-authored, zero dependencies (no React/jQuery/CDN) -- emitted by THIS organ
Emits a self-contained demo page to web_assets/nishi_embed_demo.html (deployable via nx_aw_push). The runtime
is reusable; the demo embeds the onsite-search capability. Measured vs iframe by nx_embed_exceed.
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
| 16 | const NE_OUT: *u8 = "web_assets/nishi_embed_demo.html" as *u8 |
functions
| 18 | func ne_w(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 } |
| 19 | func ne_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 21 | func main() -> i64 |