Native Rust runtime for Nsect.
GET /health- admin key lifecycle routes backed by SQLite WAL
- API key validation and bearer/header auth
POST /api/enginePOST /api/youtube/transcriptengineCLI subcommand for page extraction and searchtranscribe-youtubeCLI subcommand with native--outputfile support- Windows-native binary output via
cargo build --release
engine + search: live and workingyoutube transcript: live and workinghealth + key state: live and workingHTTP server bootstrap: live and workingartifact output: screenshot, PDF, and text-file output supported from CLI mode
powershell -ExecutionPolicy Bypass -File scripts/build-rust.ps1bash scripts/build-rust.shRelease artifact:
rust/target/release/nsect-rs.exeon Windows
powershell -ExecutionPolicy Bypass -File scripts/run-rust.ps1bash scripts/run-rust.shDefault server URL:
http://127.0.0.1:3000
Runtime env:
PORTfor the HTTP listenerADMIN_KEYfor admin route protectionNSECT_RS_DB_PATHto override the Rust SQLite file path
Packaged Codex skill:
packages/skills/nsect-rs-runtimepackages/skills/nsectpackages/skills/nsect-rs-runtime/scripts/run-nsect-rs.ps1packages/skills/nsect-rs-runtime/scripts/save-nsect-transcript.ps1packages/skills/nsect-rs-runtime/assets/bin/nsect-rs.exe
Cross-runtime repo scripts:
node scripts/save-transcript.mjs --runtime rust ...node scripts/harvest-search.mjs --runtime rust ...
powershell -ExecutionPolicy Bypass -File scripts/test-rust.ps1bash scripts/test-rust.shcargo run --manifest-path rust/Cargo.toml -- transcribe-youtube --video-id dQw4w9WgXcQ --format text --timeout 20cargo run --manifest-path rust/Cargo.toml -- transcribe-youtube --video-id dQw4w9WgXcQ --format json --output out/transcript.jsoncargo run --manifest-path rust/Cargo.toml -- engine --url https://example.com --format text --timeout 15Boot the server, create an admin key in the same way as the JS runtime, then call:
curl -sS http://127.0.0.1:3000/api/engine \
-H "Content-Type: application/json" \
-H "x-api-key: sk_xxx" \
-d '{
"query":"example domain",
"googleCount":3,
"searchEngines":["duckduckgo","bing","brave","google"],
"format":"json"
}'curl -sS http://127.0.0.1:3000/api/youtube/transcript \
-H "Content-Type: application/json" \
-H "x-api-key: sk_xxx" \
-d '{
"videoId":"dQw4w9WgXcQ",
"format":"json",
"methods":["nsect_native","nsect_signal","invidious","piped","yt_dlp"]
}'