Skip to content

Conversation

@ruvnet
Copy link
Owner

@ruvnet ruvnet commented Dec 31, 2025

Summary

Major release adding comprehensive edge computing capabilities, MCP server integration, and self-learning intelligence layer.

Key Features

  • @ruvector/edge (364KB) - Free AI swarms in the browser with P2P, crypto, HNSW vectors, consensus
  • @ruvector/edge-full (8.4MB) - Full platform with Graph DB, SQL, ONNX embeddings, neural routing
  • MCP Server - Claude Code integration via npx ruvector mcp start
  • Web Workers - WorkerPool for non-blocking parallel vector operations
  • Intelligence Layer - Self-learning hooks with Q-learning, trajectories, and pattern recognition
  • @ruvector/rudag - DAG workflow orchestration with WASM and IndexedDB persistence
  • ONNX Embeddings WASM - HuggingFace models (MiniLM, BGE, E5, GTE) with 3.8x parallel speedup

Edge WASM Highlights

Capability Performance
Ed25519 Identity 50,000 ops/sec
AES-256-GCM 1 GB/sec
HNSW Vector Search 150x faster than brute force
Raft Consensus Trusted cohorts
Gossip + CRDT Open swarms, Byzantine-tolerant
Post-Quantum Crypto Future-proof signatures

New Packages

  • npm install @ruvector/edge - Lightweight edge core
  • npm install @ruvector/edge-full - Full platform
  • npm install @ruvector/rudag - DAG workflows

Web Workers

import { WorkerPool } from '@ruvector/edge/worker-pool';
const pool = new WorkerPool(workerUrl, wasmUrl, { dimensions: 128 });
await pool.init(); // Auto-scales to CPU cores
await pool.insertBatch(vectors); // Parallel, non-blocking

Interactive Generator

Included generator.html for visual swarm configuration with:

  • 6 network topologies (mesh, star, hierarchical, ring, gossip, sharded)
  • 4 transport options (GUN.js, WebRTC, libp2p, Nostr)
  • 4 concurrency modes (main thread, worker pool, dedicated, shared)
  • Live WASM demos

Test plan

  • Verify npm install @ruvector/edge works
  • Test Web Worker pool initialization
  • Run generator.html live demo
  • Verify MCP server starts with npx ruvector mcp start
  • Test hooks with npx ruvector hooks init

🤖 Generated with Claude Code

ruvnet and others added 5 commits December 31, 2025 22:10
- Include worker.js and worker-pool.js in package
- Add exports for @ruvector/edge/worker and @ruvector/edge/worker-pool
- Document WorkerPool API with examples
- Features: round-robin distribution, batch splitting, load balancing
- Keeps UI responsive during heavy WASM operations
- Bump to v0.1.9

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add npm package section at top with install commands
- Link to pkg/README.md for JavaScript documentation
- Clarify Raft vs Gossip+CRDT consensus modes
- Add Web Worker pool to distributed systems features
- Update WASM badge to show 364KB size

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add comprehensive Web Workers section explaining UI responsiveness
- Include WorkerPool usage examples with practical code
- Add feature table explaining auto-scaling, load balancing, timeouts
- Add "when to use workers" guidance table
- Update Table of Contents with Consensus Modes and Web Workers
- Add WorkerPool to API Reference section

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Concurrency section with 4 worker modes:
  - Main Thread (no workers, simple)
  - Worker Pool (auto-scaling, recommended)
  - Dedicated (one worker per task type)
  - Shared Worker (cross-tab coordination)
- Add comprehensive worker templates with code examples
- Update stats to show worker count
- Include WorkerPool class with batch operations
- Add SharedWorker cross-tab example

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Resolved conflicts in examples/edge/README.md by keeping Web Workers
documentation additions from feature branch.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ruvnet ruvnet merged commit 3e1ee39 into main Dec 31, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants