SearchBoost is a production-grade, distributed cognitive search and vector grounding engine engineered with a resilience-first architecture. It bridges private LLM reasoning with real-time web intelligence and long-term conversational memory while safeguarding infrastructure with a high-throughput Rust Warden sidecar.
flowchart TD
subgraph UI ["User Experience Tier (Port 8080)"]
React["React 19 + Vite SPA<br/>(Search, History, System Health, Admin)"]
end
subgraph API ["Edge Gateway Tier (Port 3001)"]
Node["TypeScript Express 5 API<br/>• JWT & Cookie Auth<br/>• IDOR Thread Validation<br/>• Prisma ORM"]
end
subgraph Sidecar ["Resilience & Proxy Tier (Port 14141)"]
Warden["Rust Warden Sidecar (Axum 0.7)<br/>• Failsafe Circuit Breaker<br/>• Tower Governor Rate Limiter (25 rps / 100 burst)<br/>• Bollard Docker Log Observer<br/>• ARQ Pickle Serialization"]
end
subgraph Storage ["State & Ingestion Infrastructure"]
Redis[("Redis 7.4<br/>• arq:queue<br/>• sb:result cache<br/>• semantic cache")]
Postgres[("PostgreSQL 16 + pgvector<br/>• Users & Auth<br/>• Threads (Sessions)<br/>• 768-dim Vector Embeddings")]
end
subgraph Worker ["Cognitive Execution Tier"]
PyWorker["Python 3.10+ Async Worker (ARQ)<br/>• Semantic Cache Hit Check<br/>• Query Keyword Optimization<br/>• SearXNG Federated Search<br/>• Vector Context Retrieval<br/>• Grounded Synthesis"]
end
subgraph External ["Upstream Intelligence"]
SearXNG["SearXNG Federated Search Engine"]
Ollama["Local Ollama LLM / Cloud AI"]
end
React -->|HTTP / Secure Cookies| Node
Node -->|SQL / Prisma| Postgres
Node -->|POST /enqueue<br/>GET /result/:job_id| Warden
Warden -->|IDOR SQL Check| Postgres
Warden -->|Enqueue Pickle Payload| Redis
Redis -->|Pop Research Tasks| PyWorker
PyWorker -->|Meta-Search| SearXNG
PyWorker -->|Inference & Embeddings| Ollama
PyWorker -->|Cosine Similarity Search| Postgres
PyWorker -->|Commit Results & Cache| Redis
Warden -.->|Stream Logs & Alerts| PyWorker
| Tier | Component | Technology | Primary Invariants |
|---|---|---|---|
| Frontend | searchboost_ui | React 19, Vite, React Router 7 | Session persistence, real-time circuit health indicator, responsive research dashboard. |
| API Gateway | searchboost_api | TypeScript 5.4, Express 5, Prisma | Strict JWT authentication, bcrypt (12 rounds), IDOR thread ownership checks, non-root execution. |
| Reliability | searchboost_warden | Rust 2021, Axum, Tokio, Failsafe, Governor | Zero-allocation HTTP proxy, dynamic Docker log aggregation (bollard), failsafe circuit breaking. |
| Worker | searchboost_service | Python 3.10+, ARQ, AsyncIO, HTTPX | Multi-engine meta-search normalization, vector memory retrieval, grounded LLM synthesis. |
| Database | sb_db | PostgreSQL 16 + pgvector | HNSW cosine similarity search over 768-dimensional conversational turn embeddings. |
| Cache & Q | sb_redis | Redis 7.4 (Authenticated) | Async task queues (arq:queue), intermediate job results, and semantic prompt caching. |
High-level AI worker pipelines often experience latency spikes or resource starvation. Instead of allowing client traffic to overwhelm the inference worker, all traffic flows through The Warden:
- Failsafe Circuit Breaker: Evaluates Redis and database error rates in real time. Tripping immediately returns
503 Service Unavailable, shedding load and protecting the storage engine. - GCRA Rate Limiting: Built with
tower-governorenforcing a smooth 25 req/sec limit with 100-burst tolerance. - Docker Bollard Observer: Dynamically discovers containers with label
com.searchboost.service=workerand streams live container logs and alert signatures directly to persistent audit storage.
Cross-user data leakage and IDOR attacks are systematically prevented across all layers:
- Consistent Session Namespace: Every job is stamped with a colon-delimited shard identifier:
$$\text{job_id} = \text{SB-SESSION}:{\text{username}}:{\text{thread_id}}:{\text{uuid4}}$$ - Two-Tier Validation:
- On Enqueue: The Warden performs a parameterized SQL query verifying that the thread ID is owned by the authenticated username.
- On Result Retrieval: The API and Warden assert that the job ID prefix matches the calling user's authenticated identity.
Every conversation turn is transformed into a 768-dimensional dense vector embedding (via nomic-embed-text or Ollama). Prior to research synthesis, SearchBoost performs cosine similarity vector searches against historical context:
SELECT id, role, prompt, response, 1- (embedding <=> $1) AS similarity
FROM conversation_turns
WHERE user_id = $2AND1- (embedding <=> $1) >0.65ORDER BY similarity DESCLIMIT5;SearchBoost shares an identical session convention and payload contract with IronWarden (the Sovereign AI Privacy Shield). All privacy filtering, PII scrubbing, synthetic tokenization, and cryptographic audits are delegated exclusively to IronWarden at ingress, eliminating redundant PII regex checks inside SearchBoost and keeping the cognitive engine lightweight and focused.
- Docker & Docker Compose
- Optional (for local development): Rust 1.80+, Node.js 20+, Python 3.10+
# Clone the repository
git clone git@github.com:Somnerd/SearchBoost.git
cd SearchBoost
# Launch all 8 containers in detached mode
docker-compose up -d --build- React Web Dashboard:http://localhost:8080
- Node.js Express API:http://localhost:3001/health
- Rust Warden Relay:http://localhost:14141/health
- SearXNG Meta-Search:http://localhost:8888
python3 searchboost_service/main.py --query "Latest advancements in autonomous AI agents" --username nikolasSearchBoost maintains 100% test pass rates across all language and component tiers (95 total automated tests):
cd searchboost_warden
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test --all-targetsCoverage: Circuit breaker failure threshold, half-open cooldown, thread-safe environment configuration overrides, SearchRequest serialization, and IDOR prefix validation.
cd searchboost_api
npm testCoverage: Health check failover, JWT auth validation, role-based access control (RBAC), self-deletion guards, search enqueuing, and cross-user IDOR rejection.
cd searchboost_ui
npm testCoverage: SearchBar input elasticity and keyboard shortcuts (Ctrl+Enter, Cmd+Enter), ResultDisplay streaming and error states, NavBar role-based rendering, ProtectedRoute and AdminRoute guards, SystemHealth service status monitoring, AdminUserTable two-step deletion confirmation and role promotions, Login and Register form validation and routing, and Search page model selection, thread history, polling, and semantic search.
PYTHONPATH=searchboost_service pytest searchboost_tests -vCoverage: CLI argparser options and interactive fallback, timeout defense, and distributed handshake payload schemas (delegating PII shielding to IronWarden).
We welcome contributions! Please review our community guidelines:
- Contributing Guide: Developer quickstart, coding guidelines, and PR workflow.
- Security Policy: Vulnerability disclosure and security architecture.
- Code of Conduct: Community standards and pledge.
This project is open-source under the MIT License.
Copyright (c) 2026 Nikolaos Alexandrakis.
For consulting, custom enterprise deployments, or inquiries:
📧 nikolasalexandrakis.work@gmail.com