code wiki / (root) / nx_crawl_doc.nx

nx_crawl_doc.nx

buildroot/runtime/nx_crawl_doc.nx

2035 B42 linesdepth 5pulls 9 transitivereach 1 importersview sourcekind librarytopic crawl
docsdependenciesstructsconstsfunctions

about

nx_crawl_doc.nx -- per-page processing unit for the sovereign crawler. module: nishi-core.search.crawl_doc depends: nx_html_to_text.nx, nx_simhash.nx, nx_search_inverted.nx capability: CORE_COMPUTE wired_status: FULLY_WIRED The back half of the crawl loop (the half that is design-sensitive and SEO-resistant), composing already-proven sovereign modules: fetched HTML --nx_html_to_text--> visible text (tags/script/style stripped) --nx_simhash--------> 64-bit content fingerprint The crawler then uses the fingerprint for content near-dup / novelty BEFORE indexing, so a scraped copy never pollutes the index while unique content is kept -- demotion EARNED from measured content, never a domain/title prejudice (operator cardinal 2026-05-29). Front half (resolve + fetch over our own DNS/TLS/HTTP) runs in the operator's networked environment.

dependencies 4 imports · 1 importers

syscalls.nx nx_html_to_text.nx nx_simhash.nx nx_search_inverted.nx nx_crawl_doc.nx nx_crawl_doc_test.nx

imports: syscalls.nxnx_html_to_text.nxnx_simhash.nxnx_search_inverted.nx

imported by: nx_crawl_doc_test.nx

structs

none

consts

none

functions

25func nx_crawl_extract(html: *u8, html_len: i64, text_out: *u8, text_cap: i64,
38func nx_crawl_should_index(fp: i64, kept_fps: *i64, n_kept: i64,
called by 1: main calls 1: nx_simhash_min_hamming