code wiki / (root) / nx_depstack_research.nx

nx_depstack_research.nx source

↩ module page · 34 lines · 2205 B

1// nx_depstack_research.nx -- USE the nishi researcher to bank the COMMERCIAL DEPENDENCY STACK that every 2// published deep-research system rides on. Operator 2026-07-02: "OpenAI/Firecrawl/Milvus/Serper/Jina ... nishi 3// research and census this". For each paid dependency, nx_depstack_census grades OUR sovereign replacement. 4// Diverse primary sources (SDK/service repos), engine-composed, sovereign TLS-1.3. Run SOLO. 5// expect_exit: 0 license_tier: ORIGINAL 6import "nx_research_engine.nx" 7const K_MAGIC_8388608: i64 = 8388608 8 9func main() -> i64 { 10 let store: *TrustStore = rf_init() 11 if (store as i64) == 0 { rf_puts("dep: trust store load failed\n" as *u8); return 1 } 12 rf_puts("CA roots="); rf_putn(trust_store_count(store)); rf_puts(" -- deep-research DEPENDENCY STACK -> Library\n" as *u8) 13 let cap: i64 = K_MAGIC_8388608 14 let out: *u8 = sys_mmap(cap) 15 var ok: i64 = 0 16 17 rf_section("LLM / reasoning (OpenAI) -- our gap = the no-float sovereign LLM lane (R1)" as *u8) 18 ok = ok + rf_fetch_bank("https://github.com/openai/openai-python" as *u8, "dep_openai" as *u8, store, out, cap) 19 20 rf_section("WEB SCRAPE + CRAWL (Firecrawl) -- our sovereign replacement = nx_crawl_web + nx_https_fetch_follow" as *u8) 21 ok = ok + rf_fetch_bank("https://github.com/mendableai/firecrawl" as *u8, "dep_firecrawl" as *u8, store, out, cap) 22 23 rf_section("VECTOR DB / dense ANN (Milvus/Zilliz) -- our gap = sovereign dense-vector backend (today lexical BM25)" as *u8) 24 ok = ok + rf_fetch_bank("https://github.com/milvus-io/milvus" as *u8, "dep_milvus" as *u8, store, out, cap) 25 26 rf_section("WEB SEARCH API (Serper=Google SERP) -- our replacement = nx_search_inverted (own index); gap = open-web breadth" as *u8) 27 ok = ok + rf_fetch_bank("https://serper.dev" as *u8, "dep_serper" as *u8, store, out, cap) 28 29 rf_section("READER + EMBEDDINGS (Jina) -- reader replaced by nx_html_to_text; embeddings = our dense gap" as *u8) 30 ok = ok + rf_fetch_bank("https://github.com/jina-ai/reader" as *u8, "dep_jina" as *u8, store, out, cap) 31 32 rf_puts("DEP BANKED: "); rf_putn(ok); rf_puts(" / 5 (run nx_depstack_census to grade our sovereign replacements)\n" as *u8) 33 return 0 34}