← Back to Leaderboard
Wchristopherkarani

christopherkarani/Wax

A single-file Swift RAG engine for durable, on-device agent memory.

View on GitHub ↗
Engineering Health (Methodology)
A+ · 88/100
Maintenance Activity
● Updated 13d ago
Latest Release
waxmcp-v0.1.51
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption13/25
Release Cadence20/20
License Clarity20/20
Self-HostedLocal AIMCP
Total Stars
★ 816
24h Growth
+0
7d Growth
+0
Forks
56

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

christopherkarani/Wax Star History (2026-01-20 - 2026-12-03) ALL-TIME STAR HISTORY (2026-01 – 2026-12) +815 in 317d · avg +3/day 862 431 0 2026-01-20: ★ 12026-02-14: ★ 282026-03-07: ★ 6272026-03-28: ★ 6682026-04-18: ★ 6932026-05-09: ★ 7192026-05-30: ★ 7352026-06-20: ★ 7512026-07-11: ★ 7612026-08-01: ★ 7662026-08-22: ★ 7792026-09-12: ★ 7942026-10-03: ★ 8022026-10-24: ★ 8062026-11-13: ★ 8092026-12-03: ★ 816 ★ 816 2026-01 2026-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Wax is an embedded Swift retrieval engine. One .wax binary contains dual header pages with generation numbers, pointers, and checksums; a write-ahead log (WAL) ring for recovering uncommitted mutations after a crash; LZ4-compressed data frames; search indexes; and a table of contents. SQLite FTS5 handles text search, and CoreML generates local embeddings. Vector search is exact via Accelerate/CPU below 10,000 indexed vectors and uses Metal-accelerated HNSW at or above that threshold.

Swift apps open the store directly through Memory(at:). Agent hosts use MCP, with stdio for a single client or a shared loopback HTTP writer for multiple clients. Identically configured MCP servers share a broker; a second process with a conflicting configuration fails fast. Hermes uses a native memory provider that owns session lifecycle rather than relying on the MCP session loop.

Key Capabilities & Differentiators

remember writes memory without a cloud LLM extraction step; recall retrieves it through hybrid text and vector search, and stats exposes store status. New stores use e5-small-v2 by default; existing stores can reopen with the built-in embedder that wrote them, including MiniLM. Until the embedder attaches, hybrid queries return text results and vectorOnly throws. Foundation Models integration can inject recalled context into prompts, register memory tools, and write conversation turns back.

The March 6, 2026 Apple Silicon sweep measured hybrid recall at 6.1 ms p95 and 6.5 ms p99, with cold store open at 9.2 ms p95. Cold open measures only opening the store, not first embedding or an end-to-end agent turn. The experimental PhotoMemory and VideoMemory interfaces support OCR, keyframes, and host-supplied transcripts; VideoMemory does not store the video bytes.

Trade-offs & Limitations

Wax gives you searchable cross-session memory without hand-curating a Markdown scratchpad. Compared with Pinecone, it removes the hosted vector database from the retrieval path, but leaves you responsible for file backup, access, and the local writer process if you use MCP. The single file is easy to move; portable files and a shared local broker are not substitutes for concurrent multi-machine writes or a managed service.

Flat search avoids approximate nearest-neighbor errors for smaller stores, but its query work grows with the vector count. HNSW changes that cost profile while making vector retrieval approximate. Test ranking quality as well as latency around the 10,000-vector boundary. Wax is not a temporal knowledge graph, and local storage does not mean end-to-end offline operation if the host sends retrieved context to a cloud model.

Hardware & Deployment Guide

On Apple Silicon, npx -y waxmcp@latest install stages the MCP server, local embedders, and operator skill. For multiple clients, point them at http://127.0.0.1:3000/mcp and keep one server running with the provided start script or the ai.wax.mcp-http LaunchAgent. Configure when the host should write and recall memory in its always-loaded rules, then verify the setup with doctor and vector-health.

An iOS or macOS app can embed Wax as a Swift package without a separate process. Automatic on-device embeddings require iOS 18 or macOS 15 and later; Foundation Models integration requires iOS 26 or macOS 26 plus Apple Intelligence and an available system model. Release waxmcp-v0.1.48 fixed socket cleanup when HTTP clients dropped SSE streams; waxmcp-v0.1.51 hardened WAL ring integrity and gated releases on tests with a pinned toolchain and dependencies.

Storage: One .wax binary holds documents, metadata, an FTS5 index, a vector index, a table of contents, and a crash-recovery WAL ring.
Vector indexing: Exact Accelerate/CPU search below 10,000 vectors; Metal-accelerated HNSW at 10,000 or more.
Embeddings: CoreML-backed e5-small-v2 for new stores; the SDK selects the matching built-in embedder for existing stores that used one.
Agent integration: MCP exposes remember, recall, and stats; Hermes uses a native provider for handoffs and turn sync.
Apple integration: The Swift SDK works without MCP; Foundation Models on iOS 26 and macOS 26 can retrieve prompt context and call memory tools.
Measured latency: The March 2026 Apple Silicon sweep measured 6.1 ms hybrid recall p95, 6.5 ms p99, and 9.2 ms store-open p95.
Best For

Apple Silicon teams sharing durable memory across local agent hosts, or iOS and macOS apps embedding hybrid retrieval without a hosted database.

Skip If

You need a managed multi-machine backend, concurrent writes across machines, or a temporal knowledge graph.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedLocal AIMCP
npx -y waxmcp@latest install

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
Wax ★816—SwiftApache-2.0A single-file Swift RAG engine for durable, on-device agent memory.
qdrant35.9k+135RustApache-2.0Rust vector database for filtered and hybrid RAG retrieval
LightRAG41k+110PythonMITGraph-backed RAG for cross-document retrieval and multimodal indexing
pgvector23.9k+96C—PostgreSQL extension for exact and approximate vector search alongside relationa

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/christopherkarani/Wax.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

christopherkarani/Wax Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about Wax

How should several agents share one Wax store?

Configure MCP clients to share one HTTP server at http://127.0.0.1:3000/mcp. A single Claude Code client can use stdio; for multiple clients, use the shared endpoint rather than launching separate writers against the same .wax file. Hermes uses its native wax-memory provider instead of also registering Wax as an MCP server.

What hardware and memory budget should I plan for?

The MCP install path targets Apple Silicon, and automatic on-device embedding in the Swift SDK is available on iOS 18 or macOS 15 and later. Smaller vector indexes use exact Accelerate/CPU search; Metal HNSW takes over at 10,000 vectors. No fixed GPU memory requirement is given. Size on the target device with representative embedding workloads and store sizes, and measure cold open, first embedding, and steady-state retrieval separately.

Can I use and redistribute Wax in a commercial product?

Yes. Apache-2.0 permits commercial use and self-hosting. For redistribution, include the license, retain applicable notices, and mark modified files as required. Local storage is not a compliance guarantee: review what agents write, who can access or copy the .wax file, and whether retrieved content is sent to a hosted model.

Is Wax a replacement for Pinecone?

Not as a drop-in replacement. Wax fits when a local Swift app or several agents on one Mac need persistent memory, keyword and semantic search, and no hosted vector database. If the application depends on a shared managed backend accessed by services on multiple machines, copying .wax files does not replace that architecture.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining christopherkarani/Wax? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature christopherkarani/Wax on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare