Anchor Engine
June 13, 2026 ยท View on GitHub
Version: 5.3.0 | Updated: June 13, 2026 | Status: โ Production Ready
๐ Quick Navigation
Getting Started
- README.md โ Quick start, installation, usage guide
- CHANGELOG.md โ Version history (latest: v5.3.0)
- settings-configs.md โ Consolidated settings and configurations
Core Documentation (docs/)
| File | Purpose |
|---|---|
| whitepaper.md | STAR Algorithm whitepaper โ theoretical foundation |
| paper.md | Academic paper (JOSS/TechArxiv submission) |
| settings-configs.md | Unified configuration reference |
| code-patterns.md | Code patterns used throughout the codebase |
| design-patterns.md | Design patterns and architectural decisions |
| star-algebra-reference.md | STAR algebra reference and search algorithm details |
User Workflows (docs/workflows/)
| File | Purpose |
|---|---|
| in-use.md | Current manual workflow guide |
| ideas.md | Future workflow automation ideas |
Integration Guides (docs/integrations/)
| File | Purpose |
|---|---|
| CODE_OF_CONDUCT.md | Contributor Covenant Code of Conduct |
| CONTRIBUTING.md | Contribution guidelines |
Architecture & Standards (specs/)
| File | Purpose |
|---|---|
| specs/spec.md | System specification with architecture diagrams |
| specs/plan.md | Development roadmap and phased implementation |
| specs/tasks.md | Current implementation tasks and priorities |
| specs/doc_policy.md | Documentation policy โ single source of truth for file locations |
| specs/DATA-MODEL.md | Data model: Compound โ Molecule โ Atom โ Tag hierarchy |
Standards: 38 active architecture standards in specs/current-standards/ (flat directory, ordered foundational โ assistive).
Source Code (engine/)
- engine/src/README.md โ Source code overview, technology stack (Rust WASM + PGlite)
- engine/tests/ โ Integration, live-fire, and unit test suites
๐ฏ Documentation by Use Case
"I want to install and run Anchor Engine"
โ Start with README.md โ Quick Start section
"I need API documentation"
โ The API surface is documented in specs/spec.md and the route files in engine/src/routes/v1/
"Something's not working"
โ Check specs/plan.md for known risks and mitigations. Runtime logs live in $HOME/.anchor/logs/.
"I need to understand the system architecture"
โ Study specs/spec.md (includes architecture diagrams, web dashboard, engine core modules)
"I'm researching the theory behind Anchor Engine"
โ Read whitepaper.md and paper.md
"I want to understand the search algorithm (STAR)"
โ See specs/spec.md and search standards in specs/current-standards/
"How does distillation work?"
โ Read specs/current-standards/010-radial-distillation-v2.md
"I want to contribute code"
โ Start with specs/doc_policy.md for conventions, then engine/src/README.md for source structure
"I want to explore standards"
โ Browse specs/current-standards/ โ 38 active standards with full implementation details
๐ Key Metrics (v5.3.0)
| Metric | Value | Status |
|---|---|---|
| Context Retrieval | 618k chars | โ +18% vs whitepaper |
| Memory Peak | 510MB (idle) | โ -70% vs whitepaper |
| Search Latency | <200ms (p95, standard queries) | โ Optimized |
| Ingestion Throughput | 1,200 mol/sec | โ Verified |
| Deduplication Rate | 40โ50% | โ With SimHash |
| Active Standards | 38 | โ Flattened, numerically ordered |
| WASM Module Size | ~1.4 MB (4 packages) | โ 90% smaller than C++ DLLs |
๐๏ธ Document Structure
anchor-engine-node/
โโโ README.md # Start here โ quick start & usage
โโโ CHANGELOG.md # Version history (v5.3.0)
โโโ LICENSE # AGPL-3.0
โโโ user_settings.json.template # Configuration template โ $HOME/.anchor/
โ
โโโ docs/ # User-facing documentation
โ โโโ INDEX.md # This file
โ โโโ whitepaper.md # STAR algorithm whitepaper
โ โโโ paper.md # Academic paper
โ โโโ settings-configs.md # Consolidated configuration reference
โ โโโ code-patterns.md # Code patterns guide
โ โโโ design-patterns.md # Design patterns
โ โโโ star-algebra-reference.md # STAR algebra reference
โ โโโ workflows/ # User workflow guides
โ โ โโโ in-use.md
โ โ โโโ ideas.md
โ โโโ integrations/ # Integration guides
โ โโโ CODE_OF_CONDUCT.md
โ โโโ CONTRIBUTING.md
โ
โโโ specs/ # Technical specifications
โ โโโ spec.md # System specification (incl. architecture)
โ โโโ plan.md # Development roadmap
โ โโโ tasks.md # Current tasks
โ โโโ doc_policy.md # Documentation policy
โ โโโ DATA-MODEL.md # Data model
โ โโโ current-standards/ # 38 active standards (flat, numeric)
โ โโโ INTEGRATIONS/ # Integration specs
โ
โโโ engine/ # Anchor Engine implementation
โ โโโ package.json # WASM dependencies (@rbalchii/*-wasm)
โ โโโ src/ # TypeScript source
โ โ โโโ README.md # Source code overview
โ โโโ tests/ # Test suites
โ โโโ integration/ # Integration tests
โ โโโ live-fire/ # Live-fire test scripts
โ โโโ unit/ # Unit tests
โ
โโโ scripts/ # Build and operational scripts
โ โโโ build.ts # TypeScript compilation
โ โโโ start-engine-bg.mjs # Background engine startup
โ โโโ stop-engine-bg.mjs # Background engine shutdown
โ
โโโ test-wasm/ # WASM tree-sitter test harness
โโโ README.md
๐ฌ Recent Updates (v5.3.0)
Documentation Drift Repair (June 2026)
- Renumbered standards: All 38 standards now uniquely numbered 001-038 (was 001-032 with duplicates)
- Removed dead code: Deleted orphaned
core/andservices/at root (6,597 lines duplicated from engine/src/) - Deprecated
packages/removed: References cleaned from pnpm-workspace.yaml and spec - Synced versions: All files now consistently say 5.3.0
Documentation Consolidation (June 2026)
- Flattened standards: All 38 active standards now live in
specs/current-standards/as a flat directory - Merged ARCHITECTURE.md into
specs/spec.mdโ architecture now lives in the system specification - Restored docs: Recovered
code-patterns.md,design-patterns.md,star-algebra-reference.mdfrom git history - Deleted clutter: Removed 19 one-off fix scripts, PM2 configs, and stale runtime data from project root
- Fixed .gitignore: Removed embedded code, resolved contradictions with tracked files
WASM-Native Architecture (v4.3.0+)
- All performance-critical operations use Rust-compiled WebAssembly (
@rbalchii/*-wasmpackages) - Zero native compilation required โ runs on Windows ARM64, macOS, Linux without C++ toolchains
- Old C++ N-API modules (
engine/src/native/) fully removed
Security Hardening
- Path Traversal Prevention (Standard 029)
- Auth Bypass Prevention (Standard 027)
- API Key Strength Validation (Standard 028)
- Zero-Copy Deduplication (Standard 030)
๐ External Resources
- GitHub Repository: https://github.com/RSBalchII/anchor-engine-node
- License: AGPL-3.0
- NPM Packages: @rbalchii/* (Rust WASM modules)
- DOI: https://doi.org/10.5281/zenodo.18841399
Last Updated: June 13, 2026 Version: 5.3.0 Status: โ Production Ready