ruvector/examples
rUv 436fb3eb11
Add ADR-199: Sky Monitor and SkyGraph Appliance (Phases 1–4) (#549)
* docs(adr): ADR-199 Sky Monitor and SkyGraph appliance

Architecture decision record for the RuView SkyGraph appliance: a local
sky monitoring system that treats the sky as a continuously changing
spatial graph. Covers ADS-B ingestion (dump1090 + OpenSky fallback),
MSC GeoMet weather, observer-frame coordinate model, canonical
observation schema, SkyGraph node/edge model, RuVector embedding and
novelty usage, rule layer, composite anomaly scoring, privacy and
security governance, storage tiers, phased build plan, and acceptance
tests. Companion implementation lands in examples/sky-monitor/.

https://claude.ai/code/session_013Nh9Naw8gim75DGY9LBvK7

* feat(examples): sky-monitor SkyGraph appliance core (ADR-199 Phases 1-4)

New workspace example crate implementing the RuView SkyGraph appliance
pipeline on synthetic ADS-B data:
- WGS-84 -> ECEF -> ENU observer-frame projection (az/el/range/bearing)
- canonical observation schema (ADR-199 s11) with serde
- deterministic synthetic ADS-B scenario + dump1090 JSON parser
- track stitching with circular-stats summaries and overhead rule
- SkyGraph on ruvector-graph GraphDB (s12 node/edge vocabulary,
  time-window queries, citeable explain())
- 32-dim track embeddings indexed in ruvector-core VectorDB with
  similarity search and calibrated novelty scoring
- composite anomaly score per ADR-199 s15 with mandatory reasons
- daily sky brief, end-to-end pipeline, demo binary
- 27 tests (19 unit + 8 ADR acceptance), criterion benchmarks

https://claude.ai/code/session_013Nh9Naw8gim75DGY9LBvK7

* feat(examples): sky-monitor WASM projection engine, canvas dashboard, perf tuning

Presentation plane for the ADR-199 SkyGraph appliance (dashboard-first
decision) plus measured hot-path optimizations:

- feature-gate sky-monitor: default 'appliance' feature carries
  ruvector-core/ruvector-graph; --no-default-features yields a
  wasm32-compatible subset (coords, observation, adsb, track, weather,
  embedding, anomaly, brief)
- new sky-monitor-wasm crate (wasm-bindgen): SkyProjector with single
  and Float64Array batch projection, polar all-sky screen mapping,
  AnomalyScorer sharing the exact native scorer via new TrackSummary
  adapter, dump1090 JSON parser binding; 5 native unit tests
- canvas dashboard (ui/dashboard): polar sky plot with elevation rings,
  fading trails, overhead highlights, band-colored anomaly badges,
  track table with reasons, replay scrubber; JS projection fallback
  with automatic wasm-pack pkg detection; demo data generated via new
  --emit-json flag on the demo binary
- perf: observer_frame inlined to single sin_cos per angle;
  track_embedding single-pass accumulation; anomaly baseline reuse

Validation: 27/27 sky-monitor tests, 5/5 sky-monitor-wasm tests,
wasm32-unknown-unknown builds clean for both, clippy clean,
node --check on dashboard JS.

https://claude.ai/code/session_013Nh9Naw8gim75DGY9LBvK7

* docs(examples): sky-monitor benchmark report and ADR-199 acceptance mapping

Criterion results (baseline vs tuned): observer-frame projection
-12% single / -10% batch (p<0.05), single-pass embedding -4%;
anomaly/pipeline deltas attributed to the TrackSummary adapter that
gives native/WASM scorer parity. Includes 1 Hz real-time headroom
analysis (~129 ns/projection, ~6k tracks/s anomaly scoring, full
synthetic day in ~7 ms) and the mapping of all 8 acceptance tests to
ADR-199 s31/s22 criteria. 32/32 tests green across both crates.

https://claude.ai/code/session_013Nh9Naw8gim75DGY9LBvK7

* fix(examples): make sky-monitor-wasm buildable offline; record WASM functional verification

Disable wasm-opt in wasm-pack metadata so the dashboard pkg builds in
air-gapped/appliance environments where the binaryen download is
unavailable (size optimization only; documented in Cargo.toml).

Verified the built module end-to-end in Node: projection geometry
matches native coords (10 km north -> az 0.00, el 5.10, range 10029 m),
zenith->center screen mapping, Float64Array batch projection, anomaly
scorer parity through the shared TrackSummary path (night track 0.900
strong anomaly vs corridor 0.055 normal), and dump1090 JSON parsing.
Recorded in BENCHMARKS.md.

https://claude.ai/code/session_013Nh9Naw8gim75DGY9LBvK7

* style(examples): rustfmt sky-monitor and sky-monitor-wasm

Fixes the Rustfmt CI failure on PR #549; no functional changes
(32/32 tests still pass, wasm32 release build clean).

https://claude.ai/code/session_013Nh9Naw8gim75DGY9LBvK7

* feat(sky-monitor): realtime-only dashboard with satellites, live §15 scoring, and SOTA pack

- Dashboard rewritten realtime-only (synthetic-day replay removed): live ADS-B
  (airplanes.live/adsb.lol) + Open-Meteo, smoothed dead reckoning, ⚙ drawer
- wasm: SatPropagator (SGP4 + pass prediction), embed_track/novelty (§13/§15),
  AnomalyScorer wired to live tracks with IndexedDB vector-novelty store
- Sun/moon + naked-eye satellite visibility, behavior badges, CPA conflict
  alerts, adsbdb routes, NOAA SWPC Kp, WebGPU sat layer (fallback-safe),
  recorded-replay ring buffer
- 13 wasm-crate tests, 10 node detector tests, Playwright-verified incl. offline

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(sky-monitor-wasm): clippy needless_range_loop in satellite pass prediction

Enumerate the precomputed per-step sun samples instead of indexing
them with the loop counter; fixes the deny-warnings Clippy CI failure
on PR #549. No behavior change (13/13 wasm crate tests pass, wasm32
release build clean).

