HelixDB is a high-performance graph-vector database built in Rust, optimized for RAG and AI applications. It combines graph traversals, vector similarity search, and full-text search in a single database.
Expand message.txt 5 KB George georgecurtis
HelixDB is a high-performance graph-vector database built in Rust, optimized for RAG and AI applications. It combines graph traversals, vector similarity search, and full-text search in a single database.
/helixdb/
- Main Database LibraryThe heart of HelixDB containing all database functionality.
helix_engine/
- Database engine implementation
bm25/
- Full-text search using BM25 algorithmgraph_core/
- Graph database operations (nodes, edges, traversals)storage_core/
- LMDB-based storage backend via heed3vector_core/
- Vector storage and HNSW similarity searchhelix_gateway/
- Network layer
connection/
- TCP connection handlingrouter/
- Request routing to handlersthread_pool/
- Concurrent request processingmcp/
- Model Context Protocol supporthelixc/
- Query compiler
parser/
- Pest-based parser for .hx
filesanalyzer/
- Type checking and validationgenerator/
- Query plan generationingestion_engine/
- External data ingestion
protocol/
- Wire protocol and data types
/helix-container/
- Runtime ContainerThe server process that hosts compiled queries and handles requests.
Files:
main.rs
- Initializes graph engine and HTTP gatewayqueries.rs
- Generated code placeholder (populated during build)Architecture:
Environment Variables:
HELIX_DATA_DIR
- Database storage locationHELIX_PORT
- Server port/helix-cli/
- Command-Line InterfaceUser-facing CLI for managing HelixDB instances.
Files:
main.rs
- Command implementationsargs.rs
- CLI argument definitions (clap)instance_manager.rs
- Instance lifecycle managementtypes.rs
- Error types and version handlingutils.rs
- File handling, port management, templatesCommands:
helix install
- Clone and setup HelixDB repositoryhelix init
- Create new project with template fileshelix check
- Validate schema and query syntaxhelix deploy
- Compile queries and start new instancehelix redeploy
- Update existing instance (local/remote)helix instances
- List all running instanceshelix start/stop
- Control instance lifecyclehelix delete
- Remove instance and datahelix save
- Export instance dataDeploy Flow:
.hx
files (schema.hx, queries.hx)/debug_trace/
- Debug MacroProcedural macro for function tracing (#[debug_trace]
).
/get_routes/
- Route RegistrationProcedural macro for HTTP handler registration (#[handler]
).
/hbuild_redploy/
- Deployment ServiceHot-swapping service for production deployments via AWS S3.
HelixDB uses a custom query language defined in .hx
files:
QUERY addUser(name: String, age: I64) =>
user <- AddN<User({name: name, age: age})
RETURN user
In
, Out
, InE
, OutE
AddN
, AddE
, Update
, Drop
.hx
fileshelix check
parses and validateshelix deploy
loads into containercurl -sSL "https://install.helix-db.com" | bash
helix install
helix init --path <path>
.hx
fileshelix deploy
AGPL (Affero General Public License)
For commercial support: founders@helix-db.com message.txt 5 KB