https://claude.ai/code/session_013Nh9Naw8gim75DGY9LBvK7

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: ruv <ruvnet@users.noreply.github.com>
Co-authored-by: ruvnet <ruvnet@gmail.com>
2026-06-21 18:58:26 -04:00
..
a2a-swarm feat(examples): a2a-swarm — 3-node demo of ADR-159 routing peer-forwarding 2026-04-25 16:59:18 -04:00
agentic-jujutsu feat: Add comprehensive agentic-jujutsu integration examples and tests 2025-11-22 03:12:31 +00:00
apify Add WebAssembly binary and TypeScript definitions for rvlite 2025-12-25 19:50:53 +00:00
app-clip feat(app-clip): add Swift App Clip skeleton for RVQS QR seed decoding 2026-02-15 18:34:13 +00:00
benchmarks chore(ci): green security audit + split test job into 6 matrix shards 2026-04-26 00:17:25 -04:00
boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
brain-boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
climate-consciousness fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
cmb-boundary-discovery chore(workspace): cargo fmt — mechanical whitespace fix across 427 files 2026-04-24 10:44:02 -04:00
cmb-consciousness fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
data chore(workspace): cargo fmt nested workspaces — rvf/, examples/* 2026-04-24 10:51:14 -04:00
decompiler-dashboard fix(decompiler): statement-boundary splitting — 14/14 modules now parse (was 2/17) 2026-04-03 11:50:34 +00:00
delta-behavior feat(delta-behavior): Complete Δ-behavior implementation with WASM 2026-01-28 04:18:34 +00:00
docs docs: Organize examples/ with comprehensive READMEs 2025-11-29 14:05:04 +00:00
dragnes feat(sse): decouple SSE to mcp.pi.ruv.io proxy + Claude Code source research 2026-04-02 23:39:56 +00:00
earthquake-boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
ecosystem-consciousness fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
edge chore(workspace): cargo fmt nested workspaces — rvf/, examples/* 2026-04-24 10:51:14 -04:00
edge-full/pkg feat(edge-full): add unified WASM package with all modules 2025-12-31 20:59:29 +00:00
edge-net fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
esp32-mmwave-sensor feat(ruvector-hailo): NPU embedding backend + multi-Pi cluster (ADRs 167-170) (#413) 2026-05-04 08:30:40 -04:00
exo-ai-2025 chore: publish EXO-AI crates v0.1.1 with bug fixes and READMEs 2026-02-27 16:26:40 +00:00
frb-boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
gene-consciousness fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
google-cloud fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
graph docs: Organize examples/ with comprehensive READMEs 2025-11-29 14:05:04 +00:00
gw-consciousness fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
health-boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
infrastructure-boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
market-boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
meta-cognition-spiking-neural-network feat(gnn-v2): Comprehensive GNN v2 implementation with cognitive substrate (#43) 2025-12-02 11:26:10 -05:00
mincut chore(workspace): cargo fmt nested workspaces — rvf/, examples/* 2026-04-24 10:51:14 -04:00
music-boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
neural-trader docs(neural-trader): comprehensive README with features, benchmarks, use cases 2025-12-31 18:03:56 +00:00
nodejs docs: Organize examples/ with comprehensive READMEs 2025-11-29 14:05:04 +00:00
onnx-embeddings chore(workspace): cargo fmt nested workspaces — rvf/, examples/* 2026-04-24 10:51:14 -04:00
onnx-embeddings-wasm chore(workspace): cargo fmt nested workspaces — rvf/, examples/* 2026-04-24 10:51:14 -04:00
OSpipe ADR-257: extract ruqu + rvdna into two standalone repos (git submodules) (#579) 2026-06-17 17:33:40 -04:00
pandemic-boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
prime-radiant chore(workspace): cargo fmt nested workspaces — rvf/, examples/* 2026-04-24 10:51:14 -04:00
pwa-loader feat(pwa-loader): add in-browser RVF seed decoder PWA 2026-02-15 18:38:10 +00:00
quantum-consciousness fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
real-eeg-analysis fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
real-eeg-multi-seizure fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
refrag-pipeline fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
robotics style: apply cargo fmt formatting 2026-03-12 20:57:18 -04:00
rust feat(postgres): Add HNSW index and embedding functions support (#62) 2025-12-09 11:14:52 -05:00
ruvLLM feat(ruvector-hailo): NPU embedding backend + multi-Pi cluster (ADRs 167-170) (#413) 2026-05-04 08:30:40 -04:00
rvf ADR-257: extract ruqu + rvdna into two standalone repos (git submodules) (#579) 2026-06-17 17:33:40 -04:00
rvf-desktop feat(rvf): add Causal Atlas dashboard, solver fixes, and desktop app 2026-02-20 18:01:09 +00:00
rvf-kernel-optimized fix: format all files, add EXO crate READMEs, convert path deps to version deps 2026-02-27 16:21:14 +00:00
scipix fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
seizure-clinical-report fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
seizure-therapeutic-sim fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
seti-boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
seti-exotic-signals fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
sky-monitor Add ADR-199: Sky Monitor and SkyGraph Appliance (Phases 1–4) (#549) 2026-06-21 18:58:26 -04:00
spiking-network feat(micro-hnsw-wasm): Add Neuromorphic HNSW v2.3 with SNN Integration (#40) 2025-12-01 22:30:15 -05:00
subpolynomial-time fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
temporal-attractor-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
train-discoveries chore(workspace): cargo fmt — mechanical whitespace fix across 427 files 2026-04-24 10:44:02 -04:00
ultra-low-latency-sim chore(workspace): cargo fmt nested workspaces — rvf/, examples/* 2026-04-24 10:51:14 -04:00
vectorvroom@4c2527b452 chore: import shaal/VectorVroom as submodule under examples/vectorvroom 2026-04-24 13:20:00 -04:00
verified-applications fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
vibecast-7sense chore(workspace): cargo fmt nested workspaces — rvf/, examples/* 2026-04-24 10:51:14 -04:00
void-boundary-discovery chore(workspace): cargo fmt — mechanical whitespace fix across 427 files 2026-04-24 10:44:02 -04:00
vwm-viewer feat: add package.json for rvdna example with WASM bindings and build scripts 2026-02-12 15:32:55 +00:00
wasm/ios feat(training): RuvLTRA v2.4 Ecosystem Edition - 100% routing accuracy (#123) 2026-01-20 20:08:30 -05:00
wasm-react docs: Organize examples/ with comprehensive READMEs 2025-11-29 14:05:04 +00:00
wasm-vanilla docs: Organize examples/ with comprehensive READMEs 2025-11-29 14:05:04 +00:00
weather-boundary-discovery fix(security): RUSTSEC advisories + clippy hardening in RuVector (#504) 2026-05-23 05:40:24 -04:00
bounded_instance_demo.rs feat(mincut): Add subpolynomial-time dynamic minimum cut system (#74) 2025-12-23 07:53:32 -05:00
README.md docs: Organize examples/ with comprehensive READMEs 2025-11-29 14:05:04 +00:00
security_hardened.rvf feat(security): Security Hardened RVF v3.0 — 30 capabilities verified 2026-02-21 17:39:58 +00:00

RuVector Examples

Comprehensive examples demonstrating RuVector's capabilities across multiple platforms and use cases.

Directory Structure

examples/
├── rust/                 # Rust SDK examples
├── nodejs/               # Node.js SDK examples
├── graph/                # Graph database features
├── wasm-react/           # React + WebAssembly integration
├── wasm-vanilla/         # Vanilla JS + WebAssembly
├── agentic-jujutsu/      # AI agent version control
├── exo-ai-2025/          # Advanced cognitive substrate
├── refrag-pipeline/      # Document processing pipeline
└── docs/                 # Additional documentation

Quick Start by Platform

Rust

cd rust
cargo run --example basic_usage
cargo run --example advanced_features
cargo run --example agenticdb_demo

Node.js

cd nodejs
npm install
node basic_usage.js
node semantic_search.js

WebAssembly (React)

cd wasm-react
npm install
npm run dev

WebAssembly (Vanilla)

cd wasm-vanilla
# Open index.html in browser

Example Categories

Category Directory Description
Core API rust/basic_usage.rs Vector DB fundamentals
Batch Ops rust/batch_operations.rs High-throughput ingestion
RAG Pipeline rust/rag_pipeline.rs Retrieval-Augmented Generation
Advanced rust/advanced_features.rs Hypergraphs, neural hashing
AgenticDB rust/agenticdb_demo.rs AI agent memory system
GNN rust/gnn_example.rs Graph Neural Networks
Graph graph/ Cypher queries, clustering
Node.js nodejs/ JavaScript integration
WASM React wasm-react/ Modern React apps
WASM Vanilla wasm-vanilla/ Browser without framework
Agentic Jujutsu agentic-jujutsu/ Multi-agent version control
EXO-AI 2025 exo-ai-2025/ Cognitive substrate research
Refrag refrag-pipeline/ Document fragmentation

Feature Highlights

Vector Database Core

  • High-performance similarity search
  • Multiple distance metrics (Cosine, Euclidean, Dot Product)
  • Metadata filtering
  • Batch operations

Advanced Features

  • Hypergraph Index: Multi-entity relationships
  • Temporal Hypergraph: Time-aware relationships
  • Causal Memory: Cause-effect chains
  • Learned Index: ML-optimized indexing
  • Neural Hash: Locality-sensitive hashing
  • Topological Analysis: Persistent homology

AgenticDB

  • Reflexion episodes (self-critique)
  • Skill library (consolidated patterns)
  • Causal memory (hypergraph relationships)
  • Learning sessions (RL training data)
  • Vector embeddings (core storage)

EXO-AI Cognitive Substrate

  • exo-core: IIT consciousness, thermodynamics
  • exo-temporal: Causal memory coordination
  • exo-hypergraph: Topological structures
  • exo-manifold: Continuous deformation
  • exo-exotic: 10 cutting-edge experiments
  • exo-wasm: Browser deployment
  • exo-federation: Distributed consensus
  • exo-node: Native bindings
  • exo-backend-classical: Classical compute

Running Benchmarks

# Rust benchmarks
cargo bench --example advanced_features

# Refrag pipeline benchmarks
cd refrag-pipeline
cargo bench

# EXO-AI benchmarks
cd exo-ai-2025
cargo bench

License

MIT OR Apache-2.0